code works in debug mode , but not in MCu stand alone mode?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-12-06 10:24 PM
Posted on December 07, 2007 at 07:24
code works in debug mode , but not in MCu stand alone mode?
Labels:
- Labels:
-
Legacy Products
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-10-29 8:28 PM
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=falseOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2007-12-06 10:24 PM
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.
