This widget could not be displayed.
Not applicable
Mar 28, 2018
08:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 28, 2018
08:09 PM
Hi all,
I attempt to readout the content of Interrupt table in Flash like following.
pcrcdata = (uint8 *) InterruptTBADDR;
for (i = 0 ; i < 40; i++)
{
int_tb_buffer = *(pcrcdata +i);
}
However, it always enter an Trap with TIN number 2 after reset. After checking relative special function register, it was found this issue was caused by cache refill error in the register CPU0_DSTR.
And the register CPU0_DEADD showed that it happened while the code attempt to access the flash address that interrupt table located. No matter where the interrupt table was located.
Is there any other procedure need to do before access interrupt table?
BR,
Morris
I attempt to readout the content of Interrupt table in Flash like following.
pcrcdata = (uint8 *) InterruptTBADDR;
for (i = 0 ; i < 40; i++)
{
int_tb_buffer = *(pcrcdata +i);
}
However, it always enter an Trap with TIN number 2 after reset. After checking relative special function register, it was found this issue was caused by cache refill error in the register CPU0_DSTR.
And the register CPU0_DEADD showed that it happened while the code attempt to access the flash address that interrupt table located. No matter where the interrupt table was located.
Is there any other procedure need to do before access interrupt table?
BR,
Morris
- Tags:
- IFX
1 Reply
Mar 30, 2018
09:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 30, 2018
09:49 AM
There should not be an issue to read the interrupt vector table. On taking an interrupt the CPU will vector to a unique PC generated from the interrupt priority number and the Base Interrupt Vector (BIV). What device are you using? What is the Trap Class are you getting?
This widget could not be displayed.