Problem compiling demo_frdmk22f with KDS3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem compiling demo_frdmk22f with KDS3

Jump to solution
506 Views
michaelhuslig
Contributor IV

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.

Labels (1)
0 Kudos
1 Solution
377 Views
michaelhuslig
Contributor IV

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.

View solution in original post

0 Kudos
2 Replies
377 Views
ivadorazinova
NXP Employee
NXP Employee

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

wsd.png

wsd_2.png

wsd3.png

after that please try to debug firstly all libraries and at the final the project.

Thank you,

Best Regards,

Iva

0 Kudos
378 Views
michaelhuslig
Contributor IV

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.

0 Kudos