Loading TMS470R1B1M with IAR Workbench through JTAG

I am new to programming microcontrollers and have a question about an error I get loading my software. When I download, the workbench debug log tells me that there are warnings but that it downloaded. However, when I look at the warnings, it looks like it has trouble reading every address that is created in the linked file. It will give messages like, "target byte: 0x00, byte in file: 0x48". Does anybody know what could be causing this? I have heard that maybe I need to invoke a macro to set up my registers for the TMS470 first, but I am not sure why I would have to do this if all of my source code invokes the proper addresses, according to TIs documentation.

Thanks, Rudy

Reply to
pinalri
Loading thread data ...

It sounds like it is not programming the part at all, and reading back zeros at every byte when it tries to verify.

Reply to
larwe

Well, that's what I thought also, and maybe that's what it is doing, however, if I go down the list of errors, I can see that not all the target bytes are set to 0x00, some are 0x20, 0x27 and others.

Regards, Rudy

Reply to
pinalri

Perhaps the problem is code protection related? Best regards, Spehro Pefhany

--
"it's the network..."                          "The Journey is the reward"
speff@interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
Reply to
Spehro Pefhany

All,

Thank you for your help. I figured out that I was doing something silly and hopefully I do not do it as I get more experience. What I ended up doing was adding a macro file to the download that actually set up the registers in the TMS470. This cleared my problems and I no longer get warnings when downloading. The next step is to test it to see if it works as designed...

Regards, Rudy

Reply to
pinalri

I had some time ago a similiar problem with MPLAB IDE: If you program a flash with earlier versions of MPLAB IDE, you had to erase the flash manually, first. Erased flash locations read as 0xff and can be programmed to anything. A flash location which is already programmed to 0x00 can't be programmed to 0x48, so the error message would be the same.

PS: Later versions of MPLAB IDE does a erase flash command automaticly before programming.

--
Frank Buss, fb@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de
Reply to
Frank Buss

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.