With the reference of renesas v850 port, we have ported RTOS for RH850.We have tested the tick freq. by toggling the led in the task using vTaskDelay function on oscilloscope.
Now we want to verify and validate our porting.
Is there any test code sequence for testing? or How to verify that the other functionallity of FreeRTOS?
I recommend the following three things.
1) Register test tasks
These fill the registers with known values, then continuously check each
register still contains its expected value while a soak test is running.
Each register uses a different value, and at least one of the register
test tasks should yield. Run the tasks at the lowest priority. Examples:
2) Run the interrupt nesting demo:
Which requires you to provide a port specific implementation of a few
functions that set up at least two, ideally three, hardware timers with
their appropriate interrupt handlers. You can copy examples from the
existing code (examples here chosen at random, there are lots of examples):
3) Run as many examples as you can, especially the newer examples for
things like task notifications, these are really test functions. Here
you can copy many of the 'full demo' configurations. They start loads
of examples then have a 'check' task ensure they are still functioning
correctly - all the while there are the interrupt nesting tests running.
Ensure that the interrupt nesting depth reaches at least 3. There are
some macros you can define in the code to insert null loop delays to
ensure code coverage - but generally doing all this together gives you
90+ % coverage without the delays. Example:
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.