cancel
Showing results for 
Search instead for 
Did you mean: 

CUBEIDE - Problems debugging [USBPD_SNK] project with STM32N6

Brenden_PLUS
Associate II

* board - STM32N6570-DK

*  using STM Cube 1.19.0

* firmware v1.2.0

Test projects

* USBPD_SNK/USBPD_SRC

 

So i'm trying to do PD with the STM32N6, but i can't seem to be able to test the example code from ST.  When i run USBPD_SNK, it just doesn't seem to work.  I get a weird no source available issue.  I thought it was because of ThreadX, but i tried VENC_USB and that example worked fine.  The USBPD_SRC also fails to work. 

 

I don't know if this a STMCubeIDE problem or something weird with the specific PD usb examples.  

Problem_USBPD_SNK.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Brenden_PLUS 

Please try to follow those steps:

Right click on the project -->properties--> C/C++ Build --> settings--MCU/MPU GCC compiler -->Debugging

and make sure that Debug level is -g3 as shown below 

GhofraneGSOURI_0-1762268330147.png

Apply and close . After that rebuild your project and start your debug session 

GhofraneGSOURI_1-1762268638646.png

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Ghofrane GSOURI
ST Employee

Hello @Brenden_PLUS 

Did you encounter an error similar to the one below during debugging?

GhofraneGSOURI_0-1762242116867.png

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

It seems we have two different errors.  The code

* compiles

* but fails at finding the start of the program

* I can continue the program and let it run, but it won't hit break points or ever figure out where the code is if i pause the code.  

 

Error

On my computer i get this error that it can't find source file.

* No source available at "main() at 0x3418775c"

 

This happens on both

* windows

* linux

 

Hello @Brenden_PLUS 

Please try to follow those steps:

Right click on the project -->properties--> C/C++ Build --> settings--MCU/MPU GCC compiler -->Debugging

and make sure that Debug level is -g3 as shown below 

GhofraneGSOURI_0-1762268330147.png

Apply and close . After that rebuild your project and start your debug session 

GhofraneGSOURI_1-1762268638646.png

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Brenden_PLUS
Associate II

Thanks!

 

It looks like both the 

* USBPD_SNK

* USBPD_SRC

only had release build.  Thank you.