Le 2010-10-30 04:20, Chris Jones a écrit :
I'd like to work out whether the debug unit really does break, or
whether there's just a misunderstanding about state between it and OpenOCD.
Wouldn't pulling the boot pin and send the reset core work?
I would suggest to use the IAR limited version with a small version of
the code and try it out. You are limited at 32k with that version.
You could also ask for a one month try out. With IAR you can use openocd
or the manufacturer's code.
It is not the default in IAR but there is an option to send the reset
core command to the processor before attempting to load the code.
What I found out was that if I had DMA enabled part of the code would be
trashed on power up. Debug wouldn't work because it would crash.
Once I put my bootloader the checksum would always fail and that is when
I found out that one area of RAM was being wiped out, code common
between the ADC DMA and RAM area used by the IAR reflashing program.
After I enabled the reset core everything worked fine. I use the
bootloader to reflash code in the field connecting on the OBD or other
diagnostic port.
I use J-Link.
Michel Catudal
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development