Problem compiling demo_frdmk22f with KDS3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem compiling demo_frdmk22f with KDS3

跳至解决方案
1,089 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
960 次查看
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 项奖励
回复
2 回复数
960 次查看
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 项奖励
回复
961 次查看
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 项奖励
回复