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

AURIX™ Forum Discussions

IslamGamal
Level 1
First question asked Welcome!
Level 1

On using FlsLoader_Write(0x80640000, 32, &alignedPageBuffer[0]) API to write a page in PFLASH2 of AURIX TC397XX, Program Fetch Synchronous Error (PSE) Trap is occurred and Fetch Bus Error (FBE) is raised in CPU->CPU0->PMI->PSTR (Program Synchronous Trap Register).

After debugging I figured out that any assembly instruction (e.g., ld16.w, addi, ige.u, sh and etc) at P:0x80022940 causes this issue.

01_FlsLoader_Writing_Issue_02.PNG

01_FlsLoader_Writing_Issue_03.PNG

01_FlsLoader_Writing_Issue_04.PNG

01_FlsLoader_Writing_Issue_05.PNG

If I placed a loop that contains __asm__ volatile ("nop" ::: "memory") before the line causing the issue (so that the code below the loop is shifted away from 0x80022940), the trap NOT occurred. However, the data did not reflected to the memory (although FlsLoader_Write returns E_OK and PMU->DMU->ERRSR register is 0x0)

I need to know why this is happening to solve it permanently.

0 Likes
1 Reply
Nambi
Moderator
Moderator 100 replies posted 10 likes received 25 solutions authored
Moderator

Hi,

As this is part of MC-ISAR, which is licensed, this topic cannot be discussed in a public forum. We request you to please get in touch with your local Infineon, distributor, or software reseller contact.

Best Regards.

0 Likes