cancel
Showing results for 
Search instead for 
Did you mean: 

STM32-SK & AN2557

bob239955_st
Associate II
Posted on December 10, 2007 at 10:01

STM32-SK & AN2557

6 REPLIES 6
bob239955_st
Associate II
Posted on May 17, 2011 at 12:18

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.

zouhair
Associate II
Posted on May 17, 2011 at 12:18

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

Rgds

bob239955_st
Associate II
Posted on May 17, 2011 at 12:18

I'm using version 3.78a, downloaded from the Segger web site.

zouhair
Associate II
Posted on May 17, 2011 at 12:18

Can you send me your project?

Rgds

zouhair
Associate II
Posted on May 17, 2011 at 12:18

I can reprogram the STM32 even after loading the code you sent into Flash.

I' using EWARM4.42A+ jlink 3.78a

Rgds,

bob239955_st
Associate II
Posted on May 17, 2011 at 12:18

Here is the project. I modified it to use AIN15 instead of AIN14.