I’m having trouble writing to the flash of my LPC2468, specifically using the JTAG connection. Using CrossWorks for ARM, I can build, link, etc my project, however it fails to write to the flash of the target using two different JTAG connectors, CrossConnect Lite and Olimex ARM-USB-OCD. However, I am able to write to flash using the Flash Magic utility, writing the program that CrossWorks builds (additional .hex output format). Additionally, I am able to attach the CrossWorks debugger to the LPC2468 and follow its execution once I have downloaded the program using Flash Magic. Also, I have checked to make sure CRP is disabled using Flash Magic.
I am using a JLINK pod with IAR and have few problems. The only time I have issues is if the code I was running had the watchdog timer enabled. In this case since the download takes longer than the time out period, the download gets interrupted. My solution (although ugly) is to send a serial command to the board to greatly increase the timeout period prior to a program. We have also found that Segger’s download utility is somehow able to (most of the time) circumvent the WDT. Not sure how they do that!
fll-freak:
I am using a JLINK pod with IAR and have few problems. The only time I have issues is if the code I was running had the watchdog timer enabled. In this case since the download takes longer than the time out period, the download gets interrupted. My solution (although ugly) is to send a serial command to the board to greatly increase the timeout period prior to a program. We have also found that Segger’s download utility is somehow able to (most of the time) circumvent the WDT. Not sure how they do that!
I disabled the watch dog from resetting the device, however the problem is still present.
leon_heller:
Sounds like a JTAG hardware problem. Post the schematic.
This is interesting, I am not too familiar with hardware, but here are two schematics for the board. They are only focused on the JTAG connections, because I’m not sure of the relevance of the rest of the schematic. The second image shows the detailed part of the JTAG connection.
Final update, for sake of completion. The problem was solved by setting the Loader Parameter to 0. (In Project Properties → Target Loader Options → Loader Parameter)