Monday, February 19th 2018, 8:25pm UTC+1

You are not logged in.

  • Login
  • Register

AntonLag

Beginner

Date of registration: Jan 31st 2018

Posts: 4

1

Wednesday, January 31st 2018, 4:19pm

Embedded Trace Buffer on STM32H743II

Hi,

I'm trying to use the ETB on an STM32H743II with a J-Link Pro V4.00 (SW V6.30). I'm trying to do this with Segger Ozone debugger SW.
When I download my code to target and start the session I get an error message: "ETB selected as trace source, but current device does not support an ETB".
Not sure what device relates to here. Is it my J-link? The target processor has an ETB of 4 kB.
Is this function not implemented for this processor yet? If not when will it be?
Or do I need a J-Trace probe?

Best regards,
Anton

This post has been edited 1 times, last edit by "AntonLag" (Jan 31st 2018, 4:20pm)


SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 699

2

Thursday, February 1st 2018, 9:52am

Hello Anton,

Thank you for your inquiry.
Generally ETB on Cortex-M is supported out-of-the-box without additional configuration required. Also with J-Links.
J-Trace is only needed if you want advanced ETM pin trace with high speed streaming trace features.
Unfortunately the H7 is by no means a "normal" Cortex-M device. It comes with many Cortex-A like debug features like a 8 kB ETF/TMC instead of a ETB which are only accessible over a APB instead of a AHB. All this differences make trace configurations a lot trickier then they usually are for Cortex-M devices.

That is why for this device additional setups are needed.
A working streaming trace example for the J-Trace is already available and can be downloaded here: https://wiki.segger.com/Tracing_on_ST_STM32H743

A ETF trace example is expected to be released by the end of the week in the same wiki article.

Best regards,
Nino

AntonLag

Beginner

Date of registration: Jan 31st 2018

Posts: 4

3

Friday, February 2nd 2018, 6:35am

Thank you for your quick and informative answer!

I will keep a look out for the example in the wiki.

Best regards
Anton

AntonLag

Beginner

Date of registration: Jan 31st 2018

Posts: 4

4

Tuesday, February 6th 2018, 10:26am

Hi again,

How is going with the update of the wiki article about tracing with STM32H743 using ETF/TMC.

Best regards,
Anton

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 699

5

Wednesday, February 7th 2018, 12:26pm

Hi Anton,

Sorry for the delay.
We had to postpone the H7 ETF project as we have some more pressing projects on our hands at the moment.
A rough estimate for the project release is currently not possible. We will try to squeeze it in when possible.
The issue is that for the H7 the Coresight components need to be initialized in a very inconvenient manner which increases the JLinkScript complexity enormously compared to other Cortex-M devices.

What we could offer you is to provide you the JLinkScript in source form for the pin trace init and you can use that as reference to enable ETF/TMC trace on your own.
Would that be of interest for you?

Best regards,
Nino

AntonLag

Beginner

Date of registration: Jan 31st 2018

Posts: 4

6

Tuesday, February 13th 2018, 8:44am

Hi,

Yes that would be great! Then we can test it out ourselves.

Best regards,
Anton

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 699

7

Tuesday, February 13th 2018, 10:58am

Hi Anton,

we will contact you per e-mail then.
This thread will now be closed.

Best regards,
Nino