2023-12-12 01:07 AM
Hello,
I'm trying to read the OTP flash form my application but I get a hardfault.
Is there a read protection or something like that?
Here is a code snippet:
#define FLASH_START_ADDRESS 0x08FFF000 int main(void) { HAL_Init();
uint32_t* flash_data = (uint32_t*)FLASH_START_ADDRESS; uint32_t data = *flash_data;
Solved! Go to Solution.
2023-12-12 03:19 AM - edited 2023-12-12 03:33 AM
Hello,
From Reference Manual: it's due to this:
Please refer to this thread.
2023-12-12 01:20 AM
maybe....from rm :
2023-12-12 02:29 AM
I think that should not result in a hard fault
2023-12-12 03:19 AM - edited 2023-12-12 03:33 AM
Hello,
From Reference Manual: it's due to this:
Please refer to this thread.
2023-12-12 03:19 AM - edited 2023-12-12 03:20 AM
what hard fault ?
try in ide: (while in debug)
menu -> window -> showview -> fault analyzer
2023-12-12 03:32 AM
I mean your C code is bad check your * chaos.