ColdFire_Lite_DEMO and create_freescale_task() problem, but not with precompiled binary

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

ColdFire_Lite_DEMO and create_freescale_task() problem, but not with precompiled binary

1,083 Views
michal_d
Contributor I

Hello,
 I have a problem with ColdFire_Lite_DEMO project using InterNiche which is included in M52233DEMO kit. There is project directory with several targets (Web server, TCP/UDP client/server ...). I am using CW 7.0, there is no problem to compile it. There is also precompiled binary S-file called M52233DEMO_Board_Flash_Image_s19.s19. If I download it to board, there is web server running.
 I assumed, that this precompiled S-file should has the same behavior as Web server target from demo project directory. But it is not. There is problem with tasks created by create_freescale_task() which has NET_PRIORITY priority and does not work correctly - when in sleeping state consume most of the time of system and the rest of tasks (e.g. console) is almost frozen. When new tasks goes back to ready state (in web server case keep-alive expires), everything is OK again.
 It's look like that it's sensitive to priority of new tasks even the fact that I found in documentation that priority is not used when creating new tasks.
 I did not make any changes to project and targets.

 Does anybody have similar problem?

 thank you, Michal

Labels (1)
0 Kudos
Reply
1 Reply

373 Views
michal_d
Contributor I
Hello,
 I have solved this problem - there was used tk_sleep() instead of tk_yield(). Now it's work very well. I don't know why there is this problem in demo project.
 Or may be it was another problem and I was doing something wrong ...
 
M.
 
 
 
0 Kudos
Reply