LOSTISLAND
Member level 3
Hi all ,
It’s my first experience with RTOS ,
I’m completely familiar with RTOS (Tasks , priorities , semaphor , mutex , priority inversion , message boxs , Interrupt handling …) but as far as I haven’t actually had any experience with that I need your help .
I don’t want to make another mistake like I’ve made so far in non OS programming strategy .
Concerning non OS programming strategy :
As a matter of fact it’s just 6 months I’ve became familiar with State Machine strategy . by the time ,
I had never heard of it . I usually used some flags that got invoked when needed but when the program grew larger these flags got somewhat confusing . when I had to implement ISO15765 protocol I found out I need something more than these flags and decided to have some states .
Now , in my latest project , I have some main states and from these states , some have some sub states , _S indicates State and _SS indicates sub state . As a result with a quick look you can trace the program and Main loop isn’t more than 30 lines while the program code in more than 3000 lines .
Unfortunately It was too late to reach to this simple point after 6 years of programming .
if 6 years ago someone had taught that simple matter to me , I woud have had another 6 years .
Now I’m on the eve of RTOS . As I said I don’t want to make another funny mistake like that .
I’m completely familiar with RTX/OS and somewhat with Uc/OS .
Now , I have a project which has Ethernet , CAN , TFT , MMC/SD , Digital and Analog IO’s , … .
Just Ethernet program I’m going to embed in my RTX program has got several states and is somewhat a huge program by itself .
I’ve finished Ethernet , CAN , TFT , MMC , … Program separately (Without RTOS) and want to combine all of these into one RTX program using UVision4 .
The microcontroller is from LPC17xx family .
Any idea , strategy , help , … ?
Thanks in advanced
It’s my first experience with RTOS ,
I’m completely familiar with RTOS (Tasks , priorities , semaphor , mutex , priority inversion , message boxs , Interrupt handling …) but as far as I haven’t actually had any experience with that I need your help .
I don’t want to make another mistake like I’ve made so far in non OS programming strategy .
Concerning non OS programming strategy :
As a matter of fact it’s just 6 months I’ve became familiar with State Machine strategy . by the time ,
I had never heard of it . I usually used some flags that got invoked when needed but when the program grew larger these flags got somewhat confusing . when I had to implement ISO15765 protocol I found out I need something more than these flags and decided to have some states .
Now , in my latest project , I have some main states and from these states , some have some sub states , _S indicates State and _SS indicates sub state . As a result with a quick look you can trace the program and Main loop isn’t more than 30 lines while the program code in more than 3000 lines .
Unfortunately It was too late to reach to this simple point after 6 years of programming .
if 6 years ago someone had taught that simple matter to me , I woud have had another 6 years .
Now I’m on the eve of RTOS . As I said I don’t want to make another funny mistake like that .
I’m completely familiar with RTX/OS and somewhat with Uc/OS .
Now , I have a project which has Ethernet , CAN , TFT , MMC/SD , Digital and Analog IO’s , … .
Just Ethernet program I’m going to embed in my RTX program has got several states and is somewhat a huge program by itself .
I’ve finished Ethernet , CAN , TFT , MMC , … Program separately (Without RTOS) and want to combine all of these into one RTX program using UVision4 .
The microcontroller is from LPC17xx family .
Any idea , strategy , help , … ?
Thanks in advanced