6502.org
http://forum.6502.org/

(solved) See Programming ATF150x with Openocd
http://forum.6502.org/viewtopic.php?f=10&t=7909
Page 1 of 1

Author:  GlennSmith [ Thu Jan 04, 2024 6:15 pm ]
Post subject:  (solved) See Programming ATF150x with Openocd

Hi all,
Well, I was so happy that I can now design, simulate AND program the ATF16V8 and ATF22V10 devices, I launched full speed at doing similar for the ATF1504... I already knew that my current programmer (an Arduino "afterburner" spin-off) doesn't handle CPLDs, so I had spent some time working on using a "Altera USB Blaster 2" that someone gave me recently.

I couldn't get anything to work to start with, but someone here on the Forum talked about Quartus... so I installed that and got Quartus to talk correctly to the Blaster (I'm exclusively a linux (Mint) user, although I use wine for some apps such as WinCUPL...) but Quartus doesn't like the ATF1504 series chips, correctly identifies them but refuses to do anything with them (treats them as "unknown").

So next step was openocd... Again it took a while before I understood how it was supposed to work, but I got it to identify the Blaster, and to identify the JTAG chain with my ATF1504 at the end of it. But libusb, used by openocd, just cannot read or write any data from/to the chip, it fails with ERROR_IO...

Has anyone out there been there, done that, and knows what's happening ? AFAIK my system is up to date (Linux Mint 20.2 Uma base: Ubuntu 20.04 focal) although not the latest version : I'm of the school of "if it works, don't fix it"... Any pointers would be appreciated.

Thanks in advance

Author:  GlennSmith [ Fri Jan 05, 2024 6:40 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

So, bit by the clones...

The USB Blaster-II that I have is a sort of USB Blaster 1 and a bit. Quartus recognizes it as a 2, but opened is not easily fooled. The major difference is in the USB communication chip inside the device - the one I have is still based on the ftdi chip.

Once I had reconfigured to use the ftdi interface - IT WORKED !

Author:  plasmo [ Fri Jan 05, 2024 7:01 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

Are you saying you can program ATF1504 with USB Blaster II? Under Quartus?

Author:  GlennSmith [ Fri Jan 05, 2024 8:43 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

Quote:
Are you saying you can program ATF1504 with USB Blaster II? Under Quartus?


No, spoiler alert : that Isn't what I meant. Quartus refuses to program the Atmel/Microchip devices. No, my problem was getting openocd to program the ATF1504 with the USB Blaster 1.something that I have.

Sorry if I've spoiled your day :cry:

Author:  plasmo [ Fri Jan 05, 2024 8:54 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

That’s great improvement already. Atmel’s programmer is quite expensive, so using openocd to drive the inexpensive USB blaster II clone to program ATF1504 is a great progress.
Bill

Author:  hoglet [ Fri Jan 05, 2024 8:59 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

This thread will be very interesting to several people. It would be a great help if you could clarifty two things:

1. The toolchain you used to generate the Atmel .jed file
2. The actual openocd command line you used to program the .jed file into an ATF1504AS.

Thanks,

Dave

Author:  GlennSmith [ Sat Jan 06, 2024 7:05 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

Quote:
This thread will be very interesting to several people. It would be a great help if you could clarifty two things:

1. The toolchain you used to generate the Atmel .jed file
2. The actual openocd command line you used to program the .jed file into an ATF1504AS.


OK, after the weekend (v busy), I'll create a new thread with a "how to"...

Author:  BigDumbDinosaur [ Sat Jan 06, 2024 7:41 pm ]
Post subject:  Re: (solved) Sorry, but openocd help needed

GlennSmith wrote:
Quote:
This thread will be very interesting to several people. It would be a great help if you could clarifty two things:

1. The toolchain you used to generate the Atmel .jed file
2. The actual openocd command line you used to program the .jed file into an ATF1504AS.

OK, after the weekend (v busy), I'll create a new thread with a "how to"...

Looking forward to seeing it.  I seem to spend more time fighting off alligators than I do draining the swamp when it comes to working with the bug-ridden WinCUPL.  It’s well past time to find a better way.

Author:  mtomy2008 [ Thu Feb 01, 2024 8:03 am ]
Post subject:  Re: (solved) Sorry, but openocd help needed

hoglet wrote:
This thread will be very interesting to several people. It would be a great help if you could clarifty two things:

1. The toolchain you used to generate the Atmel .jed file
2. The actual openocd command line you used to program the .jed file into an ATF1504AS.

Thanks,

Dave


Thanks Dave! I really appreciate your help... download lagu

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/