5.1k views
in Getting started by

Dear all,

After following the steps from the 'Getting started with LPCXpresso54608' tutorial, I get multiple errors while trying to compile the HelloWorld example:

*******************************************************************************
* Welcome to Embedded Wizard Build Environment for LPCXpresso54608 V8.20
*******************************************************************************

LPCXpresso54608 SDK path: C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXp
resso54608_MCUXPRESSOIDE
ToolChain path:           C:\nxp\MCUXpressoIDE_10.1.0_589/ide/tools/bin
Flash utitlity:           C:\nxp\MCUXpressoIDE_10.1.0_589/ide/bin/crt_emu_cm_red
link.exe
All checks are passed!

Entering Embedded Wizard Template project

*******************************************************************************
*
* Getting started with Embedded Wizard and LPCXpresso54608 board:
*
* http://doc.embedded-wizard.de/getting-started-lpcxpresso54608
*
*******************************************************************************


C:\Users\Ted\Documents\NXPLPC\LPCXpresso54608\Template\Project\GCC>make
-------------------------------------------------
Creating EmWiApplication
-------------------------------------------------
Compiler Options: -O2 -Wall -fno-common -ffunction-sections -fdata-sections -ffr
eestanding -fno-builtin -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthu
mb -specs=redlib.specs -D__USE_CMSIS -DCPU_LPC54608J512ET180 -DSDK_DEBUGCONSOLE=
1 -D__MCUXPRESSO -DCPU_LPC54608J512ET180_cm4 -D__REDLIB__ -DEW_MAX_SURFACE_CACHE
_SIZE=0x200000 -DEW_MAX_GLYPH_SURFACE_WIDTH=256 -DEW_MAX_GLYPH_SURFACE_HEIGHT=25
6 -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGB565 -DEW_USE_DO
UBLE_BUFFER=1 -DEW_SURFACE_ROTATION=0 -DEW_CPU_LOAD_MEASURING= -DEW_USE_QSPI_FLA
SH=1 -DEW_USE_FREE_RTOS=0
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
Compiling ../../Source/main.c
Compiling ../../Source/DeviceDriver.c
Compiling ../../GeneratedCode/Core.c
Compiling ../../GeneratedCode/Effects.c
Compiling ../../GeneratedCode/Graphics.c
Compiling ../../GeneratedCode/Resources.c
Compiling ../../GeneratedCode/Views.c
Compiling ../../GeneratedCode/Application.c
Compiling ../../../PlatformPackage/RTE/ewextrte.c
Compiling ../../../PlatformPackage/RGB565/ewextgfx.c
Compiling ../../../TargetSpecific/ew_bsp_system.c
Compiling ../../../TargetSpecific/ew_bsp_clock.c
Compiling ../../../TargetSpecific/ew_bsp_event.c
Compiling ../../../TargetSpecific/ew_bsp_display.c
Compiling ../../../TargetSpecific/ew_bsp_touch.c
Compiling ../../../TargetSpecific/ew_bsp_serial.c
Compiling ../../../TargetSpecific/ew_bsp_inout.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/mcuxpresso/startup_LPC54608.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/system_LPC54608.c
Compiling ../../../TargetSpecific/Drivers/board.c
Compiling ../../../TargetSpecific/clock_config.c
Compiling ../../../TargetSpecific/Drivers/fsl_ft5406.c
Compiling ../../../TargetSpecific/Drivers/pin_mux.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/utilities/fsl_debug_console.c
C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXPRESSOIDE/d
evices/LPC54608/utilities/fsl_debug_console.c:69:21: fatal error: fsl_log.h: No
such file or directory
 #include "fsl_log.h"
                     ^
compilation terminated.
make: *** [Obj/fsl_debug_console.o] Error 1

C:\Users\Ted\Documents\NXPLPC\LPCXpresso54608\Template\Project\GCC>

The following files cannot be found: fsl_io.c, fsl_io.h, fsl_log.c, fsl_log.h, fsl_str.c, fsl_str.h as they are in three corresponding sub-folders. After copying these files from their subfolders and placing them in '..\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXPRESSOIDE\devices\LPC54608\utilities' folder, these errors do not occur anymore. However, after retrying to compile another error occurs:

