2007-12-06 10:24 PM
code works in debug mode , but not in MCu stand alone mode?
2007-10-29 08:28 PM
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=false2007-12-06 10:24 PM
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.