OK. When I
#include <stdio.h>
I get no problem. Project builds ok.
When I add this 1 line of code:
puts("A");
I get the following result:
**** Build of configuration FLASH for project BMS_01 ****
"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j6 all
'Building file: ../Sources/main.c'
'Executing target #2 ../Sources/main.c'
'Invoking: ARM Ltd Windows GCC C Compiler'
"C:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Sources/main.c" @"Sources/main.args" -MMD -MP -MF"Sources/main.d" -o"Sources/main.o"
'Finished building: ../Sources/main.c'
' '
'Building target: BMS_01.elf'
'Executing target #19 BMS_01.elf'
'Invoking: ARM Ltd Windows GCC C Linker'
"C:/Freescale/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" @"BMS_01.args" -o"BMS_01.elf"
C:/Freescale/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__init_uart_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:200: undefined reference to `InitializeUART'
C:/Freescale/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__read_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:93: undefined reference to `ReadUARTN'
C:/Freescale/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__init_uart_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:200: undefined reference to `InitializeUART'
C:/Freescale/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv6-m\libuart.a(uart_console_io.o): In function `__write_console':
ARM_GCC_Support/ewl/EWL_C/src/sys/uart_console_io.c:151: undefined reference to `WriteUARTN'
mingw32-make: *** [BMS_01.elf] Error 1
I get the feeling there is something I need to do to connect the functionality of puts() with the functionality of the component AsynchroSerial.
Can they even be connected?
If so, How?
Thanks
Dan