2025-11-03 10:47 AM
* 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.
Solved! Go to Solution.
2025-11-04 7:04 AM
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
Apply and close . After that rebuild your project and start your debug session
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.
2025-11-03 11:43 PM
Hello @Brenden_PLUS
Did you encounter an error similar to the one below during debugging?
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.
2025-11-04 2:45 AM - edited 2025-11-04 4:03 AM
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
2025-11-04 7:04 AM
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
Apply and close . After that rebuild your project and start your debug session
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.
2025-11-04 8:34 AM
Thanks!
It looks like both the
* USBPD_SNK
* USBPD_SRC
only had release build. Thank you.