Skip to main content
marshall.5346662343094072E12
Associate
August 19, 2018
Question

Getting multiple errors by running examples

  • August 19, 2018
  • 8 replies
  • 2131 views

Hi guys , I downloaded the examples and I am simply trying to compile the toggle led example

en.stm32cubef0\STM32Cube_FW_F0_V1.9.0\Projects\STM32F042K6-Nucleo\Examples\GPIO\GPIO_IOToggle\Src

I opened the project and this is the structure:

If I try to Download on the board with the Run and Debug options I receive the message that it is unable to Launch.

 Any suggestions?

    This topic has been closed for replies.

    8 replies

    marshall.5346662343094072E12
    Associate
    August 19, 2018

    ..

    marshall.5346662343094072E12
    Associate
    August 19, 2018

    I think you can't see the images I copied in the first message so I upload here:

    0690X000006BuMjQAK.png0690X000006BuMoQAK.png

    Tesla DeLorean
    Guru
    August 19, 2018

    Can't speak to SW4STM32/Eclipse, not my deal.

    Projects should build as is.

    Project needs to build completely before you can download and run.

    When you copy in LED3_GPIO_CLK_ENABLE(); you should perhaps look at where you're copying it from, and where the macro is actually defined, like in an include file you're not using/providing.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    marshall.5346662343094072E12
    Associate
    August 19, 2018

    Hello, of course the project is built before downloaded. However, I don't see why it says there are no recent launches and cannot proceed. I am building an embedded project provided by the STM itself. I think they need to make a straightforward guide for a beginner.

    Tesla DeLorean
    Guru
    August 19, 2018

    Try Keil or IAR, tend to work more robustly and seemlessly than Eclispe/OpenOCD stuff.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    August 19, 2018

    >>Hello, of course the project is built before downloaded.

    Your original post inferred you just launched, and subsequent builds failed with errors.

    https://www.st.com/content/ccc/resource/technical/document/user_manual/1b/03/1b/b4/88/20/4e/cd/DM00105928.pdf/files/DM00105928.pdf/jcr:content/translations/en.DM00105928.pdf

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    T J
    Senior III
    August 19, 2018

    I use Visual Studio with GDB extensions... very easy to work with. but cost $150

    Khouloud GARSI
    Technical Moderator
    August 24, 2018

    Hello @marshall.5346662343094072E12​ ,

    As suggested by Clive, you may refer to UM1727 to correctly import your project into the IDE you're using.

    Khouloud.