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().
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
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?
Thank you very much for advice.
Can I set the filling unused memory in PSoC Creator?
Assuming you are asking Flash memory, it is not possible to fill any value in unused memory in PSoC Creator.
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.
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.