Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 4 months ago.
Export to Eclipse Gcc ARM debugging fails
I wanted to debug led Blink example for DISCO_L475VG_IOT01A.
so export working example from online mbed compiler for my target with compiler option Eclipse GCC ARM .
I am trying to follow link. https://os.mbed.com/docs/v5.9/tutorials/eclipse.html
I was not able to do this step:
mbed export -i eclipse_gcc_arm -m DISCO_L475VG_IOT01A profile mbed-os/tools/profiles/debug.json
because my imported Directory did not have tools dir and many other dirs.
still went ahead and tried but I hit pyOCD GDB Server failed with code (127).
can some one please help.
NOTE: I am using ubuntu and firefox browser.
2 Answers
6 years, 4 months ago.
Hello Raghavan,
You will need to do call the command mbed deploy to import the correct library to the directory. Once you do that, then you can call mbed export -i eclipse_gcc_arm -m DISCO_L475VG_IOT01A.
Please let me know if you have any questions!
- Peter, team Mbed
If this solved your question, please make sure to click the "Thanks" link below!
Hi Peter,
Thanks for the reply.
I tried fresh.
logs,
mbed deploy is not successfull and export also.
***********
epsragh@epsragh:/test/ga/STM32_Blink_LED$ mbed export -i eclipse_gcc_arm -m DISCO_L475VG_IOT01A
[mbed] ERROR: The mbed tools were not found in "/home/epsragh/test/ga/STM32_Blink_LED".
[mbed] ERROR: Run `mbed deploy` to install dependencies and tools.
-
epsragh@epsragh:/test/ga/STM32_Blink_LED$ mbed deploy
[mbed] WARNING: Program "STM32_Blink_LED" in "/home/epsragh/test/ga/STM32_Blink_LED" does not use source control management.
[mbed] WARNING: To fix this you should use "mbed new ." in the root of your program.
-
[mbed] ERROR: Library reference "mbed.bld" points to a folder "/home/epsragh/test/ga/STM32_Blink_LED/mbed", which is not a valid repository.
[mbed] ERROR: You can remove the conflicting folder manually and use "mbed deploy" to import the missing libraries
[mbed] ERROR: You can also remove library reference "/home/epsragh/test/ga/STM32_Blink_LED/mbed.bld" and use "mbed sync" again.
-
epsragh@epsragh:/test/ga/STM32_Blink_LED$ rm -i /home/epsragh/test/ga/STM32_Blink_LED/mbed.bld
rm: remove regular file '/home/epsragh/test/ga/STM32_Blink_LED/mbed.bld'? y
epsragh@epsragh:/test/ga/STM32_Blink_LED$ mbed deploy
[mbed] WARNING: Program "STM32_Blink_LED" in "/home/epsragh/test/ga/STM32_Blink_LED" does not use source control management.
[mbed] WARNING: To fix this you should use "mbed new ." in the root of your program.
-
[mbed] WARNING: Cannot find the mbed tools directory in "/home/epsragh/test/ga/STM32_Blink_LED"
-
epsragh@epsragh:/test/ga/STM32_Blink_LED$ mbed export -i eclipse_gcc_arm -m DISCO_L475VG_IOT01A
[mbed] ERROR: The mbed tools were not found in "/home/epsragh/test/ga/STM32_Blink_LED".
[mbed] ERROR: Run `mbed deploy` to install dependencies and tools.
-
epsragh@epsragh:/test/ga/STM32_Blink_LED$ mbed deploy
[mbed] WARNING: Program "STM32_Blink_LED" in "/home/epsragh/test/ga/STM32_Blink_LED" does not use source control management.
[mbed] WARNING: To fix this you should use "mbed new ." in the root of your program.
-
[mbed] WARNING: Cannot find the mbed tools directory in "/home/epsragh/test/ga/STM32_Blink_LED"
-
epsragh@epsragh:/test/ga/STM32_Blink_LED$ mbed new .
[mbed] ERROR: A program with name "STM32_Blink_LED" already exists.
Hi, If you are exporting from the online compiler, then instead of exporting to Eclipse GCC ARM, you should export it as a MAKE GCC_ARM. This will give you a zip project file.From there, open Eclipse and use Import a project from a Makefile option when you create a new project. This will automatically import everything it need.
Peter
posted by 03 Aug 2018