2024-08-17 04:52 AM
I am Trying to run a simple c code on STM32CubeIDE Through
Project --- Run as --- C/C++ Application
But i am always getting the following error:
OS : Windows 11 Pro
Eclipse Version: 2.3.900.v20220308-0310
CDT Version: 10.6.2.202205170638
Build id: 20220517-0638
2024-08-17 05:20 AM
Try to configure debug using St-link device. If you are able to debug, you will be able to run the code
2024-08-17 01:50 PM
My understanding is that: "local" means to run this generated code on the host platform, the PC, e.g. as a Windows program. This cannot work.
You have to create a Debug Config using the external STM32 board. Use this debug config and run the code on the MCU.
I think, the IDE is Eclipse based and it is potentially possible to create also code for the host PC, e.g. if you need a counterpart program running on the Host OS. "local" means "running at the host OS".
Check, if you have a debug config as "STM32 C/C++ Application" and select this as the 'target'
2024-08-18 08:47 AM
I am trying to debug using st-link but it failed also , i am in the learning path of embedded systems with Automation Engineering Background ... So, i am facing a lot of challenges
2024-08-18 09:15 AM
Thanks for your kind reply,
yes you are right i am newbie to the embedded systems and follow an udemy course for embedded C , i am using STM32 CUBE IDE .
I am trying to follow course syllabus but i am getting stuck when it converted from the online IDE to the CUDEIDE, i can't run my code as local c application
That's what confusing me .... i can't follow the learning path on the cude ide (if i am missing something?)
Sorry for those simple questions and requests but i am coming from automation world where function block and STL is the major there...