Author Topic: Debugging from MCUxpresso  (Read 8197 times)

Offline Javier

  • Newbie
  • *
  • Posts: 16
    • View Profile
Debugging from MCUxpresso
« on: April 02, 2018, 02:13:22 AM »
Hello,

Wich is the way to debugging uTasker application from FRDM-K64F with MCUxpresso IDE?

I have tried to compiled uTaskerV1.4_RAM but with errors.

Code: [Select]
02:07:24 **** Incremental Build of configuration uTaskerV1.4_RAM for project uTaskerV1.4 ****
make -r -j4 all
Building target: uTaskerV1.4.elf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map="uTaskerV1.4.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -T K_256_RAM.ld -L "/home/user/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4/GNU_Kinetis" -o "uTaskerV1.4.elf"  ./uTasker/utFAT/mass_storage.o  ./uTasker/uGLCDLIB/GLCD.o ./uTasker/uGLCDLIB/LCD.o  ./uTasker/MODBUS/MODBUS.o  ./uTasker/Driver.o ./uTasker/GlobalTimer.o ./uTasker/SSC_drv.o ./uTasker/Tty_drv.o ./uTasker/USB_drv.o ./uTasker/Watchdog.o ./uTasker/can_drv.o ./uTasker/eth_drv.o ./uTasker/iic_drv.o ./uTasker/low_power.o ./uTasker/time_keeper.o ./uTasker/uFile.o ./uTasker/uMalloc.o ./uTasker/uNetwork.o ./uTasker/uTasker.o  ./stack/Ethernet.o ./stack/NetBIOS.o ./stack/arp.o ./stack/dhcp.o ./stack/dns.o ./stack/ftp.o ./stack/ftp_client.o ./stack/http.o ./stack/icmp.o ./stack/igmp.o ./stack/ip.o ./stack/ip_utils.o ./stack/mqtt.o ./stack/pop3.o ./stack/ppp.o ./stack/smtp.o ./stack/snmp.o ./stack/tcp.o ./stack/telnet.o ./stack/tftp.o ./stack/udp.o ./stack/webutils.o ./stack/zero_config.o  ./Hardware/Kinetis/kinetis.o  ./Applications/uTaskerV1.4/FreeMaster.o ./Applications/uTaskerV1.4/KeyScan.o ./Applications/uTaskerV1.4/NetworkIndicator.o ./Applications/uTaskerV1.4/application.o ./Applications/uTaskerV1.4/debug.o ./Applications/uTaskerV1.4/modbus_app.o ./Applications/uTaskerV1.4/nRF24201.o ./Applications/uTaskerV1.4/snmp_mib_handlers.o ./Applications/uTaskerV1.4/usb_application.o ./Applications/uTaskerV1.4/webInterface.o   
/usr/local/mcuxpressoide-10.1.1_606/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld: cannot open linker script file K_256_RAM.ld: No existe el archivo o el directorio
makefile:36: recipe for target 'uTaskerV1.4.elf' failed
collect2: error: ld returned 1 exit status
make: *** [uTaskerV1.4.elf] Error 1

uTaskerV1.4_FLASH if works, the .elf file is generated and then I use objcopy in linux to convert to .bin


Best regards

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: Debugging from MCUxpresso
« Reply #1 on: April 02, 2018, 07:03:46 PM »
Javier

Loading to Flash is typically used but the RAM target allows code to be loaded to RAM and run from there, which is Ok for larger chips with enough SRAM.
If you pull the latest check in I have added the missing "K_256_RAM.ld" file.
Beware that I never tried debugging in RAM with MCUXpresso (the file has been used for CodeWarrior and KDS) so I don't know whether MCUXpresso handles it correctly or not.
Note that SRAM debugging often has some limitations since not all IDEs initialise the SRAM correctly after a reset and may need a re-load instead.

Regards

Mark


Offline Javier

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Debugging from MCUxpresso
« Reply #2 on: April 04, 2018, 09:36:49 AM »
Hello,

Thank you for the reply, I do not need to debug yet but I was curious.

I updated the repository, git checkout, but I still have errors.

Best regards

Redlink Server
Code: [Select]
[Started server]
[Connected on port 3025]
redlink>ProbeList
Index = 1
Manufacturer = ARM
Description = DAPLink CMSIS-DAP
Serial Number = 0240000029164e45001c0012706e000ef301000097969900
VID:PID = 0D28:0204
Path = /dev/hidraw0
redlink>ProbeStatus
Index = 1
Manufacturer = ARM
Description = DAPLink CMSIS-DAP
Serial Number = 0240000029164e45001c0012706e000ef301000097969900
VID:PID = 0D28:0204
Path = /dev/hidraw0
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = JTAG
CoresConfigured = FALSE
PacketSize = 64
Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = CMSIS-DAP
Probe Reference Count = 0
redlink>ProbeIsOpen 1
FALSE
redlink>ProbeOpenByIndex 1
Probe Handle 1 Open
redlink>WireIsConnected 1
FALSE
redlink>WireSwdConnect 1
DpID = 2BA01477
redlink>CoresConfigured 1
FALSE
redlink>CoreConfig 1
Number of CORES/TAPs = 1, Fully recognized: True
redlink>ProbeStatus
Index = 1
Manufacturer = ARM
Description = DAPLink CMSIS-DAP
Serial Number = 0240000029164e45001c0012706e000ef301000097969900
VID:PID = 0D28:0204
Path = /dev/hidraw0
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = JTAG
CoresConfigured = FALSE
PacketSize = 64
Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = CMSIS-DAP
Probe Reference Count = 0
redlink>quit
[Closed]


