I imported the demo_frdmk22f example from KSKD 1.2. I compiled the libraries, but when I compile the demo project, I get the following errors:
#error LOG component is currently disabled in MQX kernel. Please set MQX_USE_LOGS to 1 in mqx_sdk_config.h and recompile kernel.
#error SEMAPHORE component is currently disabled in MQX kernel. Please set MQX_USE_SEMAPHORES to 1 in mqx_sdk_config.h and recompile kernel.
#error This application requires MQX_HAS_TIME_SLICE defined non-zero in mqx_sdk_config.h. Please recompile kernel with this option.
However, making the changes and recompiling the libraries and the demo does not fix the errors.
Solved! Go to Solution.
Sorry folks, 'beginner' mistake.
I tried to set those flags in mxq_sdk_config.h by adding the lines
#ifndef MQX_...
#define MQX_... 1
#endif
The correct way was putting the line
#define MQX_... 1
at the beginning of the file before the first #include.
Hello Michael,
many thanks for this report.
Please, what example are you trying to flash?
Have you tried to import the project as .wsd file?
Please, delete the project from the workspace and Import example in KDS
after that please try to debug firstly all libraries and at the final the project.
Thank you,
Best Regards,
Iva
Sorry folks, 'beginner' mistake.
I tried to set those flags in mxq_sdk_config.h by adding the lines
#ifndef MQX_...
#define MQX_... 1
#endif
The correct way was putting the line
#define MQX_... 1
at the beginning of the file before the first #include.