Skip to main content
Visitor II
December 7, 2007
Question

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

  • December 7, 2007
  • 2 replies
  • 637 views
Posted on December 07, 2007 at 07:24

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

    This topic has been closed for replies.

    2 replies

    hg-chenAuthor
    Visitor II
    October 30, 2007
    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
    Visitor II
    December 7, 2007
    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.