*******************************************************************************
* Welcome to Embedded Wizard Build Environment for LPCXpresso54608 V8.20
*******************************************************************************

LPCXpresso54608 SDK path: C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXp
resso54608_MCUXPRESSOIDE
ToolChain path:           C:\nxp\MCUXpressoIDE_10.1.0_589/ide/tools/bin
Flash utitlity:           C:\nxp\MCUXpressoIDE_10.1.0_589/ide/bin/crt_emu_cm_red
link.exe
All checks are passed!

Entering Embedded Wizard Template project

*******************************************************************************
*
* Getting started with Embedded Wizard and LPCXpresso54608 board:
*
* http://doc.embedded-wizard.de/getting-started-lpcxpresso54608
*
*******************************************************************************


C:\Users\Ted\Documents\NXPLPC\LPCXpresso54608\Template\Project\GCC>make
-------------------------------------------------
Creating EmWiApplication
-------------------------------------------------
Compiler Options: -O2 -Wall -fno-common -ffunction-sections -fdata-sections -ffr
eestanding -fno-builtin -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthu
mb -specs=redlib.specs -D__USE_CMSIS -DCPU_LPC54608J512ET180 -DSDK_DEBUGCONSOLE=
1 -D__MCUXPRESSO -DCPU_LPC54608J512ET180_cm4 -D__REDLIB__ -DEW_MAX_SURFACE_CACHE
_SIZE=0x200000 -DEW_MAX_GLYPH_SURFACE_WIDTH=256 -DEW_MAX_GLYPH_SURFACE_HEIGHT=25
6 -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGB565 -DEW_USE_DO
UBLE_BUFFER=1 -DEW_SURFACE_ROTATION=0 -DEW_CPU_LOAD_MEASURING= -DEW_USE_QSPI_FLA
SH=1 -DEW_USE_FREE_RTOS=0
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/utilities/fsl_debug_console.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_clock.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_common.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_emc.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_flexcomm.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_gpio.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_i2c.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_inputmux.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_lcdc.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_pint.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_power.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_reset.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_rtc.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_sctimer.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_usart.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_spifi.c
Compiling C:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXP
RESSOIDE/devices/LPC54608/drivers/fsl_spifi_dma.c
Compiling ../../../Misc/tlsf.c
Compiling ../../../Misc/xprintf.c
Linking EmWiApplication
arm-none-eabi-gcc -nostdlib -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-ab
i=hard -Xlinker --gc-sections -Xlinker -print-memory-usage -Wl,-Map=./Bin/EmWiAp
plication.map              ./Obj/main.o              ./Obj/DeviceDriver.o
  ./Obj_qspi/Core.o         ./Obj_qspi/Effects.o         ./Obj_qspi/Graphics.o
       ./Obj_qspi/Resources.o         ./Obj_qspi/Views.o         ./Obj_qspi/Appl
ication.o         ./Obj_qspi/ewextrte.o         ./Obj_qspi/ewextgfx.o     ./Obj/
ew_bsp_system.o     ./Obj/ew_bsp_clock.o     ./Obj/ew_bsp_event.o     ./Obj/ew_b
sp_display.o     ./Obj/ew_bsp_touch.o     ./Obj/ew_bsp_serial.o     ./Obj/ew_bsp
_inout.o     ./Obj/startup_LPC54608.o     ./Obj/system_LPC54608.o     ./Obj/boar
d.o     ./Obj/clock_config.o     ./Obj/fsl_ft5406.o     ./Obj/pin_mux.o     ./Ob
j/fsl_debug_console.o              ./Obj/fsl_clock.o              ./Obj/fsl_comm
on.o              ./Obj/fsl_emc.o              ./Obj/fsl_flexcomm.o
 ./Obj/fsl_gpio.o              ./Obj/fsl_i2c.o              ./Obj/fsl_inputmux.o
              ./Obj/fsl_lcdc.o              ./Obj/fsl_pint.o              ./Obj/
fsl_power.o              ./Obj/fsl_reset.o              ./Obj/fsl_rtc.o
     ./Obj/fsl_sctimer.o              ./Obj/fsl_usart.o              ./Obj/fsl_s
