Build C Solution for ARM-GCC (by OnosTech)
Hi Jose,
I encountered some issues in "Compile ARM-GCC for 32-bit ARM" with the STM32F10 blue pill. When I Build C Solution below are the warnings and errors I got.
The version of LDmicro is Build 5.4.1.0
C:\Users\User\Desktop\ARM\xxxxx\ARMGCC\lib>arm-none-eabi-gcc.exe -O0 -mcpu=cortex-m3 -mthumb -g -IInc -I"C:\Program Files (x86)\EmIDE\emIDE V2.20\arm\arm\arm-none-eabi\include" -c Lib_i2clcd.c -o ..\obj\Lib_i2clcd.c.o
Lib_i2clcd.c:33:6: warning: conflicting types for 'LCD_I2C_Send' [enabled by default]
Lib_i2clcd.c:23:5: note: previous implicit declaration of 'LCD_I2C_Send' was here
Lib_i2clcd.c:57:6: warning: conflicting types for 'LCD_I2C_Send4msb' [enabled by default]
Lib_i2clcd.c:38:5: note: previous implicit declaration of 'LCD_I2C_Send4msb' was here
C:\Users\User\Desktop\ARM\xxxxx\ARMGCC\lib>arm-none-eabi-gcc.exe -O0 -mcpu=cortex-m3 -mthumb -g -IInc -I"C:\Program Files (x86)\EmIDE\emIDE V2.20\arm\arm\arm-none-eabi\include" -c romlib.c -o ..\obj\romlib.c.o
romlib.c: In function 'EEPROM_write':
romlib.c:4:6: warning: #warning EEPROM not supported by this target, but you can provide an implementation of write EEPROM data for an external EEPROM chip! [-Wcpp]
romlib.c: In function 'EEPROM_read':
romlib.c:9:6: warning: #warning EEPROM not supported by this target, but you can provide an implementation of reading EEPROM data for an external EPPROM chip! [-Wcpp]
C:\Users\User\Desktop\ARM\xxxxx>arm-none-eabi-gcc.exe -O0 -mcpu=cortex-m3 -mthumb -g -IInc -I"C:\Program Files (x86)\EmIDE\emIDE V2.20\arm\arm\arm-none-eabi\include" -IARMGCC\lib\ -c "test.c" -o "ARMGCC\obj\test.o"
In file included from test.c:10:0:
ladder.h:50:3: error: unknown type name 'uint8_t'
ladder.h:51:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
ladder.h:51:3: error: unknown type name 'int8_t'
ladder.h:55:20: fatal error: UsrLib.h: No such file or directory
compilation terminated.
Link object files
C:\Users\User\Desktop\ARM\xxxxx>arm-none-eabi-gcc.exe -o "ARMGCC\bin\test.elf" ARMGCC\obj\*.o -Wl,-Map -Wl,"ARMGCC\bin\test.elf.map" -Wl,--gc-sections -n -Wl,-cref -mcpu=cortex-m3 -mthumb -TARMGCC\lib\CortexM3.ln
ARMGCC\obj\cortexM3.o: In function `Reset_Handler':
C:\Users\User\Desktop\ARM\xxxxx/ARMGCC\lib/CortexM3.S:279: undefined reference to `main'
collect2.exe: error: ld returned 1 exit status
Convert Elf to Hex
Please check and let me know what I am doing wrong.
Best Regards
Onos
(no subject) (by OnosTech)
Thanks, Jose, I am looking forward to your answer.
(no subject) (by OnosTech)
Many thanks. I hope this gets resolved soon. I will also check Hi-Tech C or CCS for PIC microcontroller.
(no subject) (by OnosTech)
Thanks, José, I will check it out.