issue SPI iLLD _interrupt trap

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User19634
Level 1
Level 1
Hello forum,

we experience a strange issue with TC222 evalboard, while working with the iLLD. As base project template we are using the official BiFaces TC2x Template; so we've integrated these files inside the develpoment platform
The template includes the iLLD package in minimal extent. We added the SPI iLLD driver for communicating with external peripheral devices.

The program works fine until we call the function "IfxQspi_SpiMaster_exchange(...)" for sending SPI messages. Now the controller moves to a trap because of invalid memory access.
BIV register, which should contain start address for Interupt vector table is empty, which is kind of inline with the the trap due to invalid memory adress. So why is the BIV reg empty?
Seems to be also not working with our board when using the ILLD example SPI_CPU.

Is there something we overlooked?

Thx for support!

BR;
0 Likes
4 Replies
User19634
Level 1
Level 1
short add - TC275 evalboard we are not having these issues
0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
Check your map file. I expect that there is __INTTAB == 0

This can be happen when you don't specify any function as interrupt. You have a valid interrupt function?
0 Likes
User19634
Level 1
Level 1
thx for prompt reply.

we have valid interrupt function in ISR.c and with asigned IfxCpu_Irq_installInterruptHandler().
0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
Check your *CStart* file which value is written to BIV also check the value of __INTTAB in your map-file
0 Likes