CDT Global Build Console
Code: [Select]
09:22:32 **** Clean-only build of configuration uTaskerV1.4_FLASH for project uTaskerV1.4 ****
make -r -j4 clean
rm -rf  ./uTasker/utFAT/mass_storage.o  ./uTasker/uGLCDLIB/GLCD.o ./uTasker/uGLCDLIB/LCD.o  ./uTasker/MODBUS/MODBUS.o  ./uTasker/Driver.o ./uTasker/GlobalTimer.o ./uTasker/SSC_drv.o ./uTasker/Tty_drv.o ./uTasker/USB_drv.o ./uTasker/Watchdog.o ./uTasker/can_drv.o ./uTasker/eth_drv.o ./uTasker/iic_drv.o ./uTasker/low_power.o ./uTasker/time_keeper.o ./uTasker/uFile.o ./uTasker/uMalloc.o ./uTasker/uNetwork.o ./uTasker/uTasker.o  ./stack/Ethernet.o ./stack/NetBIOS.o ./stack/arp.o ./stack/dhcp.o ./stack/dns.o ./stack/ftp.o ./stack/ftp_client.o ./stack/http.o ./stack/icmp.o ./stack/igmp.o ./stack/ip.o ./stack/ip_utils.o ./stack/mqtt.o ./stack/pop3.o ./stack/ppp.o ./stack/smtp.o ./stack/snmp.o ./stack/tcp.o ./stack/telnet.o ./stack/tftp.o ./stack/udp.o ./stack/webutils.o ./stack/zero_config.o  ./Hardware/Kinetis/kinetis.o  ./Applications/uTaskerV1.4/FreeMaster.o ./Applications/uTaskerV1.4/KeyScan.o ./Applications/uTaskerV1.4/NetworkIndicator.o ./Applications/uTaskerV1.4/application.o ./Applications/uTaskerV1.4/debug.o ./Applications/uTaskerV1.4/modbus_app.o ./Applications/uTaskerV1.4/nRF24201.o ./Applications/uTaskerV1.4/snmp_mib_handlers.o ./Applications/uTaskerV1.4/usb_application.o ./Applications/uTaskerV1.4/webInterface.o  ./uTasker/utFAT/mass_storage.d  ./uTasker/uGLCDLIB/GLCD.d ./uTasker/uGLCDLIB/LCD.d  ./uTasker/MODBUS/MODBUS.d  ./uTasker/Driver.d ./uTasker/GlobalTimer.d ./uTasker/SSC_drv.d ./uTasker/Tty_drv.d ./uTasker/USB_drv.d ./uTasker/Watchdog.d ./uTasker/can_drv.d ./uTasker/eth_drv.d ./uTasker/iic_drv.d ./uTasker/low_power.d ./uTasker/time_keeper.d ./uTasker/uFile.d ./uTasker/uMalloc.d ./uTasker/uNetwork.d ./uTasker/uTasker.d  ./stack/Ethernet.d ./stack/NetBIOS.d ./stack/arp.d ./stack/dhcp.d ./stack/dns.d ./stack/ftp.d ./stack/ftp_client.d ./stack/http.d ./stack/icmp.d ./stack/igmp.d ./stack/ip.d ./stack/ip_utils.d ./stack/mqtt.d ./stack/pop3.d ./stack/ppp.d ./stack/smtp.d ./stack/snmp.d ./stack/tcp.d ./stack/telnet.d ./stack/tftp.d ./stack/udp.d ./stack/webutils.d ./stack/zero_config.d  ./Hardware/Kinetis/kinetis.d  ./Applications/uTaskerV1.4/FreeMaster.d ./Applications/uTaskerV1.4/KeyScan.d ./Applications/uTaskerV1.4/NetworkIndicator.d ./Applications/uTaskerV1.4/application.d ./Applications/uTaskerV1.4/debug.d ./Applications/uTaskerV1.4/modbus_app.d ./Applications/uTaskerV1.4/nRF24201.d ./Applications/uTaskerV1.4/snmp_mib_handlers.d ./Applications/uTaskerV1.4/usb_application.d ./Applications/uTaskerV1.4/webInterface.d  uTaskerV1.4.elf
 

