Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution

infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: Aurix TC29x Trap on flash command

  1. #1

    Aurix TC29x Trap on flash command


    we are using the TriBoard for the TC297 B. We are currently using 2 cores (core 0 and core1), running two separate applications there:
    - core0 (bootloader application), binary is located at pflash 0, app is programmatically using pflash 2 for additional code, coming via communication
    - core1 (special application) binary is located at pflash 1, app programmatically using pflash 3 for additional code, coming via communication

    Both have the same code for the low-level flashdriver (only difference is Flash-Startaddress, of course).
    When accessing PFlash 2 everything is fine. Can be erased, flashed etc.
    When accessing PFlash 3 i constantly get a TRAP 4 TIN 3 (DAE Trap - Store Bus Error) for the Address 0xAF005554 (the command address for talking to the flash).
    This access is done from core1. So i tried to let core0 access this pflash3, but there is the same problem.
    We do not use any protection measures, and i doublechecked all the other flash registers etc. So it does not look like permission problem.

    The strange thing: if i set a breakpoint with my UDE Debugger right at the position where this "problematic" command is made,
    and step through all this commanding, everything is fine. Erasing, loadpage, writepage works fine.

    So my question is: does anybody know this effect, or has an idea on how to solve such a problem?

    Thank you in advance.



  2. #2
    New Member New Member Alexanderv67 is on a distinguished road
    Join Date
    Jul 2019
    Have you solved the problem with FLASH? I have the same problem

  3. #3
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    A PFlash can be only accessed if there is no command pending (e.g. erasing or programming). If a command is pending then the corresponding BUSY bit of the PFlash will be set and you must wait until hw clears this bit.
    Please note that the DAE trap is asynchron, this means when you return from this trap then you will not see the faulting instruction. The problematic instruction can be located earlier in your code.
    I am assuming that the PFlash 3 is not ready to accept commands therefore you get the trap. Maybe you check the BUSY bit before execution of command. Make sure t´hat there is no access from other CPU.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

Tags for this Thread


All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.