2024-12-15 09:38 PM
I Use SPC582B-DIS Board and i use flash driver provided in ST with DOC UM2636(Standard Software Driver for C55 Flash module embedded on SPC58 B, C, E, H, G and N lines microcontroller).
My code booted from 0x00fc0000 in low address.
and modify the large arddress(0x00100000) used by the flash dirver.
Flash init and Setlock(for unlock) is are ok.
but hard fault is happend when i excuted FlashErase Fnc.
When i tryed the DataFlash(EERPOM), is ok.
But when i try CodeFlash is fault.
is there anyone who can help me?