STM32L496 error while writing flash after programming flash page with JLink
Hi,
For our application we want to write a region in flash with configuration files during production. This is handled by the Segger JLink that writes the program bin and the configuration bin in two parts of the memory.
While the firmware can read out the values, it is not able to remove the values or write something on the address after the pre-programmed values.
However, if we only program the firmware and let this handle all sorts of configuration writing/removing there is no problem. Comparing the flash areas of these two situations shows no differences.
Single step debugging and reading out the flash registers shows that the SR register gives a value of 0xA8 after writing the first double word.
We use the NVStore from mbed os 5.12 to handle the memory management.
If more information is required, I am happy to add this to the question.