cancel
Showing results for 
Search instead for 
Did you mean: 

code works in debug mode , but not in MCu stand alone mode?

hg-chen
Associate II
Posted on December 07, 2007 at 07:24

code works in debug mode , but not in MCu stand alone mode?

2 REPLIES 2
hg-chen
Associate II
Posted on October 30, 2007 at 04:28

attached is a code that emulate EEPROM with flash and output the read data

via UART to hyperterminal,

In dubug mode (Jlink), the result is as expected,

but power the PCB with MCU , it can not work, and UART seems not work after execute

/* Disable temporarily the FLASH protection on Bank 1 sector 0 */

FLASH_WritePrConfig (FLASH_B1F0,DISABLE) ;

________________

Attachments :

FlsahTest.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtCX&d=%2Fa%2F0X0000000aKF%2F0RmWLWbW6V7BuIuBrIZei46DlKG7msK_0LPqEWNzAAA&asPdf=false
christophe239955_st
Associate II
Posted on December 07, 2007 at 07:24

Hi, I found out, the first Flash Erase/Program operation needs to be executed from RAM. I used the __ramfunc with IAR to execute the first write or erase from RAM. Try the same in your code, this may solve the issue.