- create thread which make series of calculation on  unsigned long array (global), when all calculation are performed increase counter (unsigned long). Repeate whole proces again, and again…
- create higher priority thread which preempt “calculation” thread after 15 seconds (using vTaskDelay).
Hello all, I’m making series of tests for FreeRTOS and other RTOSs. One of the test look like this:
I would expect the difference to be negligible. Can you show the code that calculates the delay time. Also can you verify the tick rate you think you are getting is the tick rate you actually get by viewing the xTickCount variable in task.c or using a scope as it may be in the strange cases the processor is just continuously reentering an interrupt. Regards.
Hi, I simply used vTaskDelay((seconds * configTICKRATEHZ)) since define portTICKPERIODMS ( ( TickTypet ) 1000 / configTICKRATE_HZ ). I print the value of xTaskGetTickCount(), after higher priority thread wakes ups: 1000 Hz: 1 wake up: 15000 ticks 2 wake up: 30039 ticks (those 39 ticks is okay to me, since after wake up, task prints all test results to LCD screen; after printing goes to sleep again) 3 wake up: 45078 ticks 250 Hz: 1 wake up: 3750 ticks 2 wake up: 7510 ticks 3 wake up: 11270 ticks 100 Hz: 1 wake up: 1500 ticks 2 wake up: 3004 ticks 3 wake up: 4508 ticks From my POV values are correct. I put the code of tasks here: http://textuploader.com/z2uc
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.