09:22:33 Build Finished (took 670ms)

Debug uTasker.1.4.elf


CDT Build Console
Code: [Select]
09:29:48 **** Build of configuration uTaskerV1.4_FLASH for project uTaskerV1.4 ****
make -r -j4 all
Building file: ../uTasker/utFAT/mass_storage.c
Building file: ../uTasker/uGLCDLIB/GLCD.c
Building file: ../uTasker/uGLCDLIB/LCD.c
Building file: ../uTasker/MODBUS/MODBUS.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/MODBUS/MODBUS.d" -MT"uTasker/MODBUS/MODBUS.o" -MT"uTasker/MODBUS/MODBUS.d" -o "uTasker/MODBUS/MODBUS.o" "../uTasker/MODBUS/MODBUS.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/uGLCDLIB/GLCD.d" -MT"uTasker/uGLCDLIB/GLCD.o" -MT"uTasker/uGLCDLIB/GLCD.d" -o "uTasker/uGLCDLIB/GLCD.o" "../uTasker/uGLCDLIB/GLCD.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/utFAT/mass_storage.d" -MT"uTasker/utFAT/mass_storage.o" -MT"uTasker/utFAT/mass_storage.d" -o "uTasker/utFAT/mass_storage.o" "../uTasker/utFAT/mass_storage.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/uGLCDLIB/LCD.d" -MT"uTasker/uGLCDLIB/LCD.o" -MT"uTasker/uGLCDLIB/LCD.d" -o "uTasker/uGLCDLIB/LCD.o" "../uTasker/uGLCDLIB/LCD.c"
Finished building: ../uTasker/MODBUS/MODBUS.c
Finished building: ../uTasker/utFAT/mass_storage.c
Finished building: ../uTasker/uGLCDLIB/LCD.c
Finished building: ../uTasker/uGLCDLIB/GLCD.c
 
 
Building file: ../uTasker/Driver.c
 
Building file: ../uTasker/SSC_drv.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/SSC_drv.d" -MT"uTasker/SSC_drv.o" -MT"uTasker/SSC_drv.d" -o "uTasker/SSC_drv.o" "../uTasker/SSC_drv.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/Driver.d" -MT"uTasker/Driver.o" -MT"uTasker/Driver.d" -o "uTasker/Driver.o" "../uTasker/Driver.c"
Building file: ../uTasker/GlobalTimer.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/GlobalTimer.d" -MT"uTasker/GlobalTimer.o" -MT"uTasker/GlobalTimer.d" -o "uTasker/GlobalTimer.o" "../uTasker/GlobalTimer.c"
 
Building file: ../uTasker/Tty_drv.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/Tty_drv.d" -MT"uTasker/Tty_drv.o" -MT"uTasker/Tty_drv.d" -o "uTasker/Tty_drv.o" "../uTasker/Tty_drv.c"
Finished building: ../uTasker/SSC_drv.c
 
Building file: ../uTasker/USB_drv.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/USB_drv.d" -MT"uTasker/USB_drv.o" -MT"uTasker/USB_drv.d" -o "uTasker/USB_drv.o" "../uTasker/USB_drv.c"
Finished building: ../uTasker/GlobalTimer.c
 
Building file: ../uTasker/Watchdog.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/Watchdog.d" -MT"uTasker/Watchdog.o" -MT"uTasker/Watchdog.d" -o "uTasker/Watchdog.o" "../uTasker/Watchdog.c"
Finished building: ../uTasker/Tty_drv.c
 
Building file: ../uTasker/can_drv.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/can_drv.d" -MT"uTasker/can_drv.o" -MT"uTasker/can_drv.d" -o "uTasker/can_drv.o" "../uTasker/can_drv.c"
Finished building: ../uTasker/Driver.c
 
Building file: ../uTasker/eth_drv.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/eth_drv.d" -MT"uTasker/eth_drv.o" -MT"uTasker/eth_drv.d" -o "uTasker/eth_drv.o" "../uTasker/eth_drv.c"
Finished building: ../uTasker/Watchdog.c
 
Building file: ../uTasker/iic_drv.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/iic_drv.d" -MT"uTasker/iic_drv.o" -MT"uTasker/iic_drv.d" -o "uTasker/iic_drv.o" "../uTasker/iic_drv.c"
Finished building: ../uTasker/can_drv.c
 
Finished building: ../uTasker/USB_drv.c
Building file: ../uTasker/low_power.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/low_power.d" -MT"uTasker/low_power.o" -MT"uTasker/low_power.d" -o "uTasker/low_power.o" "../uTasker/low_power.c"
 
Building file: ../uTasker/time_keeper.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/time_keeper.d" -MT"uTasker/time_keeper.o" -MT"uTasker/time_keeper.d" -o "uTasker/time_keeper.o" "../uTasker/time_keeper.c"
Finished building: ../uTasker/iic_drv.c
 
