Debugging Issue - No source available for "StrFormatScanf() at 0x3b8"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debugging Issue - No source available for "StrFormatScanf() at 0x3b8"

286 Views
Haider_Ali
Contributor II

Hello,

I'm running into an issue as soon as I launch debug session.

I'm running a SDK IAP driver example for  LPC54102J512 microcontroller (OM13077 board) without any changes. The code successfully builds but when I launch debug session it gives following error:

Haider_Ali_0-1711374709508.png

Can anyone please tell why I'm getting this?

I tried a few things and even setup whole thing on a separate PC but same issue.

Also I found that when I remove all the printf statements this error goes away. (UART0 is routed to printf for debugging).

 

Labels (2)
0 Kudos
4 Replies

32 Views
Atta
Contributor I

Hi, I am facing the same issue as @Haider_Ali.

I am using the hello_word example for the K32W061 board. I am using MCUXpresso IDE v11.9.0 [Build 2144] [2024-01-05] with SDK_2.x_K32W061DK [SDK Version 2.6.5 (555 2022-03-10) Manifest Version 3.5.0].

I am using Segger J-Link for debugging. The program debugs properly when I use Semihosting option but if I use UART, the debugging fails with the message "No source available for "StrFormatScanf() at 0x4dc".

Also, the `DEBUGCONSOLE_REDIRECT_TO_SDK` has value `1U`.

0 Kudos

263 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, are you using a floating point?

Could you elaborate further, on what are using and how? print or printf?

Best regards,

Pavel

0 Kudos

255 Views
Haider_Ali
Contributor II

Hi Pavel, thank you.

No I'm not using any floating points.

I'm using PRINTF function.

The scenario is when I run debugging on any code containing PRINTF  it gives me this message  "No source available for "StrFormatScanf() at 0x____ ".

I have even tried the SDK examples and its driver examples as it is but it keep giving this message.

I found one thing that when I change the compiler optimization level from none (-O0) (set by default) to Optimize for debug (-Og) this message goes away. why is that so? 

Haider_Ali_0-1711465685488.png

 

0 Kudos

240 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, is not enough to analyze your case, could you tell me what is the version of the SDK and the IDE?

Could you tell me what is the state of this macro?

Pavel_Hernandez_0-1711572471260.png

Could you share the main code to review them?

Please, review this thread maybe could help you.

Solved: printf() to UART Console - NXP Community

MCUXpresso often won't do PRINTF to Console in 'hello world' example - NXP Community

Best regards,
Pavel 

0 Kudos