Hello,
I have a problem refreshing SDK components with LWIP - MQTT SDK example project.
Using the LPCXpresso54628 development board, I import the SDK example project: "lpcxpresso54628_lwip_mqtt_freertos".
Installed the latest MCUXpresso 11.6.1 IDE and 2.12.0 SDK for LPCXpresso54628.
I right click project -> SDK Management -> Refresh SDK Components -> OK.
I keep the default FreeRTOS configuration with memory management option 3.
I fix the "heap_3.c" source file to be included in the build and delete the rest of the "heap_x.c" files.
After building the project I get the error:
c:/nxp/mcuxpressoide_11.6.1_8255/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.1.202207200623/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/nxp/mcuxpressoide_11.6.1_8255/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.6.1.202207200623/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-noneeabi/lib/thumb/v7em+fp
/hard\libcr_nohost_nf.a(_cr__main.o): in function `__main':
_cr__main.c:(.text.__main+0xa): undefined reference to `main'
Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 10120 B 512 KB 1.93%
BOARD_FLASH: 0 GB 16 MB 0.00%
SRAM_UPPER: 27308 B 160 KB 16.67%
SRAMX: 0 GB 32 KB 0.00%
USB_RAM: 0 GB 8 KB 0.00%
BOARD_SDRAM: 0 GB 16 MB 0.00%
collect2.exe: error: ld returned 1 exit status
make[1]: *** [makefile:69: lpcxpresso54628_lwip_mqtt_freertos.axf] Error 1
make: *** [makefile:60: all] Error 2
"make -r -j12 all" terminated with exit code 2. Build might be incomplete.
09:45:54 Build Failed. 4 errors, 0 warnings. (took 5s.536ms)
This can be reproduced with the above minimal steps
I cannot seem to find any outstanding issues in the code itself, I've gone through comparing the libraries and source files to catch any differences but they are the same.
What could be the issue? Any help would be much appreciated!
Regards,
Adam