pifi.o              ./Obj/fsl_spifi_dma.o             ./Obj/tlsf.o             .
/Obj/xprintf.o  -L../../../PlatformPackage/RTE -L../../../PlatformPackage/RGB565
 -LC:\Users\Ted\mcuxpresso\01\SDKPackages\SDK_2.3.0_LPCXpresso54608_MCUXPRESSOID
E/devices/LPC54608/mcuxpresso -lc -lnosys -lewrte-m4-gcc -lewgfx-m4-gcc -lfsl_po
wer_lib -T ./lpcxpresso54608.ld -o ./Bin/EmWiApplication.elf
c:/nxp/mcuxpressoide_10.1.0_589/ide/tools/bin/../lib/gcc/arm-none-eabi/6.3.1/../
../../../arm-none-eabi/bin/ld.exe: cannot find -lfsl_power_lib
collect2.exe: error: ld returned 1 exit status
make: *** [EmWiApplication] Error 1

C:\Users\Ted\Documents\NXPLPC\LPCXpresso54608\Template\Project\GCC>

Can anyone shed some light on this? 

Thanks!

Ted

1 Answer

0 votes
by
 
Best answer

Hello Ted,

thank you for reporting the problem! The reason for the compiler and linker errors is a slightly changed directory structure between MCUXpresso SDK V2.2.0 and MCUXpresso SDK V2.3.0.

Please do not change the strucutre of the SDK - please download and use the modified version of the makefile and copy it into your Build Environment into the subdirectory \Template\Project\GCC.

Then it should be possible to compile and link successfully the different sample applications.

Does it work?

Best regards,

Manfred.

Additional remark: The entire Build Environment is also updated and available for download.

by

Hello Manfred,

The modified makefile did the trick. The HelloWorld example is now compiling without errors. However, when programming I still get an error:

*******************************************************************************
* Welcome to Embedded Wizard Build Environment for LPCXpresso54608 V8.30.01
*******************************************************************************

LPCXpresso54608 SDK path: C:\Users\alouwhoff\mcuxpresso\SDKPackages\SDK_2.3.0_LP
CXpresso54608
ToolChain path:           C:\nxp\MCUXpressoIDE_10.0.2_411/ide/tools/bin
Flash utitlity:           C:\nxp\MCUXpressoIDE_10.0.2_411/ide/bin/crt_emu_cm_red
link.exe
All checks are passed!

Entering Embedded Wizard Template project

*******************************************************************************
*
* Getting started with Embedded Wizard and LPCXpresso54608 board:
*
* http://doc.embedded-wizard.de/getting-started-lpcxpresso54608
*
*******************************************************************************


D:\alouwhoff\Embedded Wizard 8.30\Projects\LPCXpresso54608\Template\Project\GCC>
make install
-------------------------------------------------
Creating EmWiApplication
-------------------------------------------------
Compiler Options: -O2 -Wall -fno-common -ffunction-sections -fdata-sections -ffr
eestanding -fno-builtin -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthu
mb -specs=redlib.specs -D__USE_CMSIS -DCPU_LPC54608J512ET180 -DSDK_DEBUGCONSOLE=
1 -D__MCUXPRESSO -DCPU_LPC54608J512ET180_cm4 -D__REDLIB__ -DEW_MAX_SURFACE_CACHE
_SIZE=0x200000 -DEW_MAX_GLYPH_SURFACE_WIDTH=256 -DEW_MAX_GLYPH_SURFACE_HEIGHT=25
6 -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGB565 -DEW_USE_DO
UBLE_BUFFER=1 -DEW_SURFACE_ROTATION=0 -DEW_CPU_LOAD_MEASURING= -DEW_USE_QSPI_FLA
SH=1 -DEW_USE_FREE_RTOS=0
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
Linking EmWiApplication
arm-none-eabi-gcc -nostdlib -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-ab
i=hard -Xlinker --gc-sections -Xlinker -print-memory-usage -Wl,-Map=./Bin/EmWiAp
plication.map              ./Obj/main.o              ./Obj/DeviceDriver.o
  ./Obj_qspi/Core.o         ./Obj_qspi/Effects.o         ./Obj_qspi/Graphics.o
       ./Obj_qspi/Resources.o         ./Obj_qspi/Views.o         ./Obj_qspi/Appl
