I have managed to get trace working using IAR, but unable to get trace working when importing .out file into Ozone.
I just get 'no data' message in trace window. No activity on the TRACECLK.
I (quickly) played around with Embedded Studio and seemed to get similar results.
Also, seemingly no SWO trace either (View->Code Profile)
My steps to repeat are as follows:
Create Cube project using 8MHz crystal direct (no PLL) and 4pin TRACE
Load into IAR 8.50.5 and verify trace - It works. (But not reliable at speed due to IAR not handling errors correctly)
Scope of TRACECLK shows activity (4MHz, half the HCK)
Disconnect and close IAR
Then:
Open Ozone 3.20e, use project wizard to set device and import the *.out file generated by IAR
Turn on trace using Tools->Trace settings...
Debug - SWD works but, but no trace.
Scope of the TRACECLK shows no activity.
Question:
Are there any steps I am missing that are not provided as part of generating the new project?
Is anyone else is using J-Trace with Ozone for STM32G4, If so, please can you confirm here?
To help explain, I captured all these steps in a screen cast
youtu.be/soTFIevQ9pQ
Hardware:
J-Trace Pro V1
Firmware build: Jun 9 2020 13:40:26
Serial Number: 751000037
Registers:
TRACE_IOEN=b'1, TRACE_MOD= b'11 - Which seems OK
PORTE remains at power on defaults - Not OK?
The debug shows no surprises, as a TRACKSCK is not being generated by the micro:
Display All
Any help / tips / pointer would be much appreciated..
Thanks..
I just get 'no data' message in trace window. No activity on the TRACECLK.
I (quickly) played around with Embedded Studio and seemed to get similar results.
Also, seemingly no SWO trace either (View->Code Profile)
My steps to repeat are as follows:
Create Cube project using 8MHz crystal direct (no PLL) and 4pin TRACE
Load into IAR 8.50.5 and verify trace - It works. (But not reliable at speed due to IAR not handling errors correctly)
Scope of TRACECLK shows activity (4MHz, half the HCK)
Disconnect and close IAR
Then:
Open Ozone 3.20e, use project wizard to set device and import the *.out file generated by IAR
Turn on trace using Tools->Trace settings...
Debug - SWD works but, but no trace.
Scope of the TRACECLK shows no activity.
Question:
Are there any steps I am missing that are not provided as part of generating the new project?
Is anyone else is using J-Trace with Ozone for STM32G4, If so, please can you confirm here?
To help explain, I captured all these steps in a screen cast
youtu.be/soTFIevQ9pQ
Hardware:
J-Trace Pro V1
Firmware build: Jun 9 2020 13:40:26
Serial Number: 751000037
Registers:
TRACE_IOEN=b'1, TRACE_MOD= b'11 - Which seems OK
PORTE remains at power on defaults - Not OK?
The debug shows no surprises, as a TRACKSCK is not being generated by the micro:
Source Code
- Debug.Start();
- Device "STM32G474VE" selected.
- Found SW-DP with ID 0x2BA01477
- DPIDR: 0x2BA01477
- Scanning AP map to find all available APs
- AP[1]: Stopped AP scan as end of AP map has been reached
- AP[0]: AHB-AP (IDR: 0x24770011)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xE00FF000
- CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
- Found Cortex-M4 r0p1, Little endian.
- FPUnit: 6 code (BP) slots and 2 literal slots
- CoreSight components:
- ROMTbl[0] @ E00FF000
- ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
- ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
- ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
- ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
- ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
- ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
- Connected to target device.
- Reset: Halt core after reset via DEMCR.VC_CORERESET.
- Reset: Reset device via AIRCR.SYSRESETREQ.
- Elf.GetBaseAddr(); // returns 0x8000000
- Target.ReadU32 (0x08000000); // returns 0x20000460
- Target.SetReg ("SP", 0x20000460);
- Elf.GetEntryPointPC(); // returns 0x80014BC
- Target.SetReg ("PC", 0x80014BC);
- J-Link: Flash download: Bank 0 @ 0x08000000: Skipped. Contents already match
- Elf.GetBaseAddr(); // returns 0x8000000
- Target.ReadU32 (0x08000000); // returns 0x20000460
- Target.SetReg ("SP", 0x20000460);
- Elf.GetEntryPointPC(); // returns 0x80014BC
- Target.SetReg ("PC", 0x80014BC);
- Executed J-Link command "SelectTraceSource=1"
- Using dedicated IP streaming channel for max. trace throughput. J-Trace: IP 192.168.85.240:19030. Host IP: 192.168.85.33:64374.
- No trace clock present, trace may not work correctly.
- If application enables trace clock during execution, start of trace data may be missing.
- No trace clock present, trace may not work correctly.
- If application enables trace clock during execution, start of trace data may be missing.
- Startup complete (PC=0x08001084)
Any help / tips / pointer would be much appreciated..
Thanks..
The post was edited 3 times, last by jnewcomb ().