cancel
Showing results for 
Search instead for 
Did you mean: 

Example program requires NOR flash binary to be written first

golson8436
Associate
Posted on July 26, 2015 at 16:45

Hi,

  I have a STM3210E_EVAL board and I have been going through most of the example programs.  There is one example program with the name:FSMC_NOR_CodeExecute.

If I run this program it will cause a Hard Fault condition because the program is trying to execute code in the nor flash that has not been written yet.  The readme file says I am supposed to program the nor flash at 

Program the NOR memory with the example provided in the ''binary'' directory

@note You can use ST-LINK v3.4.6 tool and select NOR Flash memory in the external loader and

      then flash the binary file at @0x64000000.

Is it possible to use a ULINK2 and keil to program the nor flash.

I found the GPIO_toggle.bin file in the binary directory.

The second step is to download the main program to run the nor flash program.

Thanks,

  Gary 

1 REPLY 1
Posted on July 26, 2015 at 21:45

Is it possible to use a ULINK2 and keil to program the nor flash.

Yes, you create a Flash Applet, and then in the setting for the debugger you select your applet as the ''Flashing Algorithm'' for the region of memory described in the AXF/HEX file

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..