AnsweredAssumed Answered

STM3240G-EVAL in application FLASH programming problem

Question asked by van_wyk.herman on Mar 27, 2013
Latest reply on Apr 9, 2013 by van_wyk.herman
Hi all,
I am currently using the STM3240-EVAL kit. 
I am writing a custom bootloader which needs to store some configuration information in the FLASH memory at a specific address. 
I am however experiencing very odd behavior when writing to FLASH. The values I write to FLASH and the actual values written to FLASH differ.
I used the STM Configuration tool XLS document to generate the necessary clock configuration and FLASH enabling and I am unlocking the FLASH before performing any writes. I use the standard peripheral library functions to write to FLASH.
I am running the CPU at 168MHz and according to the documentation the FLASH latency needs to be set to 5 wait states.

Does anyone have an idea what might be wrong or missing?

Thanks,

Herman

Outcomes