2017-03-09 07:25 AM
Hi,
I'm new on ST MCU, I'm trying yo understand how to read the internal flash of STM32F042K6. I want to read the Page 31 of the device, the address is 0x800FC00 but if I try to read it with a pointer the program goes in HardFault Handler.. Why?
Thanks
2017-03-09 08:03 AM
Doesn't the part only have 32KB of FLASH, perhaps that's the reason?
2017-03-09 09:21 AM
Yes, it has 32kB of FLASH but 0x0800FC00 I think is the last page available.
2017-03-09 09:25 AM
0xFC00 = 63KB, try 0x7C00 = 31KB
2017-03-10 01:55 AM
You are right! I've correct the address on another file and not in this! My distraction!
Thanks.