ication.o         ./Obj_qspi/Cutter.o         ./Obj_qspi/ewextrte.o         ./Ob
j_qspi/ewextgfx.o     ./Obj/ew_bsp_system.o     ./Obj/ew_bsp_clock.o     ./Obj/e
w_bsp_event.o     ./Obj/ew_bsp_display.o     ./Obj/ew_bsp_touch.o     ./Obj/ew_b
sp_serial.o     ./Obj/ew_bsp_inout.o     ./Obj/startup_LPC54608.o     ./Obj/syst
em_LPC54608.o     ./Obj/board.o     ./Obj/clock_config.o     ./Obj/fsl_ft5406.o
    ./Obj/pin_mux.o     ./Obj/fsl_debug_console.o              ./Obj/fsl_clock.o
              ./Obj/fsl_common.o              ./Obj/fsl_emc.o              ./Obj
/fsl_flexcomm.o              ./Obj/fsl_gpio.o              ./Obj/fsl_i2c.o
        ./Obj/fsl_inputmux.o              ./Obj/fsl_lcdc.o              ./Obj/fs
l_pint.o              ./Obj/fsl_power.o              ./Obj/fsl_reset.o
    ./Obj/fsl_rtc.o              ./Obj/fsl_sctimer.o              ./Obj/fsl_usar
t.o              ./Obj/fsl_spifi.o              ./Obj/fsl_spifi_dma.o
   ./Obj/fsl_log.o              ./Obj/fsl_io.o             ./Obj/tlsf.o
    ./Obj/xprintf.o  -L../../../PlatformPackage/RTE -L../../../PlatformPackage/R
GB565 -LC:\Users\alouwhoff\mcuxpresso\SDKPackages\SDK_2.3.0_LPCXpresso54608/devi
ces/LPC54608/mcuxpresso -lc -lnosys -lewrte-m4-gcc -lewgfx-m4-gcc -lpower_hardab
i -T ./lpcxpresso54608.ld -o ./Bin/EmWiApplication.elf
Memory region         Used Size  Region Size  %age Used
   PROGRAM_FLASH:      235544 B       512 KB     44.93%
    SRAM_0_1_2_3:       11640 B       160 KB      7.10%
           SRAMX:          0 GB        32 KB      0.00%
         USB_RAM:          0 GB         8 KB      0.00%
       SPI_FLASH:      117780 B         8 MB      1.40%
Memory Usage:
./Bin/EmWiApplication.elf  :
section                  size         addr
.ExtQSPIFlashSection   117780    268435456
.text                  232992            0
.data                    2552    536870912
.data_RAM2                  0     67108864
.data_RAM3                  0   1074790400
.bss                      896    536873464
.uninit_RESERVED            0    536870912
.noinit_RAM2                0     67108864
.noinit_RAM3                0   1074790400
.noinit                     0    536874360
.heap                    4096    536874360
.heap2stackfill          4096    536878456
.stack                      0    537030656
.comment                  237            0
.ARM.attributes            55            0
.debug_frame             4392            0
.stab                     156            0
.stabstr                  333            0
.debug_info              5416            0
.debug_abbrev             834            0
.debug_loc               1232            0
.debug_aranges            120            0
.debug_ranges             176            0
.debug_line               965            0
.debug_str               3369            0
Total                  379697


EmWiApplication successfully built !!
Flashing EmWiApplication
C:\nxp\MCUXpressoIDE_10.0.2_411/ide/bin/crt_emu_cm_redlink.exe --flash-load-exec
 ./Bin/EmWiApplication.elf --vendor NXP -p LPC54608J512 --reset vectreset -x ../
../../TargetSpecific -g --debug 2
Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redl
ink.exe build 272)
Pc: (  0) Reading remote configuration
Wc(03). No cache support.
Nc: Found chip XML file in ../../../TargetSpecific\LPC54608J512.xml
Pc: (  5) Remote configuration complete
Nc: Server OK but no connection to probe 0 core 0 (after 3 attempts) - Ee(36). C
ould not connect to core.
Ed:02: Failed on connect: Ee(36). Could not connect to core.
Et:31: No connection to chip's debug port
Pc: (100) Target Connection Failed
Nc: error closing down debug session - Em(02). MEM-AP is not selected.
make: *** [install] Error 1

