cancel
Showing results for 
Search instead for 
Did you mean: 

STM324x9I_EVAL and external Flash

Nickjmas
Associate III
Posted on March 29, 2017 at 14:23

Hello

recenty I bought an STM324x9I_EVAL and I would try to run the STemWin_SampleDemo in the external flash. My toolchain is MDK_ARM an I use Keil 5

As I know, I need
  • Add a Programming Algorithm for the external flash. Is there one compatible with M29W128GL?
  • Make an init file to configure the RCC, GPIO and FSMC registers because had a minimal setup before download with Programming Algorithm.
  • Change the Memory Areas to ROM1, setting it as default and Startup. Set the Start address at 0x60000000 and size 0x1000000.
  • Flash an IAP in the internal flash for jump to the external flash. I think the IAP application sample could be a valid initial point, changing only the address where I want to jump to 0x60000000.

Is there more steps to get on success?

Best regards

#external-flash #stm324x9i-eval
1 REPLY 1
Posted on March 29, 2017 at 16:46

The quickest way to success would be to get Keil to build a .HEX file, and then use the ST-LINK + Utilities to blow the image using ST-LINK Utility\ExternalLoader\M29W128GL_STM324x9I-EVAL.stldr

And telling Keil not to update memory when entering the debugger

Some portable source would be

ST-LINK Utility\ExternalLoader\M29W128GL_STM3210E-EVAL\Sources\Loader_Files

From a Keil perspective you'd likely want to make a board specific variant, where the Init code sets up the bus

ie Platform tailored like

C:\Keil474\ARM\Flash\STM32F10x_M25P64

C:\Keil474\ARM\Flash\LPC18xx43xx_S25FL032

The vector table would be at 0x60000000, this is not executable code, the Reset_Handler's address would be at 0x60000004, and point to an ODD address somewhere deeper into the image

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