STM32F0x Read/Write to Internal Flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-09 7: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-09 8:03 AM
Doesn't the part only have 32KB of FLASH, perhaps that's the reason?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-09 9:21 AM
Yes, it has 32kB of FLASH but 0x0800FC00 I think is the last page available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-09 9:25 AM
0xFC00 = 63KB, try 0x7C00 = 31KB
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-10 1:55 AM
You are right! I've correct the address on another file and not in this! My distraction!
Thanks.
