2024-01-14 01:10 AM
Hello,
I'm writing a Flash HAL driver in order to understand better how this CHIP work.
My functions at the moment work correctly but for some page I have an HardFault(During erase).
For example I can't erase/write the page 0 and others pages.
Please could you explain me why?
Thanks!
2024-01-14 05:19 AM
Probably your code is running at page 0. Erasing it causes unexpected behavior.
2024-01-14 06:57 AM
Hello @TDK , thanks for your reply.
There is a way to verify that my code is running at page 0?
2024-01-14 07:01 AM
That's typically where the code starts. If you haven't changed any settings, that's where it is.
Your linker script should have a section called FLASH. If it's set to 0x08000000, code starts there, at page 0.