FreeRTOS Exercise Lab01

From EdWiki

Revision as of 09:10, 1 August 2019 by Jshankar (Talk | contribs)

FreeRTOS Lab 01

  1. Create a CCS Project using FreeRTOS Project Template
  2. Add printf-stdarg.c file to project (Project > Add Files ...)
  3. Initialize UART0 for 115,200 baud rate (assuming 16 MHz bus clock), 8 bit word length, no parity bits, one stop bit, FIFOs enabled. (UART0 Echo Source Code is available here)
  4. Create two tasks (vTask1 and vTask2) with equal priorities. vTask1 should display the string "Task 1 is Running ..." and vTask2 should display the string "Task 2 is Running ...".
  5. After Displaying the string, introduce a small (crude) Delay;
for( auto uint32_t ul = 0; ul < 3180; ul++ );
  1. Observe which Tasks strings Displayed and Why?
  2. Change Tasks priorities and Observe
  3. Replace the above crude delay with vTaskDelay function and Observe.