The TWR-K60N512 Quick Start Demo runs fine in CW10.1 and using MQX 3.7, but produces many compile errors in CW10.4 using MQX 4.0 apparently because expected library file paths have changed in MQX. Does anyone have a port of the TWR-K60N512 QSD project for MQX 4.0? Thanks.
Solved! Go to Solution.
Right, now the paths include "debug" or "release". Attached is the TWR-K60N512_Quick_Start_Demo project for CodeWarrior, migrated in such a way, that it can build with MQX 4.0.1. Also attaching user_config.h for twrk60n512 BSP. This project builds with CW 10.4 and MQX 4.0.1.
Right, now the paths include "debug" or "release". Attached is the TWR-K60N512_Quick_Start_Demo project for CodeWarrior, migrated in such a way, that it can build with MQX 4.0.1. Also attaching user_config.h for twrk60n512 BSP. This project builds with CW 10.4 and MQX 4.0.1.
Hi Martin, I imported your demo into CW10.4 and MQX4.0.1 but I got the following errors:-
Any suggestions where I could have gone wrong?
Hello Chee Boon Lim,
please always provide the console output (with an error, not entire text which can be long sometimes). Can you "decrypt" anything from the picture you attached? I definitely don't.
Regards,
0xc0170
Hi, you don't have. This is the error message from the console output:
=#error This application requires BSPCFG_ENABLE_ESDHC defined non-zero in user_config.h. Please recompile libraries with this option.
Errors caused tool to abort.
mingw32-make: *** [Sources/SDCard_Task_c.obj] Error 1
>preprocessor #error directive
You have to build the BSP project first (as part of BSP library post build action, user_config.h is copied from the /mqx/source/bsp to the /lib). Then build the MQX application.
Thanks Martin.
Hmm, the error messages are not very helpful. Since the compilation error is with the SDCard_Task.c, do you enable BSPCFG_ENABLE_ESDHC in your user_config.h ?
To get better error messages, please use the right error parser - that is configured in the options of your project, in C/C++Build -> Settings -> Error Parsers. Make sure that "CDT GNU Make Error Parser 7.0" checkbox is checked. Hope this helps to get more meaningfull error messages - see also the "Console" tab.
It all works fine in CW10.4 and MQX 4.0, thank you Martin. If there are any docs/app-notes on porting older projects to the latest CW for MCU and MQX tools, please let me know. Thanks!