D:\alouwhoff\Embedded Wizard 8.30\Projects\LPCXpresso54608\Template\Project\GCC>

My dev. board is currently running the Segger J-Link software. Changing it to CMSIS-DAP does not make a difference. 

Thanks! 

Ted 

 

by
Hello Ted,

please check, if jumper JP5 ("DFU Link" ) on the LPCXpresso54608 board is removed.

Regards,

Martin
by
Hello Martin,

JP5 is removed. The LPCXpresso54608 board shows up in device manager under 'Ports' as "JLink CDC UART Port (COM6)".

Thanks!

Ted
by
Here on my system it is shown under Ports as "LPC LinkII UCom Port (COM29)".

In devenv.cmd I'm using:

set MCUXpressoIDE_PATH=C:\nxp\MCUXpressoIDE_10.1.0_589
set SDK_PATH=C:\nxp\SDK_2.3.0_LPCXpresso54608
by

Hi Martin,

When flashing the board using LPCScrypt with CMSIS-DAP firmware it shows up under ports as "LPC-LinkII UCom Port (COM4)". Using this firmware generates the same error.

Ted

EDIT:

After unblocking some programs in Windows firewall (corporate laptop), I got a little bit further...I think: 

*******************************************************************************
* Welcome to Embedded Wizard Build Environment for LPCXpresso54608 V8.30.01
*******************************************************************************

LPCXpresso54608 SDK path: C:\Users\alouwhoff\mcuxpresso\SDKPackages\SDK_2.3.0_LP
CXpresso54608
ToolChain path:           C:\nxp\MCUXpressoIDE_10.0.2_411/ide/tools/bin
Flash utitlity:           C:\nxp\MCUXpressoIDE_10.0.2_411/ide/bin/crt_emu_cm_red
link.exe
All checks are passed!

Entering Embedded Wizard Template project

*******************************************************************************
*
* Getting started with Embedded Wizard and LPCXpresso54608 board:
*
* http://doc.embedded-wizard.de/getting-started-lpcxpresso54608
*
*******************************************************************************


C:\Embedded Wizard 8.30\Projects\LPCXpresso54608\Template\Project\GCC>make insta
ll
-------------------------------------------------
Creating EmWiApplication
-------------------------------------------------
Compiler Options: -O2 -Wall -fno-common -ffunction-sections -fdata-sections -ffr
eestanding -fno-builtin -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthu
mb -specs=redlib.specs -D__USE_CMSIS -DCPU_LPC54608J512ET180 -DSDK_DEBUGCONSOLE=
1 -D__MCUXPRESSO -DCPU_LPC54608J512ET180_cm4 -D__REDLIB__ -DEW_MAX_SURFACE_CACHE
_SIZE=0x200000 -DEW_MAX_GLYPH_SURFACE_WIDTH=256 -DEW_MAX_GLYPH_SURFACE_HEIGHT=25
6 -DEW_FRAME_BUFFER_COLOR_FORMAT=EW_FRAME_BUFFER_COLOR_FORMAT_RGB565 -DEW_USE_DO
UBLE_BUFFER=1 -DEW_SURFACE_ROTATION=0 -DEW_CPU_LOAD_MEASURING= -DEW_USE_QSPI_FLA
SH=1 -DEW_USE_FREE_RTOS=0
-------------------------------------------------
Creating object and binary directories
-------------------------------------------------
Linking EmWiApplication
arm-none-eabi-gcc -nostdlib -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-ab
i=hard -Xlinker --gc-sections -Xlinker -print-memory-usage -Wl,-Map=./Bin/EmWiAp
plication.map              ./Obj/main.o              ./Obj/DeviceDriver.o
  ./Obj_qspi/Core.o         ./Obj_qspi/Effects.o         ./Obj_qspi/Graphics.o
       ./Obj_qspi/Resources.o         ./Obj_qspi/Views.o         ./Obj_qspi/Appl