Building file: ../uTasker/uFile.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/uFile.d" -MT"uTasker/uFile.o" -MT"uTasker/uFile.d" -o "uTasker/uFile.o" "../uTasker/uFile.c"
Finished building: ../uTasker/eth_drv.c
 
Building file: ../uTasker/uMalloc.c
Finished building: ../uTasker/low_power.c
 
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/uMalloc.d" -MT"uTasker/uMalloc.o" -MT"uTasker/uMalloc.d" -o "uTasker/uMalloc.o" "../uTasker/uMalloc.c"
Building file: ../uTasker/uNetwork.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/uNetwork.d" -MT"uTasker/uNetwork.o" -MT"uTasker/uNetwork.d" -o "uTasker/uNetwork.o" "../uTasker/uNetwork.c"
Finished building: ../uTasker/uMalloc.c
Finished building: ../uTasker/uNetwork.c
 
Building file: ../uTasker/uTasker.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"uTasker/uTasker.d" -MT"uTasker/uTasker.o" -MT"uTasker/uTasker.d" -o "uTasker/uTasker.o" "../uTasker/uTasker.c"
 
Building file: ../stack/Ethernet.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/Ethernet.d" -MT"stack/Ethernet.o" -MT"stack/Ethernet.d" -o "stack/Ethernet.o" "../stack/Ethernet.c"
Finished building: ../uTasker/uFile.c
 
Building file: ../stack/NetBIOS.c
Finished building: ../uTasker/time_keeper.c
 
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/NetBIOS.d" -MT"stack/NetBIOS.o" -MT"stack/NetBIOS.d" -o "stack/NetBIOS.o" "../stack/NetBIOS.c"
Building file: ../stack/arp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/arp.d" -MT"stack/arp.o" -MT"stack/arp.d" -o "stack/arp.o" "../stack/arp.c"
Finished building: ../uTasker/uTasker.c
 
Finished building: ../stack/Ethernet.c
 
Building file: ../stack/dns.c
Finished building: ../stack/NetBIOS.c
Building file: ../stack/dhcp.c
 
Building file: ../stack/ftp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/dns.d" -MT"stack/dns.o" -MT"stack/dns.d" -o "stack/dns.o" "../stack/dns.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/ftp.d" -MT"stack/ftp.o" -MT"stack/ftp.d" -o "stack/ftp.o" "../stack/ftp.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/dhcp.d" -MT"stack/dhcp.o" -MT"stack/dhcp.d" -o "stack/dhcp.o" "../stack/dhcp.c"
Finished building: ../stack/dns.c
Finished building: ../stack/ftp.c
 
 
Building file: ../stack/ftp_client.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/ftp_client.d" -MT"stack/ftp_client.o" -MT"stack/ftp_client.d" -o "stack/ftp_client.o" "../stack/ftp_client.c"
Building file: ../stack/http.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/http.d" -MT"stack/http.o" -MT"stack/http.d" -o "stack/http.o" "../stack/http.c"
Finished building: ../stack/arp.c
 
