Dec 15, 2022
12:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 15, 2022
12:56 PM
Hello,
I'm asking an easy way to implement a code that trigger a PIE TRAP (Class 4, TIN 5).
The PIE trap is raised whenever an uncorrectable memory integrity error is detected in an instruction fetch from
a local memory or the SRI bus.
So I need to ineject some errors in memory where the code is runned (SRAM or FLASH) in order to obtain an integrity error.
Can someone help me on this topic ?
Regards,
Giambattista
Solved! Go to Solution.
- Tags:
- trap
1 Solution
Feb 07, 2023
05:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 07, 2023
05:24 PM
One way to cause a PIE TRAP (Class 4, TIN 5) is by trying to execute from uninitialized program flash memory. For example if you have erased memory at location 0xA0005000 then in your code as a test you could do something like this (running from core 0):
typedef void (*func_t)(void);
((func_t) 0xA0005000)();
Debug information from Lauterbach to show the results...
1 Reply
Feb 07, 2023
05:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 07, 2023
05:24 PM
One way to cause a PIE TRAP (Class 4, TIN 5) is by trying to execute from uninitialized program flash memory. For example if you have erased memory at location 0xA0005000 then in your code as a test you could do something like this (running from core 0):
typedef void (*func_t)(void);
((func_t) 0xA0005000)();
Debug information from Lauterbach to show the results...