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

cross mob
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
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 ?
0 Likes
8 Replies
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
What should the script to do? CPU selection is always possible via CPU -> System Settings...
0 Likes
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
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
0 Likes
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored
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.
0 Likes
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Well... TC37x instead of TC27x, but you could just modify the TC39x scripts, and cut memory from 16 MB to 6 MB.
0 Likes
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
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 ?
0 Likes
VincentWan
Employee
Employee
50 replies posted 5 sign-ins First like received
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
0 Likes
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
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.
0 Likes
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
Guys,

I contacted Lauterbach and got a Interim Update of Trace32 SW (Released on 20-Oct-2020), they also recommend to use flash script from "T32\demo\tricore\hardware\triboard-tc3x7\tc377tp\demo_flash.cmm" script
This script works for me now.

Updating comments here, so that It can save sometime for anyone who is facing this same issue
0 Likes