ication.o         ./Obj_qspi/ewextrte.o         ./Obj_qspi/ewextgfx.o     ./Obj/
ew_bsp_system.o     ./Obj/ew_bsp_clock.o     ./Obj/ew_bsp_event.o     ./Obj/ew_b
sp_display.o     ./Obj/ew_bsp_touch.o     ./Obj/ew_bsp_serial.o     ./Obj/ew_bsp
_inout.o     ./Obj/startup_LPC54608.o     ./Obj/system_LPC54608.o     ./Obj/boar
d.o     ./Obj/clock_config.o     ./Obj/fsl_ft5406.o     ./Obj/pin_mux.o     ./Ob
j/fsl_debug_console.o              ./Obj/fsl_clock.o              ./Obj/fsl_comm
on.o              ./Obj/fsl_emc.o              ./Obj/fsl_flexcomm.o
 ./Obj/fsl_gpio.o              ./Obj/fsl_i2c.o              ./Obj/fsl_inputmux.o
              ./Obj/fsl_lcdc.o              ./Obj/fsl_pint.o              ./Obj/
fsl_power.o              ./Obj/fsl_reset.o              ./Obj/fsl_rtc.o
     ./Obj/fsl_sctimer.o              ./Obj/fsl_usart.o              ./Obj/fsl_s
pifi.o              ./Obj/fsl_spifi_dma.o              ./Obj/fsl_log.o
    ./Obj/fsl_io.o             ./Obj/tlsf.o             ./Obj/xprintf.o  -L../..
/../PlatformPackage/RTE -L../../../PlatformPackage/RGB565 -LC:\Users\alouwhoff\m
cuxpresso\SDKPackages\SDK_2.3.0_LPCXpresso54608/devices/LPC54608/mcuxpresso -lc
-lnosys -lewrte-m4-gcc -lewgfx-m4-gcc -lpower_hardabi -T ./lpcxpresso54608.ld -o
 ./Bin/EmWiApplication.elf
Memory region         Used Size  Region Size  %age Used
   PROGRAM_FLASH:      191248 B       512 KB     36.48%
    SRAM_0_1_2_3:       11640 B       160 KB      7.10%
           SRAMX:          0 GB        32 KB      0.00%
         USB_RAM:          0 GB         8 KB      0.00%
       SPI_FLASH:       31856 B         8 MB      0.38%
Memory Usage:
./Bin/EmWiApplication.elf  :
section                  size         addr
.ExtQSPIFlashSection    31856    268435456
.text                  188696            0
.data                    2552    536870912
.data_RAM2                  0     67108864
.data_RAM3                  0   1074790400
.bss                      896    536873464
.uninit_RESERVED            0    536870912
.noinit_RAM2                0     67108864
.noinit_RAM3                0   1074790400
.noinit                     0    536874360
.heap                    4096    536874360
.heap2stackfill          4096    536878456
.stack                      0    537030656
.comment                  237            0
.ARM.attributes            55            0
.debug_frame             4392            0
.stab                     156            0
.stabstr                  333            0
.debug_info              5416            0
.debug_abbrev             834            0
.debug_loc               1232            0
.debug_aranges            120            0
.debug_ranges             176            0
.debug_line               965            0
.debug_str               3369            0
Total                  249477


EmWiApplication successfully built !!
Flashing EmWiApplication
C:\nxp\MCUXpressoIDE_10.0.2_411/ide/bin/crt_emu_cm_redlink.exe --flash-load-exec
 ./Bin/EmWiApplication.elf --vendor NXP -p LPC54608J512 --reset vectreset -x ../
