- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We would like to reset if the program is jumped to the unused flash area.
Do you have any good ideas about that?
Best regards,
Yocchi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a NMI when accessing non-existing memory areas. This currently jumps to an infinite loop for better debugging. You may provide your own interrupt handler and perform a CySoftwareReset().
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a NMI when accessing non-existing memory areas. This currently jumps to an infinite loop for better debugging. You may provide your own interrupt handler and perform a CySoftwareReset().
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fill the unused area of Flash ROM with any UNDEFINED instruction. So it is available to cause an illegal instruction exception when entering to the unused flash ROM area.
I found an article at the following URL
FILLing unused Memory with the GNU Linker | MCU on Eclipse
It seems available to modify the linker script to fill the unused Flash ROM area. This article is not for PSoC 4, but it is available to adapt to PSoC Creator's linker script.
Will anyone try to implement?
Regards,
Noriaki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you very much for advice.
Can I set the filling unused memory in PSoC Creator?
Best regards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Assuming you are asking Flash memory, it is not possible to fill any value in unused memory in PSoC Creator.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you very much.
I could fill the unused flash area with unique data(for example :0xe7fe this means "loopa: b loopa")
by using GNU Linker Script.
PSoC Creator can use the custom linker script like below.
Best rergards,
Yocchi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You meant you wanted to fill the unique data when you build project in PSoC Creator... instead of dynamic change in PSoC Creator...
Yes, you would be able to do this with what you mentioned above.