NOTICE: The Processors Wiki will End-of-Life in December of 2020. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
SYS/BIOS Training Lab: Mailbox App
This lab is designed to introduce users to some of the concepts of using the SYS/BIOS RTOS.
The project set available for download from this page is called Mailbox. This includes an incomplete project for users to add code per the lab's instructions, and a completed solution project in which all of the code has already been added. To get the most out of using this material, we suggest you start with the incomplete project and attempt to walk through the exercise yourself, using the completed solution project to check your work at the end.
These labs are designed to work on the MSP430 using:
- MSP430F5438A device
- MSP-EXP430F5438 Experimenter Board
- Code Composer Studio v4.x
- MSP-FET430UIF emulator
- Investigate Task and Task communication concepts
- Enable some SYS/BIOS instrumentation
- Inspect, build, and run the mailbox project; verify the expected output.
- Add a call to “Task_setPri(reader0, 2);” in main(), before BIOS_start().
- Rebuild, load, and set breakpoints at symbols “readerActive” and “writerActive’; run between breakpoints, use ROV to inspect Task and Mailbox objects.
- With a text editor, open the file mailbox_configuration.cfg, change the ‘Instrumentation’ flag to true, rebuild and run.
- In ROV, browse to xdc.runtime.LoggerBuf, click the ‘Records’ tab, and then the numeric value; inspect the Task switch Log records.
- Can you explain the change the behavior when the reader task priority was increased?
- When stopped at “writerActive”, what is the reader task blocked on?
- There is one timer object. What is it used for?
- What was the peak stack usage by the reader task?
- In the Log records, what do the numeric values for LM_switch represent?