C:\Users\Alejandro\Desktop\build5310\ = EXE_PATH ARM = ISA "C:\Users\Alejandro\Desktop\build5310\stm32" = full filename '.ld' with the path ARMGCC = COMPILER stm32f10x = deviceName, target name . . . stm32 - gives the file name without the path C: - gives the drive letter to LD \Users\Alejandro\Desktop\build5310\ - gives the path to LD . . . C:\Users\Alejandro\Desktop\build5310>REM Compilation with arm-gcc C:\Users\Alejandro\Desktop\build5310>REM PATH "ALTERNATIBO F:\Program Files (x86 )\emIDE\emIDE V2.20\arm" C:\Users\Alejandro\Desktop\build5310>REM PATH ALTERNATIBO "F:\Program Files (x86 )\GNU Tools ARM Embedded\8 2018-q4-major\bin" C:\Users\Alejandro\Desktop\build5310>SET GCC_PATH=F:\Program Files (x86)\GNU Too ls ARM Embedded\8 2018-q4-major\bin C:\Users\Alejandro\Desktop\build5310>SET JLN_PATH=C:\Program Files\SEGGER\JLink_ V502j C:\Users\Alejandro\Desktop\build5310>SET STL_PATH=F:\Program Files (x86)\STMicro electronics\STM32 ST-LINK Utility\ST-LINK Utility C:\Users\Alejandro\Desktop\build5310>if "stm32f10x" == "stm32f40x" SET LIB_PATH= C:\Users\Alejandro\Desktop\build5310\LIBRARIES_FOR\ARM\STM32F4 C:\Users\Alejandro\Desktop\build5310>if "stm32f10x" == "stm32f10x" SET LIB_PATH= C:\Users\Alejandro\Desktop\build5310\LIBRARIES_FOR\ARM\STM32F1 C:\Users\Alejandro\Desktop\build5310>path C:\Program Files (x86)\Common Files\Or acle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\120 \Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\110\Too ls\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\STMicroele ctronics\STM32 ST-LINK Utility\ST-LINK Utility;C:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q4-major\bin;F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q4-major\bin;F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q4-major \bin\bin;C:\Program Files\SEGGER\JLink_V502j;F:\Program Files (x86)\STMicroelect ronics\STM32 ST-LINK Utility\ST-LINK Utility C:\Users\Alejandro\Desktop\build5310>C: C:\Users\Alejandro\Desktop\build5310>chdir \Users\Alejandro\Desktop\build5310\ C:\Users\Alejandro\Desktop\build5310>REM Compilation of sources C:\Users\Alejandro\Desktop\build5310>rmdir ARMGCC\obj /s /q C:\Users\Alejandro\Desktop\build5310>rmdir ARMGCC\bin /s /q C:\Users\Alejandro\Desktop\build5310>mkdir ARMGCC\obj C:\Users\Alejandro\Desktop\build5310>mkdir ARMGCC\bin C:\Users\Alejandro\Desktop\build5310>mkdir ARMGCC\lib Ya existe el subdirectorio o el archivo ARMGCC\lib. C:\Users\Alejandro\Desktop\build5310>if not exist ARMGCC\lib\Lib_usr.c copy C:\U sers\Alejandro\Desktop\build5310\LIBRARIES_FOR\ARM\STM32F1\*.* ARMGCC\lib C:\Users\Alejandro\Desktop\build5310>if "stm32f10x" == "stm32f10x" goto STM32F1 C:\Users\Alejandro\Desktop\build5310>arm-none-eabi-g++.exe -mcpu=cortex-m3 -mthu mb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q4-major\bin \arm-none-eabi\include" -c ARMGCC\lib\CortexM3.S -o ARMGCC\obj\cortexM3.o C:\Users\Alejandro\Desktop\build5310>CD ARMGCC\lib C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>for %F in (*.c) do arm-none-eabi -gcc.exe -mcpu=cortex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools AR M Embedded\8 2018-q4-major\bin\arm\arm-none-eabi\include" -c %F -o ..\obj\%F.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_adc.c -o ..\obj\Lib_adc.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_gpio.c -o ..\obj\Lib_gpio.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_i2c.c -o ..\obj\Lib_i2c.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_i2clcd.c -o ..\obj\Lib_i2clcd.c.o In file included from Lib_i2clcd.c:8: Lib_i2clcd.c: In function 'LCD_I2C_Send': Lib_i2clcd.h:16:30: warning: implicit declaration of function 'I2C_Send'; did yo u mean 'I2C_Cmd'? [-Wimplicit-function-declaration] #define PORT_LCD(x) port x; I2C_Send(lcd_i2c_adr, 0, port); // adaptation pou r IO-Expander I2C ^~~~~~~~ Lib_i2clcd.c:36:5: note: in expansion of macro 'PORT_LCD' PORT_LCD(|= (type << BIT_LCD_RS)) ^~~~~~~~ C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_pwm.c -o ..\obj\Lib_pwm.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_spi.c -o ..\obj\Lib_spi.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_timer.c -o ..\obj\Lib_timer.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_uart.c -o ..\obj\Lib_uart.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c Lib_usr.c -o ..\obj\Lib_usr.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c misc.c -o ..\obj\misc.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_adc.c -o ..\obj\stm32f10x_ad c.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_gpio.c -o ..\obj\stm32f10x_g pio.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_i2c.c -o ..\obj\stm32f10x_i2 c.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_rcc.c -o ..\obj\stm32f10x_rc c.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_spi.c -o ..\obj\stm32f10x_sp i.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_tim.c -o ..\obj\stm32f10x_ti m.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c stm32f10x_usart.c -o ..\obj\stm32f10x_ usart.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>arm-none-eabi-gcc.exe -mcpu=cort ex-m3 -mthumb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q 4-major\bin\arm\arm-none-eabi\include" -c system_stm32f10x.c -o ..\obj\system_st m32f10x.c.o C:\Users\Alejandro\Desktop\build5310\ARMGCC\lib>CD ..\.. C:\Users\Alejandro\Desktop\build5310>arm-none-eabi-gcc.exe -mcpu=cortex-m3 -mthu mb -g -IInc -I"F:\Program Files (x86)\GNU Tools ARM Embedded\8 2018-q4-major\bin \arm\arm-none-eabi\include" -IARMGCC\lib\ -c stm32.c -o ARMGCC\obj\stm32.o C:\Users\Alejandro\Desktop\build5310>REM Linkage of objects C:\Users\Alejandro\Desktop\build5310>arm-none-eabi-gcc.exe -o ARMGCC\bin\stm32.e lf ARMGCC\obj\*.o -Wl,-Map -Wl,ARMGCC\bin\stm32.elf.map -Wl,--gc-sections -n -Wl ,-cref -mcpu=cortex-m3 -mthumb -TARMGCC\lib\CortexM3.ln C:\Users\Alejandro\Desktop\build5310>REM Convert Elf to Hex C:\Users\Alejandro\Desktop\build5310>arm-none-eabi-objcopy -Oihex ARMGCC\bin\stm 32.elf ARMGCC\bin\stm32.hex arm-none-eabi-objcopy: ARMGCC\bin\stm32.hex 64-bit address 0x4b4fa308000000 out *********************** of range for Intel Hex file arm-none-eabi-objcopy:ARMGCC\bin\stm32.hex: bad value C:\Users\Alejandro\Desktop\build5310>REM Transfer of the program with ST-Link CL I C:\Users\Alejandro\Desktop\build5310>ST-LINK_CLI.exe -c SWD -P ARMGCC\bin\stm32. hex -V "after_programming" -Run STM32 ST-LINK CLI v3.5.0.0 STM32 ST-LINK Command Line Interface No ST-LINK detected! C:\Users\Alejandro\Desktop\build5310>pause Presione una tecla para continuar . . .