infineon4engi@twitter infineon4engineers infineon@linkedin infineon@youtube
twitter Facebook Linkedin Youtube

Banner_Aurix_Competition Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_OnzerOS Banner_AURIX_DevelopmentStudio


+ Reply to Thread
Results 1 to 8 of 8

Thread: Trace32 .cmm script for TC377tP

  1. #1
    Intermediate Intermediate nadeem_syed is on a distinguished road
    Join Date
    Jul 2020
    Location
    USA
    Posts
    45
    Points
    360

    Trace32 .cmm script for TC377tP

    Does anyone have a Trace32 .cmm script for TC377TP device ?

    I found some examples from the Trace32 documentaiton, but not sure which one's to use.

    Any thoughts ?

  2. #2
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    MoD is on a distinguished road
    Join Date
    Feb 2012
    Location
    Munich
    Posts
    175
    Points
    3489.375
    What should the script to do? CPU selection is always possible via CPU -> System Settings...
    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.

  3. #3
    Intermediate Intermediate nadeem_syed is on a distinguished road
    Join Date
    Jul 2020
    Location
    USA
    Posts
    45
    Points
    360
    I want to use the .cmm script to flash the .elf file. It can be done manually, however I want a .cmm script for automating some of my activities

  4. #4
    Advanced Advanced cwunder will become famous soon enough
    Join Date
    Feb 2015
    Location
    USA
    Posts
    242
    Points
    4852.5
    If you look in the directory where you installed T32 as in my case "C:\T32\demo\tricore\flash" you will find the file tc37x.cmm which will flash your elf file to the internal memory of the TC37x.
    Last edited by cwunder; Oct 18th, 2020 at 07:21 AM. Reason: Change the name from TC27x to TC37x

  5. #5
    Advanced Advanced UC_wrangler will become famous soon enough
    Join Date
    Jun 2019
    Posts
    379
    Points
    7875
    Well... TC37x instead of TC27x, but you could just modify the TC39x scripts, and cut memory from 16 MB to 6 MB.

  6. #6
    Intermediate Intermediate nadeem_syed is on a distinguished road
    Join Date
    Jul 2020
    Location
    USA
    Posts
    45
    Points
    360
    I tried the tc37x.cmm and it gives me exception

    system.reset
    system.detect.cpu
    system.attach
    DO tc37x.cmm CPU=TC377TP PREPAREONLY DUALPORT=1
    data.load "MYHexFile.hex" --- CPU generates an exception on this command
    data.load.elf " MYelfFile.elf" /NOCODE.

    Any thoughts ?
    ?????? ?????? T32_Error.jpg‎  

  7. #7
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    VincentWan is on a distinguished road
    Join Date
    Jun 2019
    Location
    Singapore
    Posts
    31
    Points
    462.5
    Hi

    How did u generate the elf/hex file?
    are u using the AURIX development studio?
    or BIFACES with example codes?

    bus error might be related to wrong memory mapping of code to program flash?
    i suggest u contact Lauterbach support for more efficient support -> support@lauterbach.com
    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.

  8. #8
    Intermediate Intermediate nadeem_syed is on a distinguished road
    Join Date
    Jul 2020
    Location
    USA
    Posts
    45
    Points
    360
    I am using HiTech Development Studio toolchain for generation of elf and hex files. Yes, I contacted Lauterbach support to get more support.

    memory mapping of code to program flash? - With regards to this, due to think the tc37x.cmm is doing this wrong memory mapping ?
    Because when i flash the hex file manually it works without any error.

+ Reply to Thread

Tags for this Thread

Disclaimer

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.