2007-12-10 01:01 AM
STM32-SK & AN2557
2011-05-17 03:18 AM
Hi,
I'm new to the STM32, but I love it. I have the IAR STM32-SK KickStart kit. I was 'playing' with the DMA examples in AN2548, specifically Example1. I modified the code to use AIN15 instead of AIN14 because the IAR board has a Pot on AIN15. The example worked well. But, when I try to reprogram the STM32 with another appl., I get errors from the JTAG/Debugger. The part can not be reprogrammed. I found out if I reprogam the STM32 with the code from AN2557, the In Application Programming example, it works! Then I can reprogram it with what ever I want. Can anyone explain what causes this? Thanks, B.K.2011-05-17 03:18 AM
Hi,
try to use the latest version of Jlink driver because it implements a new reset type for cortex-M3 devices and may be it fixes your problem. http://www.segger.com/download_jlink.html Rgds2011-05-17 03:18 AM
I'm using version 3.78a, downloaded from the Segger web site.
2011-05-17 03:18 AM
Can you send me your project?
Rgds2011-05-17 03:18 AM
I can reprogram the STM32 even after loading the code you sent into Flash.
I' using EWARM4.42A+ jlink 3.78a Rgds,2011-05-17 03:18 AM
Here is the project. I modified it to use AIN15 instead of AIN14.