Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Introduction Embedded systems are microcontroller or microprocessor based have enough computing power to execute many tasks concurrently. However, concurrently doesn't mean parallel execution but

1 Introduction
Embedded systems are microcontroller or microprocessor based have enough computing power to execute
many tasks concurrently. However, concurrently doesn't mean parallel execution but the execution of
many tasks with their given time constraints. In some of these systems the constraints are critical in
others are not, which results in hard real time and soft real time systems, respectively. In order to execute
all the tasks at their specified time according to the requirement of the system, a scheduler is needed to
partition the processor time for all the tasks. Many real-time operating systems RTOS are available with
their scheduler such as FreeRTOS which can be ported to many targets, such as STM32 Nucleo boards.
FreeRTOS scheduler is preemptive and fixed-priority based where the priorities are assigned to the tasks
at the initialization.
2 The requirements
In this assignment, it is required to implement a multi-task RT embedded system on a single processor
STM32 Nucleo board (namely the NucleoF401RE) on which FreeRTOS OS should be running. The list
of task with their priorities should be executed as shown in the table below.
This assignment can be done individually or in groups of two. Use STM32 Cube IDE as a development
environment.
3 procedure
Install the STM32 cube IDE on your computer or use the one already installed on the lab computers.
The SW is a free one.
Check first the schedulability if the following list of tasks
The slowest task is a UART task where 2 numbers should be sent to the terminal of the host computer
to be monitored.
Define a global array of size 50 to be used as a common memory resource between the tasks. The fastest task i.e. task c generate a sequence of 50 random numbers (you may benefit from the
example of code snippet given below ). The 50 numbers should be passed to the task b using a
Mutexe so that no other task can change the global array before filling it completely by the task c.
In task b the average will be found and passed to task a through another global array of size two.
The task a then sends the two average temperatures to the terminal using the UART for moni-
toring. Along with this operation the task should toggle the green LED on the board each time the
task is executed.
For each one of the tasks b and c define a GPIO (output) to show the start and the end of the task
execution as follows. When the task starts to execute the GPIO is SET and whe the execution is
finished the GPIO is RESET. This will help with the use of an oscilloscope to observe the different
task execution times Ci.4 Deliverable
In a report, explain the procedure you followed and the results you obtained.
Show the figures of the scheduler test with the oscilloscope.
From the oscilloscope monitoring, show how much processor power is used?
show a snapshot of the terminal where the average temperature is monitored. In this assignment, it is required to implement a multi-task RT embedded system on a single processor on
which Arduino OS should be running. The list
of task with their priorities should be executed as shown in the table below.
The slowest task is a UART task where 2 numbers should be sent to the terminal of the host computer
to be monitored.
Define a global array of size 50 to be used as a common memory resource between the tasks.
The fastest task i.e. task c generate a sequence of 50 random numbers (you may benefit from the
example of code snippet given below ). The 50 numbers should be passed to the task b using a
Mutexe so that no other task can change the global array before filling it completely by the task c.
In task b the average will be found and passed to task a through another global array of size two.
The task a then sends the two average temperatures to the terminal using the UART for monitoring.
Along with this operation the task should toggle the green LED on the board each time the
task is executed.
For each one of the tasks b and c define a GPIO (output) to show the start and the end of the task
execution as follows. When the task starts to execute the GPIO is SET and when the execution is
finished the GPIO is RESET. This will help with the use of an oscilloscope to observe the different
task execution times Ci
NOTE : write the code with thies requirments but for arduino IDE, in order to run with ONU bord
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions

Question

Will you be able to pay your bills?

Answered: 1 week ago

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

4 Name four appraisal methods.

Answered: 1 week ago

Question

8 What problems can occur with appraisal?

Answered: 1 week ago