BSDL for ATMega169P JTAG - Page 1
Forum section: electronics / general

author: gmb42
author_rank: Frequent Contributor
timestamp: February 17, 2014, 09:57:32 pm
content: I'm trying to flash an ATMega169P using JTAG. My JTAG adaptor is a Bus Blaster that emulates an AlmondTec JTAGKey, and I'm using UrJTAG 0.10.When I run up UrJTAG, connect to the adaptor and try to detect the target I get the following output:jtag> cable jtagkeyConnected to libftd2xx driver.jtag> detectIR length: 4Chain length: 1Device Id: 01101001010000000101000000111111 (0x000000006940503F)Manufacturer: AtmelUnknown part!chain.c(149) Part 0 without active instructionchain.c(200) Part 0 without active instructionchain.c(149) Part 0 without active instructionSo UrJTAG seems to recognise the manufacturer but not the part. I've downloaded the ATMega BSDL files from Atmel, but that set only includes a file for the ATMega169 which doesn't seem to match the target.Is there a separate BSDL file for the 169P hidden somewhere, or can I construct one? I only need to flash the device, not debug it.Or am I going to be forced to buy a JTAGICE (clone) to flash the target using Atmel tools?

author: roli_bark
author_rank: Regular Contributor
timestamp: March 03, 2014, 08:49:29 pm
content: Here you go (found it in the Atmel site - in the ICE/ISP sections):

author: gmb42
author_rank: Frequent Contributor
timestamp: March 04, 2014, 09:38:37 am
content: Thanks, but that's for the plain 169, not the 169P.I did manage to modify the plain 169 file (massaging the device ID) to recognise the 169P chip (using UrJTAG), but I still couldn't get avrdude to play nicely.I've just received a USB AVR JTAG ICE clone via Ebay so I'll try that.

author: roli_bark
author_rank: Regular Contributor
timestamp: March 12, 2014, 08:54:49 am
content: There's an avrdude GUI - called "eXtreme Burner" - which supports ANY AVR device.If, for example, its default version does not support a device, you just change (add lines) for the wanted target in a configuration *.xml file.The SW:http://extremeelectronics.co.in/avr-tutorials/gui-software-for-usbasp-based-usb-avr-programmers/Instructions on how to add an AVR missing device:https://sites.google.com/site/controltechnologyperu/home/Tutoriales/tutorial-avr-assembler/atmega-328p-en-extreme-burnerorhttp://blackstufflabs.com/2011/11/27/extreme-burner-atmega328p/?lang=enorhttp://forum.extremeelectronics.co.in/index.php?topic=2391.0( see post 3 from top )

author: gmb42
author_rank: Frequent Contributor
timestamp: March 12, 2014, 10:37:57 am
content: I'll have a look but it seems that extreme burner is only for usbasp type interfaces. I need a jtag one (the target device only has a jtag connector not an ICSP one).Further to my woes, the JTAGICE Mk1 clone I bought does allow avrdude to read the device id, but fails to set the fuses. I haven't yet tried to write the flash. Why is AVR so complicated? I may have to spring for an AVR Dragon or JTAGICE Mk III purely for writing to this device (an HR-20 radiator valve) when I have no other need or interest in AVR.I might try again with the Bus Blaster and avrdude on Linux rather than Windows to see if that will work, on Windows avrdude complained about lack of libusb being compiled in.

author: roli_bark
author_rank: Regular Contributor
timestamp: March 13, 2014, 06:00:04 am
content: I've got a JtagIce mkII knockoff from eBay @ ~$100. It works (r/w flash, eeprom, all fuses) perfectly from within Atmel Studio 6.1. Interestingly enough, a JtagIce mkII (original version) can be bought @ $399 (!!!) directly from Atmel, while JtagIce3 - for $99. I don't understand why this huge price gap.As for the 'avrdude' for windows missing libusb, try to put the attached dll in you 'avrdude' executable folder.[ either leave it at "libusb0.dll", or rename it to "libusb.dll" ]AVR family is just fine (and still, I'am not necessarily an AVR fanboy), it is just that there are many AVR knockoff products/dev-boards (Arduino like) out there with lack of support.

author: gmb42
author_rank: Frequent Contributor
timestamp: March 13, 2014, 09:59:35 am
content: Thanks for the info, I think I did try previously with the libusb dll but no joy.

author: emusic
author_rank: Newbie
timestamp: August 25, 2014, 06:24:00 am
content: Quote from: gmb42 on February 17, 2014, 09:57:32 pmCould you please tell what Bus Blaster version and what SVF file was used for buffer logic programming?I just got v3c and want to use it for SPI flash programming but STM25P05 and MX25L8005 don't respond to UrJtag 0.10 "detect" command at all. To test SPI functions, I connected a working USBASP board that can be programmed by any AVR programmer. It is not detected too (TDO signal doesnt' change at all). I tried to set JTAG frequency from 100000 to 1000000 but no success.Since your BusBlaster allows you to at least detect ATMega IC in JTAGKey emulation, mine should do too. I tried several v3 SVF files but no success. Algthough, self-test with four jumpers works fine so buffer logic functions correctly.

author: gmb42
author_rank: Frequent Contributor
timestamp: August 25, 2014, 12:00:49 pm
content: I'll have to check later on when I get home.