cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
1,251 Views
Registered: ‎11-21-2017

SDK build errors related to profiling?

Jump to solution

I am using SDK 2017.4

I have a microblaze design and am trying to create a standalone app for this.

I exported the hardware spec and created a new application project but when I try to build the project, I get a sequence of errors which I think are related to profiling. How do I fix these or disable profiling in the short term? And why doesn't the sample project work out of the box, i.e. what setting do I have which is causing this?

 

The first error was missing xtmrctr_l.h. Not knowing any better, I worked around this by copying it to the bsp from the sdk install location. The next error is CPU_FREQ_HZ undeclared in _profile_init.c. If I hack a definition in here, I then get a further cavalcade of errors. (attached).

 

Thanks.

Capture.PNG
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
1,469 Views
Registered: ‎07-01-2015

Hi @jlaudolff,

 

To disable profiling:

  1. You have to set the sw_intrusive profiling to false in BSP.

1.JPG2. Remove -pg flag in BSP.

2.JPG

3. Untick profiling in C/C++ build settings of the application.

3.JPG

 

Thanks,
Arpan
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
Highlighted
Moderator
Moderator
1,470 Views
Registered: ‎07-01-2015

Hi @jlaudolff,

 

To disable profiling:

  1. You have to set the sw_intrusive profiling to false in BSP.

1.JPG2. Remove -pg flag in BSP.

2.JPG

3. Untick profiling in C/C++ build settings of the application.

3.JPG

 

Thanks,
Arpan
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Adventurer
Adventurer
1,202 Views
Registered: ‎11-21-2017

Thanks Arpan. That helps a lot.

0 Kudos