Hi everyone, I'm doing my first steps with MQX 3.6.1 and I have problems when I want to configurate my tasks in round robin schedule.
解決済! 解決策の投稿を見る。
Hi JuroV, Thank you for your anwer.
Matt
Use (MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK) instead of just MQX_AUTO_START_TASK as parameter in the first task.
Hi Frederico, thank you for your answer. I tryed with the line that you recommended me, but nothing different has occured...
Did you fix the problem with (MQX_AUTO_START_TASK | MQX_TIME_SLICE_TASK) in the first task??
It looks like MQX doesn't know the MACRO MQX_TIME_SLICE_TASK (I belive that) but in user_config.h I have the macro MQX_HAS_TIME_SLICE 1, then in mqx.h appears these lines
So, there aren't any problem when I compile the project...
Thanks
Matt
Change the last item of task template for time slice to 10 for both tasks (you have set only one task's time slice value).
If you have set MQX_HAS_TIME_SLICE in your user_config.h, then rebuilt BSP and PSP and then built your application, it should work.
JuroV
It have set MQX_HAS_TIME_SLICE in my user_config.h then I rebuild BSP and PSP then my project, but anything has been happened.
How do I suppose to do for rebuild BSP and PSP? Because my way to rebuild these kernels are, modify user_config.h of TWR-51CN, then open bsp_twrmcf51cn (inside of ...\Freescale MQX 3.6\mqx\build\cwmcu63) => rebuild it, then open psp_twrmcf51cn and rebuild again... But in this way I didn't have changes on the results.
I don't know, I reintalled MQX3.6 too... It is simple, it should work as you said me.
Matt
Of course you have to rebuild BSP and PSP, when your changes have impact to the kernel. The result from BSP and PSP is after build-phase copied to the lib/<your_board>.cw/mqx
You should find there user_config.h with modified value of MQX_HAS_TIME_SLICE (your copied user_config.h). If not, you did not properly build your BSP and PSP.
Hi JuroV, Thank you for your anwer.
Matt