Saturday, April 21st 2018, 2:23am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

PacoCid

Beginner

Date of registration: Feb 15th 2018

Posts: 8

1

Friday, February 16th 2018, 6:46pm

[SOLVED] [Ozone]SWO issue

Hi,

I am using SWO in Ozone and I have no idea why I get this, Let me explain:

When I am debugging Ozone, nothing from my traces show up, I have tested with differents configuration (freq and ITM and nothig appear, but curiosly, when I connect through swoview (meanwhile ozone is running), there are information from SWO in the Ozone!

I am using cortex-m4 on a nrf52832 board from Nordic.

JLink version V.6.22e
Ozone V2.54

Before write this post I have tried any information related to SWO posted in this forum...
Any idea what could be happened? Thanks.

Best regards,

Paco

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

2

Monday, February 19th 2018, 9:14am

Hello Paco,

Thank you for your inquiry.
To use SWO in Ozone you need to configure it in Ozone.
For this open your Ozone project and go to Edit->Trace Settings... -> trace source SWO.

Does that solve the described behaviour?

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


PacoCid

Beginner

Date of registration: Feb 15th 2018

Posts: 8

3

Monday, February 19th 2018, 10:40am

Good morning Nino!,

Unfortunetly no, SWO traces has been configurated as you said (Edit-> Trace Settings-> SWO). Also, I have tested with AUTO clock and there are not traces in Ozone, I need to start swoview from JLinkExe in order to see traces...

I have recorded a video for a better understanding of the issue -> https://vimeo.com/256383334

Thanks!

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

4

Monday, February 19th 2018, 11:41am

Hello,

Thank you for providing additional information.
Now it makes more sense, I thought you were using the JLinkSWOViewer.
Are you using the PCA10040 eval board or some other?
Could you provide a example project where the issue is reproducible?
Could you try the latest Ozone and J-Link software release version to make sure we are not hunting any bugs that have already been solved?
https://www.segger.com/downloads/jlink/

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


PacoCid

Beginner

Date of registration: Feb 15th 2018

Posts: 8

5

Monday, February 19th 2018, 1:09pm

Hi Nino,

Thanks for your quick response.
Hello,

Thank you for providing additional information.
Now it makes more sense, I thought you were using the JLinkSWOViewer.
Are you using the PCA10040 eval board or some other? Yes, I am using PCA10040 evaluation board
Could you provide a example project where the issue is reproducible? Yes, of course, let me post-it below
Could you try the latest Ozone and J-Link software release version to make sure we are not hunting any bugs that have already been solved? I have tried and I get the same behavior
https://www.segger.com/downloads/jlink/

Best regards,
Nino

Basically, I am using this piece of code:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdint.h>
#include "nrf.h"

int main(void)
{
	NRF_CLOCK->TRACECONFIG = (NRF_CLOCK->TRACECONFIG & ~CLOCK_TRACECONFIG_TRACEPORTSPEED_Msk) |
		(CLOCK_TRACECONFIG_TRACEPORTSPEED_4MHz << CLOCK_TRACECONFIG_TRACEPORTSPEED_Pos);

	ITM->TCR |= 1;
	ITM->TER |= 1;
	uint8_t c = 65;
	while (true)
	{
	
		ITM_SendChar(c);
		if( c >= 90){
			c = 65;
		}else{
			c++;
		}
	}
}


BR,

Paco

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

6

Tuesday, February 20th 2018, 9:49am

Hi Paco,

when using our software there is no ITM setting required from your application.
It even will disable SWO connection in some cases. So remove any ITM settings from your code.
To use SWO in Ozone make sure that you have run the JLinkDLLUpdater once from the J-Link software install folder.
For this close any open Ozone window and apply the DLL update.
Now you should see SWO automatically in Ozone when starting the debug session without needing to launch the Commander.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


PacoCid

Beginner

Date of registration: Feb 15th 2018

Posts: 8

7

Tuesday, February 20th 2018, 11:35am

Hi Nino,

I have been searching this DLL and I haven't got this file in my computer... I suppose that it should be included in the JLink Software packet.

Could you verify that this file is included in the "J-Link Software and Documentation pack for Linux"?

If case that the file is missing... Could you share DLL file with me?

PS:Keep in mind that I am using Ubuntu 16.04 LTS. :)

Thank Nino!

This post has been edited 1 times, last edit by "PacoCid" (Feb 20th 2018, 11:36am)


SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

8

Tuesday, February 20th 2018, 1:55pm

Hi Paco,

Quoted


Could you verify that this file is included in the "J-Link Software and Documentation pack for Linux"?

Ok didn't have the information before that you are using Linux.
In that case you need to do the "update" manually by moving the JLinkDevices.xml and Devices/ folder from the J-Link install folder to the Ozone install folder.
Then the correct SWO sequence should be called when selecting a nRF52 device with Ozone.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


PacoCid

Beginner

Date of registration: Feb 15th 2018

Posts: 8

9

Tuesday, February 20th 2018, 6:14pm

Hi Nino!,

I have updated ozone as you said, the file JLinkDevices.xml and the folder /Devices from Jlink to ozone and I am getting tthe same results...
Please, take a look to the video -> https://vimeo.com/256618030

Am I doing something wrong?

Would you mind to share your Ozone files (for Ubuntu 16.04) that are working with the right configuration with me?

Thanks!

BR,

Paco

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

10

Wednesday, February 21st 2018, 10:20am

Hi Paco,

For reference you can use the following example project from Nordic SDK.
https://download.segger.com/Nino/NordicSDK_SES.7z
The download will be available for at least 24 h.

The example under examples\ble_central\ble_app_blinky_c\pca10040\s132\ses
There you will find a Ozone project which should run out of the box and configure SWO correctly.
The sources are included so you can compare them with your project.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


PacoCid

Beginner

Date of registration: Feb 15th 2018

Posts: 8

11

Tuesday, February 27th 2018, 5:23pm

Hi Nino,

After one week looking for the reason that my code ITM doesn't work and yours works....
I have figured out that there was a bug in my initialization.

Thanks for your great support, this issue is cosed from my point of view. :thumbup:

Best regards,

Paco

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 938

12

Wednesday, February 28th 2018, 11:29am

Hi Paco,

Great to hear that you are up and running again.
We will consider this case as closed now.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/