Skip to main content
Visitor II
August 17, 2024
Question

Error running a local C Application STM32CubeIDE

  • August 17, 2024
  • 1 reply
  • 1214 views

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:

 
 

358741432-eb04a6aa-870f-438a-8e8c-56816069e870.png

OS : Windows 11 Pro
Eclipse Version: 2.3.900.v20220308-0310
CDT Version: 10.6.2.202205170638
Build id: 20220517-0638

    This topic has been closed for replies.

    1 reply

    Graduate II
    August 17, 2024

    Try to configure debug using St-link device. If you are able to debug, you will be able to run the code 

    Visitor II
    August 17, 2024

    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'

    debug_local.png

    Mo-TechnoAuthor
    Visitor II
    August 18, 2024

    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 

    MoTechno_0-1723997485353.png

    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...