../../TargetSpecific -g --debug 2
Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:31:55 - crt_emu_cm_redl
ink.exe build 272)
Pc: (  0) Reading remote configuration
Wc(03). No cache support.
Nc: Found chip XML file in ../../../TargetSpecific\LPC54608J512.xml
Pc: (  5) Remote configuration complete
Nc: Probe Firmware: LPC-LINK2 CMSIS-DAP V5.182 (NXP Semiconductors)
Nc: Serial Number:  JQA5AQCR
Nc: VID:PID:  1FC9:0090
Nc: USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#7&2afa74f4&0&0000#{4d1e55b2-f16f-1
1cf-88cb-001111000030}
Pc: ( 30) Emulator Connected
Pc: ( 40) No Halt
Pc: ( 50) CPU ID
Nc: number of h/w breakpoints = 6
Nc: number of flash patches   = 2
Nc: number of h/w watchpoints = 4
Nc: Probe(0): Connected&Reset. DpID: 2BA01477. CpuID: 410FC240. Info: <None>
Nc: Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Nc: Inspected v.2 On-chip Flash Memory LPC5460x_512K.cfx
Nc: Image 'LPC5460x (512K Flash) Jun 22 2017 15:17:46'
Nc: Inspected v.2 External Flash Device on SPI using SPIFI lib LPC5460x_SPIFI_GE
NERIC.cfx
Nc: Image 'LPC5460x Generic SPIFI Jun 22 2017 15:19:27'
Nc: Opening flash driver LPC5460x_SPIFI_GENERIC.cfx
Nc: Sending VECTRESET to run flash driver
Nc: After error Nn(05). Wire ACK Fault in DAP access -
Nc: Failed to read address register in DAP - Ee(FF). Redlink interface error 255
.
Nc: flash driver polled mailbox (8 bytes at 0x2000B6C8) read failed (on poll 1/3
01) - retrying after 1ms - rc Em(17). Debug port inaccessible after access at lo
cation 0x2000B6C8

Nc: After error Nn(05). Wire ACK Fault in DAP access -
Nc: Failed to read address register in DAP - Ee(FF). Redlink interface error 255
.
Wc: flash driver polled mailbox (8 bytes at 0x2000B6C8) read failed (on poll 1/3
01) - halting for postmortem - rc Em(17). Debug port inaccessible after access a
t location 0x2000B6C8

Wc: failed to halt target for postmortem - rc Em(17). Debug port inaccessible af
ter access at location 0x2000B6C8

Nc: failed to read registers - Ep(08). Cannot access core regs when target runni
ng.
Nc: Flash Driver V.2 startup failed - rc Em(17). Debug port inaccessible after a
ccess at location 0x2000B6C8
Ed:03: Failed on chip setup: Ec(01). Invalid part, XML, or configuration.
Pc: ( 65) Chip Setup Complete
Nc: error closing down debug session - Ee(FF). Redlink interface error 255.
EmWiApplication successfully flashed !!

C:\Embedded Wizard 8.30\Projects\LPCXpresso54608\Template\Project\GCC>

Maybe this helps a bit. 

Thanks!

Ted

by

Hello Ted,
I compared the outputs during flashing on your and my side.
On my side there are following additional logs:

Nc: debug interface type      = Cortex-M3/4 (DAP DP ID 2BA01477) over SWD
Nc: processor type            = Cortex-M4 (CPU ID 410FC240)

and

Ns: Content of CoreSight Debug ROM(s):
Nc: RBASE E00FF000: CID B105100D PID 04000BB4C4 ROM dev (type 0x1)
Nc: ROM 1 E000E000: CID B105E00D PID 04000BB00C ChipIP dev SCS (type 0x0)
...

Maybe this helps.

Please find full logs here

flashing successful: https://ask.embedded-wizard.de/?qa=blob&qa_blobid=4803634359486023738

flashing failed: https://ask.embedded-wizard.de/?qa=blob&qa_blobid=14427079060208890938

 

by

Good day Manfred and Martin,

Everything is working now. The HelloWorld example is compiling, linking and flashing like it should.

I’ve got my dev. board working by flashing new firmware following this article: https://os.mbed.com/teams/NXP/wiki/Updating-LPCXpresso-firmware. Then programming the LPC-Link2 with CMSIS-DAP. Somehow things got messed up I assume.

It seems the only ‘real’ problem was the changed directory structure as Manfred mentioned and solved. The rest was related to a bad dev. board and my corporate laptop which has too many restrictions.

Thanks guys for your time and support!

Ted

by
Hello Ted,

good news! Thanks for the feedback!

Manfred.

Embedded Wizard Website | Privacy Policy | Imprint

...