Jump to content
Rei Vilo

[Energia Library] RTOS Libraries for MSP432 on Energia MT

Recommended Posts

I am unable to compile the "Task Library" and "Timer Library" examples for Redbearlab WiFi mini EMT. It can not find the timer.h files. Do we have to something extra (add some files) to compile these example? Also what are the time limitations for Redbearlab WiFi mini EMT?

 

I haven't tested the RBL WiFi mini. I targeted the MSP42 and CC3200 LaunchPads.

Share this post


Link to post
Share on other sites

I've submitted three projects at Hackters.io about Energia Multi-Tasking and the Galaxia library.

 
5a454fad4622e_Capture2017-12-2821_07_10.png.4876a9a2b96fccf6f46ecf79824f5d48.png
How to run multiple tasks on a LaunchPad? We're using two different solutions, one standard and another based on the Galaxia library. By Rei Vilo . 

 

 
 
5a454fb3eb603_Capture2017-12-2821_07_32.png.523b106e42680daada56c3fb8c6d5b78.png
How to manage a single resource across multiple tasks? Semaphores come to the rescue. By Rei Vilo . 
 
 
 
5a454fb07d30e_Capture2017-12-2821_07_22.png.bba8ec7424916c2f1b31b91f14c4b58b.png
How to send data across tasks? Mailbox can help! By Rei Vilo . 
 
Feel free to click on Respect Project!

Share this post


Link to post
Share on other sites

I've just released version 2.0.1 of the Galaxia library.

 

I've updated the Galaxia library to release 2.0.1 with revised and better examples after feed-back from Hacksters.io
 
The library comes with an umbrella file Galaxia.h for an easier #include1
#include "Galaxia.h"
Because SWI has been removed from RTOS for Energia MT 0101E0017, SWI And SWITrigger are no longer operational.

Find more at https://github.com/rei-vilo/GalaxiaLibrary.

Share this post


Link to post
Share on other sites

Thanks a lot for this library, it simplifies everything !

 

Just a small interrogation I did not get the implication of this comment:

 

Because SWI has been removed from RTOS for Energia MT 0101E0017, SWI And SWITrigger are no longer operational.

 

 

I could not find the rationale behind that (as well as any clue about when the SWI removal in Energia's github). Does that means that I should also stop using SWIs in my code using Energia?

Share this post


Link to post
Share on other sites

I don't have any use cases in mind, but I had the following mental model:

 

Hardware interrupt handled in a HWI whose role is to simply trigger a SWI that then handles whatever need to be done to handle the interrupt.

 

But if it's a good practice to bypass the SWI, I'm fine with it :)

Share this post


Link to post
Share on other sites

Hardware interrupt handled in a HWI whose role is to simply trigger a SWI that then handles whatever need to be done to handle the interrupt.

 

I've been taught the same procedure.

 

LEt's wait and see what Energia decides!

Share this post


Link to post
Share on other sites

I'm new to msp432 , and thanks to you things are a lot more simpler.Is there a frequency counter library available? Or how can I implement frequency counting precisely in 0-100 Hz range for square wave i/p in msp432? 

Share this post


Link to post
Share on other sites

First of all, welcome to the forum.

 

You may find better success with your question if you start a new post rather than adding to a post that is 9 months old. As to your question you may want to try searching this site for previous posts on implementing a frequency counter. If you can't find what you are looking for then please start a new post and I am sure that someone will be able to help you out.

Share this post


Link to post
Share on other sites

The RTOS elements implemented by Energia MT vary according to the distribution. Some elements are no longer supported, other elements disappear then come back.

Please refer to 

  1. Clock recommended over Timer

Please note this is a work in progress. Some libraries may be available only as pull requests awaiting validation at the Energia GitHub repository. Other may be unstable and not fully tested, especially under critical conditions. Lastly, some RTOS elements may have been removed from the last distribution of Energia MT.

 More broadly, How-To: Porting Libraries, Some Misconceptions about Libraries and Posting a Library for Energia may help you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×