Finished building: ../stack/ftp_client.c
Building file: ../stack/icmp.c
 
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/icmp.d" -MT"stack/icmp.o" -MT"stack/icmp.d" -o "stack/icmp.o" "../stack/icmp.c"
Building file: ../stack/igmp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/igmp.d" -MT"stack/igmp.o" -MT"stack/igmp.d" -o "stack/igmp.o" "../stack/igmp.c"
../stack/http.c: In function 'fnWebParGenerator':
../stack/http.c:1623:44: warning: multi-character character constant [-Wmultichar]
         if (*ptrBuffer++ == (unsigned char)WEB_PARSER_START) {           // a field has been found which needs to be filled out
                                            ^~~~~~~~~~~~~~~~
Finished building: ../stack/dhcp.c
 
Building file: ../stack/ip.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/ip.d" -MT"stack/ip.o" -MT"stack/ip.d" -o "stack/ip.o" "../stack/ip.c"
Finished building: ../stack/igmp.c
 
Building file: ../stack/ip_utils.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/ip_utils.d" -MT"stack/ip_utils.o" -MT"stack/ip_utils.d" -o "stack/ip_utils.o" "../stack/ip_utils.c"
Finished building: ../stack/icmp.c
 
Building file: ../stack/mqtt.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/mqtt.d" -MT"stack/mqtt.o" -MT"stack/mqtt.d" -o "stack/mqtt.o" "../stack/mqtt.c"
Finished building: ../stack/ip.c
 
Building file: ../stack/pop3.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/pop3.d" -MT"stack/pop3.o" -MT"stack/pop3.d" -o "stack/pop3.o" "../stack/pop3.c"
Finished building: ../stack/http.c
 
Building file: ../stack/ppp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/ppp.d" -MT"stack/ppp.o" -MT"stack/ppp.d" -o "stack/ppp.o" "../stack/ppp.c"
Finished building: ../stack/pop3.c
 
Finished building: ../stack/ppp.c
 
Building file: ../stack/smtp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/smtp.d" -MT"stack/smtp.o" -MT"stack/smtp.d" -o "stack/smtp.o" "../stack/smtp.c"
Finished building: ../stack/ip_utils.c
 
Building file: ../stack/snmp.c
Building file: ../stack/tcp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/tcp.d" -MT"stack/tcp.o" -MT"stack/tcp.d" -o "stack/tcp.o" "../stack/tcp.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/snmp.d" -MT"stack/snmp.o" -MT"stack/snmp.d" -o "stack/snmp.o" "../stack/snmp.c"
Finished building: ../stack/smtp.c
 
Building file: ../stack/telnet.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/telnet.d" -MT"stack/telnet.o" -MT"stack/telnet.d" -o "stack/telnet.o" "../stack/telnet.c"
Finished building: ../stack/mqtt.c
 
Building file: ../stack/tftp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/tftp.d" -MT"stack/tftp.o" -MT"stack/tftp.d" -o "stack/tftp.o" "../stack/tftp.c"
Finished building: ../stack/telnet.c
Finished building: ../stack/snmp.c
 
Building file: ../stack/udp.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/udp.d" -MT"stack/udp.o" -MT"stack/udp.d" -o "stack/udp.o" "../stack/udp.c"
 
Building file: ../stack/webutils.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/webutils.d" -MT"stack/webutils.o" -MT"stack/webutils.d" -o "stack/webutils.o" "../stack/webutils.c"
Finished building: ../stack/tftp.c
 
Building file: ../stack/zero_config.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"stack/zero_config.d" -MT"stack/zero_config.o" -MT"stack/zero_config.d" -o "stack/zero_config.o" "../stack/zero_config.c"
Finished building: ../stack/zero_config.c
 
Building file: ../Hardware/Kinetis/kinetis.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Hardware/Kinetis/kinetis.d" -MT"Hardware/Kinetis/kinetis.o" -MT"Hardware/Kinetis/kinetis.d" -o "Hardware/Kinetis/kinetis.o" "../Hardware/Kinetis/kinetis.c"
Finished building: ../stack/udp.c
 
Building file: ../Applications/uTaskerV1.4/FreeMaster.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/FreeMaster.d" -MT"Applications/uTaskerV1.4/FreeMaster.o" -MT"Applications/uTaskerV1.4/FreeMaster.d" -o "Applications/uTaskerV1.4/FreeMaster.o" "../Applications/uTaskerV1.4/FreeMaster.c"
Finished building: ../stack/webutils.c
 
Building file: ../Applications/uTaskerV1.4/KeyScan.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/KeyScan.d" -MT"Applications/uTaskerV1.4/KeyScan.o" -MT"Applications/uTaskerV1.4/KeyScan.d" -o "Applications/uTaskerV1.4/KeyScan.o" "../Applications/uTaskerV1.4/KeyScan.c"
Finished building: ../Applications/uTaskerV1.4/FreeMaster.c
 
Building file: ../Applications/uTaskerV1.4/NetworkIndicator.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/NetworkIndicator.d" -MT"Applications/uTaskerV1.4/NetworkIndicator.o" -MT"Applications/uTaskerV1.4/NetworkIndicator.d" -o "Applications/uTaskerV1.4/NetworkIndicator.o" "../Applications/uTaskerV1.4/NetworkIndicator.c"
Finished building: ../stack/tcp.c
 
Building file: ../Applications/uTaskerV1.4/application.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/application.d" -MT"Applications/uTaskerV1.4/application.o" -MT"Applications/uTaskerV1.4/application.d" -o "Applications/uTaskerV1.4/application.o" "../Applications/uTaskerV1.4/application.c"
Finished building: ../Applications/uTaskerV1.4/NetworkIndicator.c
Finished building: ../Applications/uTaskerV1.4/KeyScan.c
 
Building file: ../Applications/uTaskerV1.4/debug.c
 
Building file: ../Applications/uTaskerV1.4/modbus_app.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/modbus_app.d" -MT"Applications/uTaskerV1.4/modbus_app.o" -MT"Applications/uTaskerV1.4/modbus_app.d" -o "Applications/uTaskerV1.4/modbus_app.o" "../Applications/uTaskerV1.4/modbus_app.c"
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/debug.d" -MT"Applications/uTaskerV1.4/debug.o" -MT"Applications/uTaskerV1.4/debug.d" -o "Applications/uTaskerV1.4/debug.o" "../Applications/uTaskerV1.4/debug.c"
Finished building: ../Applications/uTaskerV1.4/modbus_app.c
 
Building file: ../Applications/uTaskerV1.4/nRF24201.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/nRF24201.d" -MT"Applications/uTaskerV1.4/nRF24201.o" -MT"Applications/uTaskerV1.4/nRF24201.d" -o "Applications/uTaskerV1.4/nRF24201.o" "../Applications/uTaskerV1.4/nRF24201.c"
Finished building: ../Applications/uTaskerV1.4/nRF24201.c
 
Building file: ../Applications/uTaskerV1.4/snmp_mib_handlers.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/snmp_mib_handlers.d" -MT"Applications/uTaskerV1.4/snmp_mib_handlers.o" -MT"Applications/uTaskerV1.4/snmp_mib_handlers.d" -o "Applications/uTaskerV1.4/snmp_mib_handlers.o" "../Applications/uTaskerV1.4/snmp_mib_handlers.c"
Finished building: ../Applications/uTaskerV1.4/application.c
 
Building file: ../Applications/uTaskerV1.4/usb_application.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/usb_application.d" -MT"Applications/uTaskerV1.4/usb_application.o" -MT"Applications/uTaskerV1.4/usb_application.d" -o "Applications/uTaskerV1.4/usb_application.o" "../Applications/uTaskerV1.4/usb_application.c"
Finished building: ../Applications/uTaskerV1.4/snmp_mib_handlers.c
 
Building file: ../Applications/uTaskerV1.4/webInterface.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -std=c99 -D_KINETIS -D_KDS -D_GNU -D__REDLIB__ -I"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"Applications/uTaskerV1.4/webInterface.d" -MT"Applications/uTaskerV1.4/webInterface.o" -MT"Applications/uTaskerV1.4/webInterface.d" -o "Applications/uTaskerV1.4/webInterface.o" "../Applications/uTaskerV1.4/webInterface.c"
Finished building: ../Applications/uTaskerV1.4/usb_application.c
 
In file included from ../Hardware/Kinetis/kinetis.c:1298:0:
../Hardware/Kinetis/kinetis.c: In function 'fnConfigureInterrupt':
../Hardware/Kinetis/kinetis_PWM.h:788:61: warning: 'ptrFlexTimer' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 ptrFlexTimer->FTM_channel[ucChannel].FTM_CV = ptrPWM_settings->pwm_value; // set the duty cycle for the particular channel           
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../Hardware/Kinetis/kinetis_PWM.h:154:32: note: 'ptrFlexTimer' was declared here
             FLEX_TIMER_MODULE *ptrFlexTimer;
                                ^~~~~~~~~~~~
In file included from ../Hardware/Kinetis/kinetis.c:1298:0:
../Hardware/Kinetis/kinetis_PWM.h:813:17: warning: 'iInterruptID' may be used uninitialized in this function [-Wmaybe-uninitialized]
                 fnEnterInterrupt(iInterruptID, ptrPWM_settings->int_priority, _PWM_TimerInterrupt[ucFlexTimer]);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../Hardware/Kinetis/kinetis.c:1298:0:
../Hardware/Kinetis/kinetis_PWM.h:150:17: note: 'iInterruptID' was declared here
             int iInterruptID;
                 ^~~~~~~~~~~~
Finished building: ../Applications/uTaskerV1.4/webInterface.c
 
Finished building: ../Applications/uTaskerV1.4/debug.c
 
Finished building: ../Hardware/Kinetis/kinetis.c
 
Building target: uTaskerV1.4.elf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map="uTaskerV1.4.map" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -T K_1M_256.ld -L "/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4/GNU_Kinetis" -o "uTaskerV1.4.elf"  ./uTasker/utFAT/mass_storage.o  ./uTasker/uGLCDLIB/GLCD.o ./uTasker/uGLCDLIB/LCD.o  ./uTasker/MODBUS/MODBUS.o  ./uTasker/Driver.o ./uTasker/GlobalTimer.o ./uTasker/SSC_drv.o ./uTasker/Tty_drv.o ./uTasker/USB_drv.o ./uTasker/Watchdog.o ./uTasker/can_drv.o ./uTasker/eth_drv.o ./uTasker/iic_drv.o ./uTasker/low_power.o ./uTasker/time_keeper.o ./uTasker/uFile.o ./uTasker/uMalloc.o ./uTasker/uNetwork.o ./uTasker/uTasker.o  ./stack/Ethernet.o ./stack/NetBIOS.o ./stack/arp.o ./stack/dhcp.o ./stack/dns.o ./stack/ftp.o ./stack/ftp_client.o ./stack/http.o ./stack/icmp.o ./stack/igmp.o ./stack/ip.o ./stack/ip_utils.o ./stack/mqtt.o ./stack/pop3.o ./stack/ppp.o ./stack/smtp.o ./stack/snmp.o ./stack/tcp.o ./stack/telnet.o ./stack/tftp.o ./stack/udp.o ./stack/webutils.o ./stack/zero_config.o  ./Hardware/Kinetis/kinetis.o  ./Applications/uTaskerV1.4/FreeMaster.o ./Applications/uTaskerV1.4/KeyScan.o ./Applications/uTaskerV1.4/NetworkIndicator.o ./Applications/uTaskerV1.4/application.o ./Applications/uTaskerV1.4/debug.o ./Applications/uTaskerV1.4/modbus_app.o ./Applications/uTaskerV1.4/nRF24201.o ./Applications/uTaskerV1.4/snmp_mib_handlers.o ./Applications/uTaskerV1.4/usb_application.o ./Applications/uTaskerV1.4/webInterface.o   
Memory region         Used Size  Region Size  %age Used
           FLASH:          0 GB         1 MB      0.00%
            SRAM:          0 GB     261648 B      0.00%
Finished building target: uTaskerV1.4.elf
 
make --no-print-directory post-build
Run a bat file to generate various outputs formats
"/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4/MCUXpresso/uTaskerV1.4_FLASH/generate.bat"
/home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4/MCUXpresso/uTaskerV1.4_FLASH/generate.bat: 4: /home/raspdroid/Desarrollo/uTasker-Kinetis/Applications/uTaskerV1.4/MCUXpresso/uTaskerV1.4_FLASH/generate.bat:
makefile:49: recipe for target 'post-build' failed
 
: not found
make[1]: [post-build] Error 127 (no tiene efecto)

09:29:54 Build Finished (took 5s.938ms)



FreeRTOS Task Aware Debugger Console
Code: [Select]
09:29:47.393 INFO: [TadModel] DSF session ID 0 has started.
09:30:01.254 INFO: [TadState] TAD state changed:  DEBUG_STARTED -> DEBUG_INIT_0 (SUSPENDED, USER_REQUEST)
09:30:02.499 INFO: [TadModel] DSF session ID 0 has ended.
09:30:02.533 INFO: [Logger] TAD log was saved in "/home/user/MCUXpresso_10.1.1_606/workspace/FreeRTOS_TAD_logs/TAD_log_180404_093002.log"


uTaskerV1.4.elf (C/C++ (NXP Semiconductors) MCU Applications) gdb traces
Code: [Select]
600,118 2-gdb-version
600,119 ~"GNU gdb (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 7.12.1.20170417-git\n"
600,120 ~"Copyright (C) 2017 Free Software Foundation, Inc.\n"
600,120 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
600,120 ~"This GDB was configured as \"--host=x86_64-linux-gnu --target=arm-none-eabi\".\nType \"sho\
w configuration\" for configuration details."
600,120 ~"\nFor bug reporting instructions, please see:\n"
600,120 ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
600,121 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\
ware/gdb/documentation/>.\n"
600,121 ~"For help, type \"help\".\n"
600,121 ~"Type \"apropos word\" to search for commands related to \"word\".\n"
600,121 2^done
600,122 (gdb)
600,139 3-environment-cd /home/raspdroid/Desarrollo/uTasker-Kinetis
600,139 3^done
600,139 (gdb)
600,141 4-gdb-set breakpoint pending on
600,141 4^done
600,141 (gdb)
600,143 5-enable-pretty-printing
600,143 5^done
600,143 (gdb)
600,147 6-gdb-set python print-stack none
600,147 6^done
600,148 (gdb)
600,151 7-gdb-set print object on
600,151 7^done
600,151 (gdb)
600,153 8-gdb-set print sevenbit-strings on
600,153 8^done
600,153 (gdb)
600,155 9-gdb-set charset ISO-8859-1
600,155 9^done
600,155 (gdb)
600,158 10-gdb-set auto-solib-add on
600,159 10^done
600,159 (gdb)
600,207 11-file-exec-and-symbols --thread-group i1 /home/raspdroid/Desarrollo/uTasker-Kinetis/uTaske\
rV1.4_FLASH/uTaskerV1.4.elf
600,250 11^done
600,250 (gdb)
600,261 12-interpreter-exec console "set remotetimeout 60000"
600,261 =cmd-param-changed,param="remotetimeout",value="60000"
600,262 12^done
600,262 (gdb)
600,651 13-target-select extended-remote | crt_emu_cm_redlink -msg-port=42619 -g -mi -2 -pGeneric-M4\
 -vendor=NXP -reset= -ProbeHandle=1 -CoreIndex=0 --telnet 3330
601,169 =thread-group-started,id="i1",pid="42000"
601,169 =thread-created,id="1",group-id="i1"
601,205 ~"uDisable_Interrupt () at ../Hardware/Kinetis/kinetis.c:869\n"
601,205 ~"869\t    iInterruptLevel++;                                                   // monitor t\
he level of disable nesting\n"
601,206 *stopped,frame={addr="0x00008636",func="uDisable_Interrupt",args=[],file="../Hardware/Kineti\
s/kinetis.c",fullname="/home/raspdroid/Desarrollo/uTasker-Kinetis/Hardware/Kinetis/kinetis.c",line="\
869"},thread-id="1",stopped-threads="all"
601,207 13^connected
601,207 (gdb)
601,255 14-interpreter-exec console "set mem inaccessible-by-default off"
601,255 =cmd-param-changed,param="mem inaccessible-by-default",value="off"
601,256 14^done
601,256 (gdb)
601,256 15-interpreter-exec console "mon ondisconnect cont"
601,259 15^done
601,259 (gdb)
601,261 16-interpreter-exec console "set arm force-mode thumb"
601,261 =cmd-param-changed,param="arm force-mode",value="thumb"
601,261 16^done
601,261 (gdb)
601,267 17-interpreter-exec console "mon capabilities"
601,267 17^done
601,269 (gdb)
601,270 18-interpreter-exec console "set remote hardware-breakpoint-limit 6"
601,270 =cmd-param-changed,param="remote hardware-breakpoint-limit",value="6"
601,270 18^done
601,270 (gdb)
601,274 19-interpreter-exec console "mon semihost enable"
601,274 19^done
601,275 (gdb)
601,283 20-data-list-register-names
601,283 20^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12",\
"sp","lr","pc","","","","","","","","","","xpsr","","","","","","","","","","","","","","","","","",\
"","","","","","","","","","","","","","","","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","d10"\
,"d11","d12","d13","d14","d15","","","","","","","","","","","","","","","","","fpscr","cycles","fpc\
cr","fpcar","fpdscr","mvfr0","mvfr1","s0","s1","s2","s3","s4","s5","s6","s7","s8","s9","s10","s11","\
s12","s13","s14","s15","s16","s17","s18","s19","s20","s21","s22","s23","s24","s25","s26","s27","s28"\
,"s29","s30","s31"]
601,284 (gdb)
601,289 21-target-download
601,335 21^error,msg="Load failed"
601,336 (gdb)
601,350 22-target-disconnect
601,350 23-gdb-exit
601,967 24-list-thread-groups
602,394 =thread-group-exited,id="i1"
602,395 22^done
602,395 (gdb)
602,395 23^exit

uTaskerV1.4.elf(C/C++ (NXP Semiconductors) MCU Applications) arm-none-eabi-gdb
Code: [Select]
GNU gdb (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 7.12.1.20170417-git
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
uDisable_Interrupt () at ../Hardware/Kinetis/kinetis.c:869
869     iInterruptLevel++;                                                   // monitor the level of disable nesting


uTasker Debug messages
Code: [Select]
MCUXpresso RedlinkMulti Driver v10.1 (Dec 19 2017 17:00:52 - crt_emu_cm_redlink build 390)
Reconnected to existing redlink server (PID 4294967295)
Connecting to probe 1 core 0 (server PID unknown) gave 'OK'
Probe Firmware: DAPLink CMSIS-DAP (ARM)
Serial Number:  0240000029164e45001c0012706e000ef301000097969900
VID:PID:  0D28:0204
USB Path: /dev/hidraw0
debug interface type      = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD
processor type            = Cortex-M4 (CPU ID 410FC240)
number of h/w breakpoints = 6
number of flash patches   = 2
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM dev (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB00C ChipIP dev SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04003BB002 ChipIP dev DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04002BB003 ChipIP dev FPB (type 0x0)
ROM 1 E0000000: CID B105E00D PID 04003BB001 ChipIP dev ITM (type 0x0)
ROM 1 E0040000: CID B105900D PID 04000BB9A1 CoreSight dev TPIU type 0x11 Trace Sink - TPIU
ROM 1 E0041000: CID B105900D PID 04000BB925 CoreSight dev ETM type 0x13 Trace Source - core
ROM 1 E0042000: CID B105900D PID 04003BB907 CoreSight dev ETB type 0x21 Trace Sink - ETB
ROM 1 E0043000: CID B105900D PID 04001BB908 CoreSight dev CSTF type 0x12 Trace Link - Trace funnel/router
NXP: Generic-M4
Connected: was_reset=true. was_stopped=false
MCUXpresso Free License - Downloads unlimited
Awaiting telnet connection to port 3330 ...
GDB nonstop mode disabled (using allstop mode)
GDB stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.


Modal dialog Error:
Code: [Select]
Error in final launch sequence
Failed to execute MI command:
-target-download
Error message from debugger back end:
Load failed
Load failed





« Last Edit: April 04, 2018, 09:39:08 AM by Javier »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: Debugging from MCUxpresso
« Reply #3 on: April 05, 2018, 10:26:33 AM »
Hi Javier

I don't know what all the messages mean but I sounds like the debugger is maybe not configured correctly - for example I see somewhere a reference to JTAG but if you use the FRDM-K64F's OpenSDA interface for debugging this will be using SWD instead - I would play around with the debugger configuration.
It is also possible to install different debugger types on the board - P&E, Segger and DAP. I tend to use P&E or Segger ones - the mbed ones have never worked for me. See https://www.nxp.com/support/developer-resources/run-time-software/kinetis-developer-resources/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA

Regards

Mark