AnsweredAssumed Answered

CW debug (clean) problem: mingw32-make

Question asked by Sarka Mikolajkova on Oct 3, 2014
Latest reply on Oct 5, 2014 by Erich Styger

Hi, i am trying to start using Kinetis KWIKSTIK K40, using codewarrior  for MCU v10.6. But I stucked at the start in test ...  I have already read few similar topics, but still dont know, what to do with it...I have win7 x64

Thanks you for any help.



#include "stdio.h"

#include "derivative.h"

int main(void)

{

  int counter = 0;

 

 

  printf("test \n");

 

  for(;;) {  

    counter++;

  }

 

  return 0;

}

 

**** Build of configuration FLASH for project KWICKSTIK_TEST ****

 

 

"C:\\Freescale CodeWarrior\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j16 all

'Building file: ../Sources/main.c'

'Building file: ../Project_Settings/Startup_Code/__arm_end.c'

'Building file: ../Project_Settings/Startup_Code/__arm_start.c'

'Building file: ../Project_Settings/Startup_Code/kinetis_sysinit.c'

'Executing target #1 ../Sources/main.c'

'Executing target #2 ../Project_Settings/Startup_Code/__arm_end.c'

'Executing target #3 ../Project_Settings/Startup_Code/__arm_start.c'

'Executing target #4 ../Project_Settings/Startup_Code/kinetis_sysinit.c'

'Invoking: ARM Ltd Windows GCC C Compiler'

'Invoking: ARM Ltd Windows GCC C Compiler'

'Invoking: ARM Ltd Windows GCC C Compiler'

"C:/Freescale CodeWarrior/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"

'Invoking: ARM Ltd Windows GCC C Compiler'

"C:/Freescale CodeWarrior/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/__arm_end.c" @"Project_Settings/Startup_Code/__arm_end.args" -MMD -MP -MF"Project_Settings/Startup_Code/__arm_end.d" -o"Project_Settings/Startup_Code/__arm_end.o"

"C:/Freescale CodeWarrior/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/__arm_start.c" @"Project_Settings/Startup_Code/__arm_start.args" -MMD -MP -MF"Project_Settings/Startup_Code/__arm_start.d" -o"Project_Settings/Startup_Code/__arm_start.o"

"C:/Freescale CodeWarrior/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc" "../Project_Settings/Startup_Code/kinetis_sysinit.c" @"Project_Settings/Startup_Code/kinetis_sysinit.args" -MMD -MP -MF"Project_Settings/Startup_Code/kinetis_sysinit.d" -o"Project_Settings/Startup_Code/kinetis_sysinit.o"

'Finished building: ../Project_Settings/Startup_Code/__arm_end.c'

' '

'Finished building: ../Project_Settings/Startup_Code/__arm_start.c'

' '

'Finished building: ../Sources/main.c'

'Finished building: ../Project_Settings/Startup_Code/kinetis_sysinit.c'

' '

' '

'Building target: KWICKSTIK_TEST.elf'

'Executing target #5 KWICKSTIK_TEST.elf'

'Invoking: ARM Ltd Windows GCC C Linker'

"C:/Freescale CodeWarrior/CW MCU v10.6/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"    @"KWICKSTIK_TEST.args" -o"KWICKSTIK_TEST.elf"

C:/Freescale CodeWarrior/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv7e-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 CodeWarrior/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv7e-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 CodeWarrior/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv7e-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 CodeWarrior/CW MCU v10.6/MCU/ARM_GCC_Support/ewl/lib/armv7e-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: *** [KWICKSTIK_TEST.elf] Error 1

Outcomes