Skip to main content
sibagatu
Associate
Oct 9, 2014 8:25 PM UTC
Question

Begineer questions

Posted on October 09, 2014 at 22:25

Hi,

I am just installed the STLink and Yagarto on my Mac OS 10.9.5 and it took me 3 days:( . I started the instance of STLINK by using command :

./st-util --stlinkv1

and after that I opened another terminal to run the GDB:

tcms-MacBook-Pro:yagarto-4.7.2 Ruslan$ arm-none-eabi-gdb /Users/Ruslans/STM32-Template/BlinkingLight.elf

but when I try to load the .elf by by using command 

(gdb) target extended-remote :4242

I get this error:

Remote debugging using :4242

0x08000b4c in GPIO_Write (GPIOx=0xa, PortVal=<optimized out>)

    at /l/arm/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c:423

423 /l/arm/STM32F10x_StdPeriph_Lib_V3.5.0/Libraries/STM32F10x_StdPeriph_Driver/src/stm32f10x_gpio.c: No such file or directory.

I am very new to unix based systems or to GDB and GCC so I have problem with fixing this issue. Could someone advice on how to address this problem? I started by loading the STM32VL library into my project folder STM32 Template but the error persists. I don't understand why gdb is looking for the

stm32f10x_gpio.c since the .elf file is already a compiled and ready to be loaded object.  Please help.

 
    This topic has been closed for replies.

    2 replies

    renanvalente
    Associate II
    Oct 9, 2014 9:52 PM UTC
    Posted on October 09, 2014 at 23:52

    I used this tutorial for OSX, helped me out.

    http://www.davidrojas.co.uk/stm32f3discovery-on-mac-os-x-using-eclipse-gcc-arm-and-openocd/

    sibagatu
    sibagatuAuthor
    Associate
    Oct 9, 2014 10:23 PM UTC
    Posted on October 10, 2014 at 00:23

    Thank you but I would like to avoid for now the use of IDE in order to gain a better understanding  of programming the STM32. 

    I am using this tutorial from Illinois University:

    http://www.cs.indiana.edu/~geobrown/book.pdf