I tried to debug the dual core freertos blinky example in lpcopen library to M0 core, but it shows it is not able to load to M0 core using swd. So i am not able to run anything on the M0 core in Mcb4357. Im using Mcuxpresso and segger jlink. Any help on this is much appreciated.
Hi,
I am trying to migrate from keil mcb4357 to lpcxpresso 4367.
I followed bavarian tips
- Start with replacing the Keil board layer files with the board layer files from the Xpresso package.
- Replace the LPC4357 chip layer files with the files from the LPC4367 package.
- Change the compiler settings to LPC4367.
All the above went well but the following error occurs:
Building file: ../example/src/main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DOS_FREE_RTOS -DCORE_M4 -D__MULTICORE_NONE -I"C:\Users\d.sideris\Desktop\LPC_workspace\LpcOpen\lpc_chip_43xx\inc" -I"C:\Users\d.sideris\Desktop\LPC_workspace\LpcOpen\lpc_board_nxp_lpcxpresso_4337\inc" -I"C:\Users\d.sideris\Desktop\LPC_workspace\LpcOpen\dc_freertos_blinky\example\inc" -I"C:\Users\d.sideris\Desktop\LPC_workspace\LpcOpen\dc_freertos_blinky\freertos\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -specs=redlib.specs -MMD -MP -MF"example/src/main.d" -MT"example/src/main.o" -MT"example/src/main.d" -o "example/src/main.o" "../example/src/main.c"
../example/src/main.c: In function 'prvSetupHardware':
../example/src/main.c:105:30: error: 'M0_IMAGE_ADDR' undeclared (first use in this function)
if (M0Image_Boot((uint32_t) M0_IMAGE_ADDR) < 0) {
^
../example/src/main.c:105:30: note: each undeclared identifier is reported only once for each function it appears in
make: *** [example/src/main.o] Error 1
In dc_freertos_blinky multicore settings i put slave m0app in flash memory B512.
In dc_freertos_blinky_m0 multicore setting i put multicore configuration M0APP.
Have i missed something for a board migration?