diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/.gitignore b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/.gitignore new file mode 100644 index 0000000000..22d8c5505a --- /dev/null +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/.gitignore @@ -0,0 +1,4 @@ +settings/ +Debug/ +*.ewt +*.dep diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/FreeRTOSConfig.h b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/FreeRTOSConfig.h index 244639bacf..c88047a942 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/FreeRTOSConfig.h @@ -20,7 +20,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org - * https://aws.amazon.com/freertos + * https://github.com/FreeRTOS * */ @@ -39,64 +39,68 @@ * See http://www.freertos.org/a00110.html. *----------------------------------------------------------*/ -#define configISR_STACK_SIZE_WORDS ( 200 ) -#define CLINT_CTRL_ADDR ( 0x02000000UL ) -#define configMTIME_BASE_ADDRESS ( CLINT_CTRL_ADDR + 0xBFF8UL ) -#define configMTIMECMP_BASE_ADDRESS ( CLINT_CTRL_ADDR + 0x4000UL ) +#define configISR_STACK_SIZE_WORDS ( 200 ) +#define CLINT_CTRL_ADDR ( 0x02000000UL ) +#define configMTIME_BASE_ADDRESS ( CLINT_CTRL_ADDR + 0xBFF8UL ) +#define configMTIMECMP_BASE_ADDRESS ( CLINT_CTRL_ADDR + 0x4000UL ) -#define configUSE_PREEMPTION 1 -#define configUSE_IDLE_HOOK 0 -#define configUSE_TICK_HOOK 1 -#define configCPU_CLOCK_HZ ( ( uint32_t ) ( 32768 ) ) -#define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) -#define configMAX_PRIORITIES ( 7 ) -#define configMINIMAL_STACK_SIZE ( ( uint32_t ) 100 ) /* Can be as low as 60 but some of the demo tasks that use this constant require it to be higher. */ -#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 12 * 1024 ) ) -#define configMAX_TASK_NAME_LEN ( 16 ) -#define configUSE_TRACE_FACILITY 0 -#define configUSE_16_BIT_TICKS 0 -#define configIDLE_SHOULD_YIELD 0 -#define configUSE_MUTEXES 1 -#define configQUEUE_REGISTRY_SIZE 8 -#define configCHECK_FOR_STACK_OVERFLOW 2 -#define configUSE_RECURSIVE_MUTEXES 1 -#define configUSE_MALLOC_FAILED_HOOK 1 -#define configUSE_APPLICATION_TASK_TAG 0 -#define configUSE_COUNTING_SEMAPHORES 1 -#define configGENERATE_RUN_TIME_STATS 0 +#define configUSE_PREEMPTION 1 +#define configUSE_IDLE_HOOK 0 +#define configUSE_TICK_HOOK 1 +#define configCPU_CLOCK_HZ ( ( uint32_t ) ( 32768 ) ) +#define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) +#define configMAX_PRIORITIES ( 7 ) +#define configMINIMAL_STACK_SIZE ( ( uint32_t ) 100 ) /* Can be as low as 60 but some of the demo tasks that use this constant require it to be higher. */ +#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 12 * 1024 ) ) +#define configMAX_TASK_NAME_LEN ( 16 ) +#define configUSE_TRACE_FACILITY 0 +#define configUSE_16_BIT_TICKS 0 +#define configIDLE_SHOULD_YIELD 0 +#define configUSE_MUTEXES 1 +#define configQUEUE_REGISTRY_SIZE 8 +#define configCHECK_FOR_STACK_OVERFLOW 2 +#define configUSE_RECURSIVE_MUTEXES 1 +#define configUSE_MALLOC_FAILED_HOOK 1 +#define configUSE_APPLICATION_TASK_TAG 0 +#define configUSE_COUNTING_SEMAPHORES 1 +#define configGENERATE_RUN_TIME_STATS 0 /* Co-routine definitions. */ -#define configUSE_CO_ROUTINES 0 -#define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) +#define configUSE_CO_ROUTINES 0 +#define configMAX_CO_ROUTINE_PRIORITIES ( 2 ) /* Software timer definitions. */ -#define configUSE_TIMERS 1 -#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 4 -#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE ) +#define configUSE_TIMERS 1 +#define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define configTIMER_QUEUE_LENGTH 4 +#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE ) /* Task priorities. Allow these to be overridden. */ #ifndef uartPRIMARY_PRIORITY - #define uartPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 ) + #define uartPRIMARY_PRIORITY ( configMAX_PRIORITIES - 3 ) #endif /* Set the following definitions to 1 to include the API function, or zero -to exclude the API function. */ -#define INCLUDE_vTaskPrioritySet 1 -#define INCLUDE_uxTaskPriorityGet 1 -#define INCLUDE_vTaskDelete 1 -#define INCLUDE_vTaskCleanUpResources 1 -#define INCLUDE_vTaskSuspend 1 -#define INCLUDE_vTaskDelayUntil 1 -#define INCLUDE_vTaskDelay 1 -#define INCLUDE_eTaskGetState 1 -#define INCLUDE_xTimerPendFunctionCall 1 -#define INCLUDE_xTaskAbortDelay 1 -#define INCLUDE_xTaskGetHandle 1 -#define INCLUDE_xSemaphoreGetMutexHolder 1 + * to exclude the API function. */ +#define INCLUDE_vTaskPrioritySet 1 +#define INCLUDE_uxTaskPriorityGet 1 +#define INCLUDE_vTaskDelete 1 +#define INCLUDE_vTaskCleanUpResources 1 +#define INCLUDE_vTaskSuspend 1 +#define INCLUDE_vTaskDelayUntil 1 +#define INCLUDE_vTaskDelay 1 +#define INCLUDE_eTaskGetState 1 +#define INCLUDE_xTimerPendFunctionCall 1 +#define INCLUDE_xTaskAbortDelay 1 +#define INCLUDE_xTaskGetHandle 1 +#define INCLUDE_xSemaphoreGetMutexHolder 1 /* Normal assert() semantics without relying on the provision of an assert.h -header file. */ -#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); __asm volatile( "ebreak" ); for( ;; ); } + * header file. */ +#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); __asm volatile( "ebreak" ); for( ;; ); } + +/* Map to the platform write function. */ +extern void vSendString( const char * const pcString ); +#define configPRINT_STRING( pcString ) vSendString( pcString ) #endif /* FREERTOS_CONFIG_H */ diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewd b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewd index df425bfb06..f9e73bae53 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewd +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewd @@ -9,7 +9,7 @@ 1 C-SPY - 2 + 5 1 1 @@ -172,11 +172,48 @@ + + RISCVGDBSERV + 1 + + 0 + 1 + 1 + + + + + + + + + IJETRISCV 2 - 1 + 2 1 1 + SIMRISCV - 2 + 5 0 1 @@ -400,6 +441,31 @@ + + THIRDPARTY_ID + 2 + + 0 + 1 + 1 + + + + + + $TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin @@ -431,7 +497,7 @@ 0 C-SPY - 2 + 5 1 1 @@ -594,11 +660,48 @@ + + RISCVGDBSERV + 1 + + 0 + 1 + 0 + + + + + + + + + IJETRISCV 2 - 1 + 2 1 0 + SIMRISCV - 2 + 5 0 1 @@ -822,6 +929,31 @@ + + THIRDPARTY_ID + 2 + + 0 + 1 + 0 + + + + + + $TOOLKIT_DIR$\plugins\rtos\OpenRTOS\OpenRTOSPlugin.ewplugin diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewp b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewp index b581f5371e..da551e0062 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewp +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewp @@ -9,11 +9,15 @@ 1 General - 2 + 5 - 0 + 6 1 1 + - - - - - + + + + + + + + + + + + + + + + + + + ICCRISCV - 2 + 5 - 6 + 7 1 1 - - - IASMRISCV - 2 + 5 0 1 @@ -500,7 +545,7 @@ OBJCOPY - 2 + 5 0 1 @@ -535,13 +580,9 @@ 0 + inputOutputBased - - BICOMP - 0 - - BUILDACTION 1 @@ -552,19 +593,15 @@ ILINK - 2 + 5 - 1 + 7 1 1 - - - + + + + + + + + + + + IARCHIVE - 2 + 5 0 1 @@ -885,11 +958,6 @@ - - BILINK - 0 - - Release @@ -899,18 +967,22 @@ 0 General - 2 + 5 - 0 + 6 1 0 + - - - - - + + + + + + + + + + + + + + + + + + + ICCRISCV - 2 + 5 - 6 + 7 1 0 - - - IASMRISCV - 2 + 5 0 1 @@ -1386,7 +1499,7 @@ OBJCOPY - 2 + 5 0 1 @@ -1421,13 +1534,9 @@ 0 + inputOutputBased - - BICOMP - 0 - - BUILDACTION 1 @@ -1438,19 +1547,15 @@ ILINK - 2 + 5 - 1 + 7 1 0 - - - + + + + + + + + + + + IARCHIVE - 2 + 5 0 1 @@ -1771,11 +1912,6 @@ - - BILINK - 0 - - blinky_demo diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewt b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewt deleted file mode 100644 index 030f81f83a..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/RTOSDemo.ewt +++ /dev/null @@ -1,2254 +0,0 @@ - - - 3 - - Debug - - RISCV - - 1 - - C-STAT - 262 - - 262 - - 0 - - 1 - 600 - 1 - 2 - 0 - 1 - 100 - - - 1.6.2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Release - - RISCV - - 0 - - C-STAT - 262 - - 262 - - 0 - - 1 - 600 - 1 - 2 - 0 - 1 - 100 - - - 1.6.2 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - blinky_demo - - $PROJ_DIR$\blinky_demo\main_blinky.c - - - - FreeRTOS_source - - include - - $PROJ_DIR$\..\..\Source\include\event_groups.h - - - $PROJ_DIR$\..\..\Source\include\message_buffer.h - - - $PROJ_DIR$\..\..\Source\include\queue.h - - - $PROJ_DIR$\..\..\Source\include\semphr.h - - - $PROJ_DIR$\..\..\Source\include\stream_buffer.h - - - $PROJ_DIR$\..\..\Source\include\task.h - - - $PROJ_DIR$\..\..\Source\include\timers.h - - - - portable - - memmang - - $PROJ_DIR$\..\..\Source\portable\MemMang\heap_4.c - - - - $PROJ_DIR$\..\..\Source\portable\IAR\RISC-V\port.c - - - $PROJ_DIR$\..\..\Source\portable\IAR\RISC-V\portASM.s - - - - $PROJ_DIR$\..\..\Source\event_groups.c - - - $PROJ_DIR$\..\..\Source\list.c - - - $PROJ_DIR$\..\..\Source\queue.c - - - $PROJ_DIR$\..\..\Source\stream_buffer.c - - - $PROJ_DIR$\..\..\Source\tasks.c - - - $PROJ_DIR$\..\..\Source\timers.c - - - - full_demo - - common - - $PROJ_DIR$\..\Common\Minimal\blocktim.c - - - $PROJ_DIR$\..\Common\Minimal\dynamic.c - - - $PROJ_DIR$\..\Common\Minimal\TaskNotify.c - - - $PROJ_DIR$\..\Common\Minimal\TimerDemo.c - - - - $PROJ_DIR$\full_demo\main_full.c - - - $PROJ_DIR$\full_demo\RegTest.s - - - - $PROJ_DIR$\FreeRTOSConfig.h - - - $PROJ_DIR$\main.c - - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/blinky_demo/main_blinky.c b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/blinky_demo/main_blinky.c index 458b65e323..766e896f8a 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/blinky_demo/main_blinky.c +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/blinky_demo/main_blinky.c @@ -20,7 +20,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org - * https://aws.amazon.com/freertos + * https://github.com/FreeRTOS * */ @@ -72,20 +72,20 @@ #include "queue.h" /* Priorities used by the tasks. */ -#define mainQUEUE_RECEIVE_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 ) -#define mainQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 ) +#define mainQUEUE_RECEIVE_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 ) +#define mainQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 ) /* The rate at which data is sent to the queue. The 200ms value is converted -to ticks using the pdMS_TO_TICKS() macro. */ -#define mainQUEUE_SEND_FREQUENCY_MS pdMS_TO_TICKS( 1000 ) + * to ticks using the pdMS_TO_TICKS() macro. */ +#define mainQUEUE_SEND_FREQUENCY_MS pdMS_TO_TICKS( 1000 ) /* The maximum number items the queue can hold. The priority of the receiving -task is above the priority of the sending task, so the receiving task will -preempt the sending task and remove the queue items each time the sending task -writes to the queue. Therefore the queue will never have more than one item in -it at any time, and even with a queue length of 1, the sending task will never -find the queue full. */ -#define mainQUEUE_LENGTH ( 1 ) + * task is above the priority of the sending task, so the receiving task will + * preempt the sending task and remove the queue items each time the sending task + * writes to the queue. Therefore the queue will never have more than one item in + * it at any time, and even with a queue length of 1, the sending task will never + * find the queue full. */ +#define mainQUEUE_LENGTH ( 1 ) /*-----------------------------------------------------------*/ @@ -110,33 +110,33 @@ static QueueHandle_t xQueue = NULL; void main_blinky( void ) { - /* Create the queue. */ - xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( uint32_t ) ); - - if( xQueue != NULL ) - { - /* Start the two tasks as described in the comments at the top of this - file. */ - xTaskCreate( prvQueueReceiveTask, /* The function that implements the task. */ - "Rx", /* The text name assigned to the task - for debug only as it is not used by the kernel. */ - configMINIMAL_STACK_SIZE * 2U, /* The size of the stack to allocate to the task. */ - NULL, /* The parameter passed to the task - not used in this case. */ - mainQUEUE_RECEIVE_TASK_PRIORITY, /* The priority assigned to the task. */ - NULL ); /* The task handle is not required, so NULL is passed. */ - - xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE * 2U, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL ); - - /* Start the tasks and timer running. */ - vTaskStartScheduler(); - } - - /* If all is well, the scheduler will now be running, and the following - line will never be reached. If the following line does execute, then - there was insufficient FreeRTOS heap memory available for the Idle and/or - timer tasks to be created. See the memory management section on the - FreeRTOS web site for more details on the FreeRTOS heap - http://www.freertos.org/a00111.html. */ - for( ;; ); + /* Create the queue. */ + xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( uint32_t ) ); + + if( xQueue != NULL ) + { + /* Start the two tasks as described in the comments at the top of this + ( file. */ + xTaskCreate( prvQueueReceiveTask, /* The function that implements the task. */ + "Rx", /* The text name assigned to the task - for debug only as it is not used by the kernel. */ + configMINIMAL_STACK_SIZE * 2U, /* The size of the stack to allocate to the task. */ + NULL, /* The parameter passed to the task - not used in this case. */ + mainQUEUE_RECEIVE_TASK_PRIORITY, /* The priority assigned to the task. */ + NULL ); /* The task handle is not required, so NULL is passed. */ + + xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE * 2U, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL ); + + /* Start the tasks and timer running. */ + vTaskStartScheduler(); + } + + /* If all is well, the scheduler will now be running, and the following + * line will never be reached. If the following line does execute, then + * there was insufficient FreeRTOS heap memory available for the Idle and/or + * timer tasks to be created. See the memory management section on the + * FreeRTOS web site for more details on the FreeRTOS heap + * http://www.freertos.org/a00111.html. */ + for( ;; ); } /*-----------------------------------------------------------*/ @@ -146,24 +146,24 @@ TickType_t xNextWakeTime; const unsigned long ulValueToSend = 100UL; BaseType_t xReturned; - /* Remove compiler warning about unused parameter. */ - ( void ) pvParameters; + /* Remove compiler warning about unused parameter. */ + ( void ) pvParameters; - /* Initialise xNextWakeTime - this only needs to be done once. */ - xNextWakeTime = xTaskGetTickCount(); + /* Initialise xNextWakeTime - this only needs to be done once. */ + xNextWakeTime = xTaskGetTickCount(); - for( ;; ) - { - /* Place this task in the blocked state until it is time to run again. */ - vTaskDelayUntil( &xNextWakeTime, mainQUEUE_SEND_FREQUENCY_MS ); + for( ;; ) + { + /* Place this task in the blocked state until it is time to run again. */ + vTaskDelayUntil( &xNextWakeTime, mainQUEUE_SEND_FREQUENCY_MS ); - /* Send to the queue - causing the queue receive task to unblock and - toggle the LED. 0 is used as the block time so the sending operation - will not block - it shouldn't need to block as the queue should always - be empty at this point in the code. */ - xReturned = xQueueSend( xQueue, &ulValueToSend, 0U ); - configASSERT( xReturned == pdPASS ); - } + /* Send to the queue - causing the queue receive task to unblock and + * toggle the LED. 0 is used as the block time so the sending operation + * will not block - it shouldn't need to block as the queue should always + * be empty at this point in the code. */ + xReturned = xQueueSend( xQueue, &ulValueToSend, 0U ); + configASSERT( xReturned == pdPASS ); + } } /*-----------------------------------------------------------*/ @@ -173,32 +173,30 @@ unsigned long ulReceivedValue; const unsigned long ulExpectedValue = 100UL; const char * const pcPassMessage = "Blink\r\n"; const char * const pcFailMessage = "Unexpected value received\r\n"; -extern void vSendString( const char * const pcString ); extern void vToggleLED( void ); - /* Remove compiler warning about unused parameter. */ - ( void ) pvParameters; - - for( ;; ) - { - /* Wait until something arrives in the queue - this task will block - indefinitely provided INCLUDE_vTaskSuspend is set to 1 in - FreeRTOSConfig.h. */ - xQueueReceive( xQueue, &ulReceivedValue, portMAX_DELAY ); - - /* To get here something must have been received from the queue, but - is it the expected value? If it is, toggle the LED. */ - if( ulReceivedValue == ulExpectedValue ) - { - vSendString( pcPassMessage ); - vToggleLED(); - ulReceivedValue = 0U; - } - else - { - vSendString( pcFailMessage ); - } - } + /* Remove compiler warning about unused parameter. */ + ( void ) pvParameters; + + for( ;; ) + { + /* Wait until something arrives in the queue - this task will block + * indefinitely provided INCLUDE_vTaskSuspend is set to 1 in + * FreeRTOSConfig.h. */ + xQueueReceive( xQueue, &ulReceivedValue, portMAX_DELAY ); + + /* To get here something must have been received from the queue, but + * is it the expected value? If it is, toggle the LED. */ + if( ulReceivedValue == ulExpectedValue ) + { + configPRINT_STRING( pcPassMessage ); + vToggleLED(); + ulReceivedValue = 0U; + } + else + { + configPRINT_STRING( pcFailMessage ); + } + } } /*-----------------------------------------------------------*/ - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/RegTest.s b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/RegTest.s index 89f0ffa9fc..0076d1d533 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/RegTest.s +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/RegTest.s @@ -20,246 +20,243 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org - * https://aws.amazon.com/freertos + * https://github.com/FreeRTOS * */ - EXTERN pulRegTest1LoopCounter - EXTERN pulRegTest2LoopCounter + EXTERN pulRegTest1LoopCounter + EXTERN pulRegTest2LoopCounter - PUBLIC vRegTest1Implementation - PUBLIC vRegTest2Implementation + PUBLIC vRegTest1Implementation + PUBLIC vRegTest2Implementation /*-----------------------------------------------------------*/ - SECTION `.text`:CODE:NOROOT(2) - CODE + SECTION `.text`:CODE:NOROOT(2) + CODE /* * The register check tasks are described in the comments at the top of * main_full.c. */ - ALIGN 8 + ALIGN 8 vRegTest1Implementation: - /* Fill the core registers with known values. */ - li x5, 0x5 - li x6, 0x6 - li x7, 0x7 - li x8, 0x8 - li x9, 0x9 - li x10, 0xa - li x11, 0xb - li x12, 0xc - li x13, 0xd - li x14, 0xe - li x15, 0xf - li x16, 0x10 - li x17, 0x11 - li x18, 0x12 - li x19, 0x13 - li x20, 0x14 - li x21, 0x15 - li x22, 0x16 - li x23, 0x17 - li x24, 0x18 - li x25, 0x19 - li x26, 0x1a - li x27, 0x1b - li x28, 0x1c - li x29, 0x1d - li x30, 0x1e + /* Fill the core registers with known values. */ + li x5, 0x5 + li x6, 0x6 + li x7, 0x7 + li x8, 0x8 + li x9, 0x9 + li x10, 0xa + li x11, 0xb + li x12, 0xc + li x13, 0xd + li x14, 0xe + li x15, 0xf + li x16, 0x10 + li x17, 0x11 + li x18, 0x12 + li x19, 0x13 + li x20, 0x14 + li x21, 0x15 + li x22, 0x16 + li x23, 0x17 + li x24, 0x18 + li x25, 0x19 + li x26, 0x1a + li x27, 0x1b + li x28, 0x1c + li x29, 0x1d + li x30, 0x1e reg1_loop: - /* Check each register still contains the expected known value. - vRegTest1Implementation uses x31 as the temporary, vRegTest2Implementation - uses x5 as the temporary. */ - li x31, 0x5 - bne x31, x5, reg1_error_loop - li x31, 0x6 - bne x31, x6, reg1_error_loop - li x31, 0x7 - bne x31, x7, reg1_error_loop - li x31, 0x8 - bne x31, x8, reg1_error_loop - li x31, 0x9 - bne x31, x9, reg1_error_loop - li x31, 0xa - bne x31, x10, reg1_error_loop - li x31, 0xb - bne x31, x11, reg1_error_loop - li x31, 0xc - bne x31, x12, reg1_error_loop - li x31, 0xd - bne x31, x13, reg1_error_loop - li x31, 0xe - bne x31, x14, reg1_error_loop - li x31, 0xf - bne x31, x15, reg1_error_loop - li x31, 0x10 - bne x31, x16, reg1_error_loop - li x31, 0x11 - bne x31, x17, reg1_error_loop - li x31, 0x12 - bne x31, x18, reg1_error_loop - li x31, 0x13 - bne x31, x19, reg1_error_loop - li x31, 0x14 - bne x31, x20, reg1_error_loop - li x31, 0x15 - bne x31, x21, reg1_error_loop - li x31, 0x16 - bne x31, x22, reg1_error_loop - li x31, 0x17 - bne x31, x23, reg1_error_loop - li x31, 0x18 - bne x31, x24, reg1_error_loop - li x31, 0x19 - bne x31, x25, reg1_error_loop - li x31, 0x1a - bne x31, x26, reg1_error_loop - li x31, 0x1b - bne x31, x27, reg1_error_loop - li x31, 0x1c - bne x31, x28, reg1_error_loop - li x31, 0x1d - bne x31, x29, reg1_error_loop - li x31, 0x1e - bne x31, x30, reg1_error_loop + /* Check each register still contains the expected known value. + * vRegTest1Implementation uses x31 as the temporary, vRegTest2Implementation + * uses x5 as the temporary. */ + li x31, 0x5 + bne x31, x5, reg1_error_loop + li x31, 0x6 + bne x31, x6, reg1_error_loop + li x31, 0x7 + bne x31, x7, reg1_error_loop + li x31, 0x8 + bne x31, x8, reg1_error_loop + li x31, 0x9 + bne x31, x9, reg1_error_loop + li x31, 0xa + bne x31, x10, reg1_error_loop + li x31, 0xb + bne x31, x11, reg1_error_loop + li x31, 0xc + bne x31, x12, reg1_error_loop + li x31, 0xd + bne x31, x13, reg1_error_loop + li x31, 0xe + bne x31, x14, reg1_error_loop + li x31, 0xf + bne x31, x15, reg1_error_loop + li x31, 0x10 + bne x31, x16, reg1_error_loop + li x31, 0x11 + bne x31, x17, reg1_error_loop + li x31, 0x12 + bne x31, x18, reg1_error_loop + li x31, 0x13 + bne x31, x19, reg1_error_loop + li x31, 0x14 + bne x31, x20, reg1_error_loop + li x31, 0x15 + bne x31, x21, reg1_error_loop + li x31, 0x16 + bne x31, x22, reg1_error_loop + li x31, 0x17 + bne x31, x23, reg1_error_loop + li x31, 0x18 + bne x31, x24, reg1_error_loop + li x31, 0x19 + bne x31, x25, reg1_error_loop + li x31, 0x1a + bne x31, x26, reg1_error_loop + li x31, 0x1b + bne x31, x27, reg1_error_loop + li x31, 0x1c + bne x31, x28, reg1_error_loop + li x31, 0x1d + bne x31, x29, reg1_error_loop + li x31, 0x1e + bne x31, x30, reg1_error_loop - /* Everything passed, increment the loop counter. */ - lw x31, pulRegTest1LoopCounter - lw x30, 0(x31) - addi x30, x30, 1 - sw x30, 0(x31) + /* Everything passed, increment the loop counter. */ + lw x31, pulRegTest1LoopCounter + lw x30, 0(x31) + addi x30, x30, 1 + sw x30, 0(x31) - /* Restore clobbered register reading for next loop. */ - li x30, 0x1e + /* Restore clobbered register reading for next loop. */ + li x30, 0x1e - /* Yield to increase code coverage. */ - ecall + /* Yield to increase code coverage. */ + ecall - /* Start again. */ - jal reg1_loop + /* Start again. */ + jal reg1_loop reg1_error_loop: - /* Jump here if a register contains an uxpected value. This stops the loop - counter being incremented so the check task knows an error was found. */ - ebreak - jal reg1_error_loop + /* Jump here if a register contains an uxpected value. This stops the loop + * counter being incremented so the check task knows an error was found. */ + ebreak + jal reg1_error_loop /*-----------------------------------------------------------*/ - ALIGN 8 + ALIGN 8 vRegTest2Implementation: - /* Fill the core registers with known values. */ - li x6, 0x61 - li x7, 0x71 - li x8, 0x81 - li x9, 0x91 - li x10, 0xa1 - li x11, 0xb1 - li x12, 0xc1 - li x13, 0xd1 - li x14, 0xe1 - li x15, 0xf1 - li x16, 0x20 - li x17, 0x21 - li x18, 0x22 - li x19, 0x23 - li x20, 0x24 - li x21, 0x25 - li x22, 0x26 - li x23, 0x27 - li x24, 0x28 - li x25, 0x29 - li x26, 0x2a - li x27, 0x2b - li x28, 0x2c - li x29, 0x2d - li x30, 0x2e - li x31, 0x2f + /* Fill the core registers with known values. */ + li x6, 0x61 + li x7, 0x71 + li x8, 0x81 + li x9, 0x91 + li x10, 0xa1 + li x11, 0xb1 + li x12, 0xc1 + li x13, 0xd1 + li x14, 0xe1 + li x15, 0xf1 + li x16, 0x20 + li x17, 0x21 + li x18, 0x22 + li x19, 0x23 + li x20, 0x24 + li x21, 0x25 + li x22, 0x26 + li x23, 0x27 + li x24, 0x28 + li x25, 0x29 + li x26, 0x2a + li x27, 0x2b + li x28, 0x2c + li x29, 0x2d + li x30, 0x2e + li x31, 0x2f Reg2_loop: - /* Check each register still contains the expected known value. - vRegTest2Implementation uses x5 as the temporary, vRegTest1Implementation - uses x31 as the temporary. */ - li x5, 0x61 - bne x5, x6, reg2_error_loop - li x5, 0x71 - bne x5, x7, reg2_error_loop - li x5, 0x81 - bne x5, x8, reg2_error_loop - li x5, 0x91 - bne x5, x9, reg2_error_loop - li x5, 0xa1 - bne x5, x10, reg2_error_loop - li x5, 0xb1 - bne x5, x11, reg2_error_loop - li x5, 0xc1 - bne x5, x12, reg2_error_loop - li x5, 0xd1 - bne x5, x13, reg2_error_loop - li x5, 0xe1 - bne x5, x14, reg2_error_loop - li x5, 0xf1 - bne x5, x15, reg2_error_loop - li x5, 0x20 - bne x5, x16, reg2_error_loop - li x5, 0x21 - bne x5, x17, reg2_error_loop - li x5, 0x22 - bne x5, x18, reg2_error_loop - li x5, 0x23 - bne x5, x19, reg2_error_loop - li x5, 0x24 - bne x5, x20, reg2_error_loop - li x5, 0x25 - bne x5, x21, reg2_error_loop - li x5, 0x26 - bne x5, x22, reg2_error_loop - li x5, 0x27 - bne x5, x23, reg2_error_loop - li x5, 0x28 - bne x5, x24, reg2_error_loop - li x5, 0x29 - bne x5, x25, reg2_error_loop - li x5, 0x2a - bne x5, x26, reg2_error_loop - li x5, 0x2b - bne x5, x27, reg2_error_loop - li x5, 0x2c - bne x5, x28, reg2_error_loop - li x5, 0x2d - bne x5, x29, reg2_error_loop - li x5, 0x2e - bne x5, x30, reg2_error_loop - li x5, 0x2f - bne x5, x31, reg2_error_loop + /* Check each register still contains the expected known value. + * vRegTest2Implementation uses x5 as the temporary, vRegTest1Implementation + * uses x31 as the temporary. */ + li x5, 0x61 + bne x5, x6, reg2_error_loop + li x5, 0x71 + bne x5, x7, reg2_error_loop + li x5, 0x81 + bne x5, x8, reg2_error_loop + li x5, 0x91 + bne x5, x9, reg2_error_loop + li x5, 0xa1 + bne x5, x10, reg2_error_loop + li x5, 0xb1 + bne x5, x11, reg2_error_loop + li x5, 0xc1 + bne x5, x12, reg2_error_loop + li x5, 0xd1 + bne x5, x13, reg2_error_loop + li x5, 0xe1 + bne x5, x14, reg2_error_loop + li x5, 0xf1 + bne x5, x15, reg2_error_loop + li x5, 0x20 + bne x5, x16, reg2_error_loop + li x5, 0x21 + bne x5, x17, reg2_error_loop + li x5, 0x22 + bne x5, x18, reg2_error_loop + li x5, 0x23 + bne x5, x19, reg2_error_loop + li x5, 0x24 + bne x5, x20, reg2_error_loop + li x5, 0x25 + bne x5, x21, reg2_error_loop + li x5, 0x26 + bne x5, x22, reg2_error_loop + li x5, 0x27 + bne x5, x23, reg2_error_loop + li x5, 0x28 + bne x5, x24, reg2_error_loop + li x5, 0x29 + bne x5, x25, reg2_error_loop + li x5, 0x2a + bne x5, x26, reg2_error_loop + li x5, 0x2b + bne x5, x27, reg2_error_loop + li x5, 0x2c + bne x5, x28, reg2_error_loop + li x5, 0x2d + bne x5, x29, reg2_error_loop + li x5, 0x2e + bne x5, x30, reg2_error_loop + li x5, 0x2f + bne x5, x31, reg2_error_loop - /* Everything passed, increment the loop counter. */ - lw x5, pulRegTest2LoopCounter - lw x6, 0(x5) - addi x6, x6, 1 - sw x6, 0(x5) + /* Everything passed, increment the loop counter. */ + lw x5, pulRegTest2LoopCounter + lw x6, 0(x5) + addi x6, x6, 1 + sw x6, 0(x5) - /* Restore clobbered register reading for next loop. */ - li x6, 0x61 + /* Restore clobbered register reading for next loop. */ + li x6, 0x61 - /* Start again. */ - jal Reg2_loop + /* Start again. */ + jal Reg2_loop reg2_error_loop: - /* Jump here if a register contains an uxpected value. This stops the loop - counter being incremented so the check task knows an error was found. */ - ebreak - jal reg2_error_loop + /* Jump here if a register contains an uxpected value. This stops the loop + * counter being incremented so the check task knows an error was found. */ + ebreak + jal reg2_error_loop /*-----------------------------------------------------------*/ - - - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/main_full.c b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/main_full.c index 8e138c00a8..fb4e9c85a8 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/main_full.c +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/full_demo/main_full.c @@ -20,7 +20,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org - * https://aws.amazon.com/freertos + * https://github.com/FreeRTOS * */ @@ -77,29 +77,31 @@ #include "TaskNotify.h" /* Priorities for the demo application tasks. */ -#define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) +#define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) /* The period of the check task, in ms, converted to ticks using the -pdMS_TO_TICKS() macro. mainNO_ERROR_CHECK_TASK_PERIOD is used if no errors have -been found, mainERROR_CHECK_TASK_PERIOD is used if an error has been found. */ -#define mainNO_ERROR_CHECK_TASK_PERIOD pdMS_TO_TICKS( 3000UL ) -#define mainERROR_CHECK_TASK_PERIOD pdMS_TO_TICKS( 500UL ) + * pdMS_TO_TICKS() macro. mainNO_ERROR_CHECK_TASK_PERIOD is used if no errors have + * been found, mainERROR_CHECK_TASK_PERIOD is used if an error has been found. */ +#define mainNO_ERROR_CHECK_TASK_PERIOD pdMS_TO_TICKS( 3000UL ) +#define mainERROR_CHECK_TASK_PERIOD pdMS_TO_TICKS( 500UL ) /* Parameters that are passed into the register check tasks solely for the -purpose of ensuring parameters are passed into tasks correctly. */ -#define mainREG_TEST_TASK_1_PARAMETER ( ( void * ) 0x12345678 ) -#define mainREG_TEST_TASK_2_PARAMETER ( ( void * ) 0x87654321 ) + * purpose of ensuring parameters are passed into tasks correctly. */ +#define mainREG_TEST_TASK_1_PARAMETER ( ( void * ) 0x12345678 ) +#define mainREG_TEST_TASK_2_PARAMETER ( ( void * ) 0x87654321 ) /* The base period used by the timer test tasks. */ -#define mainTIMER_TEST_PERIOD ( 50 ) +#define mainTIMER_TEST_PERIOD ( 50 ) /* The size of the stack allocated to the check task (as described in the -comments at the top of this file. */ -#define mainCHECK_TASK_STACK_SIZE_WORDS 100 + * comments at the top of this file. */ +#define mainCHECK_TASK_STACK_SIZE_WORDS 100 /* Size of the stacks to allocated for the register check tasks. */ -#define mainREG_TEST_STACK_SIZE_WORDS 70 +#define mainREG_TEST_STACK_SIZE_WORDS 70 +/* Success output messages. This is used by the CI - do not change. */ +#define mainDEMO_SUCCESS_MESSAGE "FreeRTOS Demo SUCCESS\r\n" /*-----------------------------------------------------------*/ /* @@ -133,9 +135,9 @@ void vFullDemoTickHook( void ); /*-----------------------------------------------------------*/ /* The following two variables are used to communicate the status of the -register check tasks to the check task. If the variables keep incrementing, -then the register check tasks have not discovered any errors. If a variable -stops incrementing, then an error has been found. */ + * register check tasks to the check task. If the variables keep incrementing, + * then the register check tasks have not discovered any errors. If a variable + * stops incrementing, then an error has been found. */ uint32_t ulRegTest1LoopCounter = 0UL, ulRegTest2LoopCounter = 0UL; volatile uint32_t *pulRegTest1LoopCounter = &ulRegTest1LoopCounter; volatile uint32_t *pulRegTest2LoopCounter = &ulRegTest2LoopCounter; @@ -143,39 +145,39 @@ volatile uint32_t *pulRegTest2LoopCounter = &ulRegTest2LoopCounter; void main_full( void ) { - /* Start all the other standard demo/test tasks. They have no particular - functionality, but do demonstrate how to use the FreeRTOS API and test the - kernel port. */ - vCreateBlockTimeTasks(); - vStartTimerDemoTask( mainTIMER_TEST_PERIOD ); - vStartDynamicPriorityTasks(); - vStartTaskNotifyTask(); - - /* Create the register check tasks, as described at the top of this file. - Use xTaskCreateStatic() to create a task using only statically allocated - memory. */ - xTaskCreate( prvRegTestTaskEntry1, /* The function that implements the task. */ - "Reg1", /* The name of the task. */ - mainREG_TEST_STACK_SIZE_WORDS, /* Size of stack to allocate for the task - in words not bytes!. */ - mainREG_TEST_TASK_1_PARAMETER, /* Parameter passed into the task. */ - tskIDLE_PRIORITY, /* Priority of the task. */ - NULL ); /* Can be used to pass out a handle to the created task. */ - xTaskCreate( prvRegTestTaskEntry2, "Reg2", mainREG_TEST_STACK_SIZE_WORDS, mainREG_TEST_TASK_2_PARAMETER, tskIDLE_PRIORITY, NULL ); - - /* Create the task that performs the 'check' functionality, as described at - the top of this file. */ - xTaskCreate( prvCheckTask, "Check", mainCHECK_TASK_STACK_SIZE_WORDS, NULL, mainCHECK_TASK_PRIORITY, NULL ); - - /* Start the scheduler. */ - vTaskStartScheduler(); - - /* If all is well, the scheduler will now be running, and the following - line will never be reached. If the following line does execute, then - there was insufficient FreeRTOS heap memory available for the Idle and/or - timer tasks to be created. See the memory management section on the - FreeRTOS web site for more details on the FreeRTOS heap - http://www.freertos.org/a00111.html. */ - for( ;; ); + /* Start all the other standard demo/test tasks. They have no particular + * functionality, but do demonstrate how to use the FreeRTOS API and test the + * kernel port. */ + vCreateBlockTimeTasks(); + vStartTimerDemoTask( mainTIMER_TEST_PERIOD ); + vStartDynamicPriorityTasks(); + vStartTaskNotifyTask(); + + /* Create the register check tasks, as described at the top of this file. + * Use xTaskCreateStatic() to create a task using only statically allocated + * memory. */ + xTaskCreate( prvRegTestTaskEntry1, /* The function that implements the task. */ + "Reg1", /* The name of the task. */ + mainREG_TEST_STACK_SIZE_WORDS, /* Size of stack to allocate for the task - in words not bytes!. */ + mainREG_TEST_TASK_1_PARAMETER, /* Parameter passed into the task. */ + tskIDLE_PRIORITY, /* Priority of the task. */ + NULL ); /* Can be used to pass out a handle to the created task. */ + xTaskCreate( prvRegTestTaskEntry2, "Reg2", mainREG_TEST_STACK_SIZE_WORDS, mainREG_TEST_TASK_2_PARAMETER, tskIDLE_PRIORITY, NULL ); + + /* Create the task that performs the 'check' functionality, as described at + * the top of this file. */ + xTaskCreate( prvCheckTask, "Check", mainCHECK_TASK_STACK_SIZE_WORDS, NULL, mainCHECK_TASK_PRIORITY, NULL ); + + /* Start the scheduler. */ + vTaskStartScheduler(); + + /* If all is well, the scheduler will now be running, and the following + * line will never be reached. If the following line does execute, then + * there was insufficient FreeRTOS heap memory available for the Idle and/or + * timer tasks to be created. See the memory management section on the + * FreeRTOS web site for more details on the FreeRTOS heap + * http://www.freertos.org/a00111.html. */ + for( ;; ); } /*-----------------------------------------------------------*/ @@ -184,121 +186,125 @@ static void prvCheckTask( void *pvParameters ) TickType_t xDelayPeriod = mainNO_ERROR_CHECK_TASK_PERIOD; TickType_t xLastExecutionTime; uint32_t ulLastRegTest1Value = 0, ulLastRegTest2Value = 0; -char * const pcPassMessage = "."; +char * const pcPassMessage = mainDEMO_SUCCESS_MESSAGE; char * pcStatusMessage = pcPassMessage; extern void vToggleLED( void ); - /* Just to stop compiler warnings. */ - ( void ) pvParameters; - - /* Initialise xLastExecutionTime so the first call to vTaskDelayUntil() - works correctly. */ - xLastExecutionTime = xTaskGetTickCount(); - - /* Cycle for ever, delaying then checking all the other tasks are still - operating without error. The onboard LED is toggled on each iteration. - If an error is detected then the delay period is decreased from - mainNO_ERROR_CHECK_TASK_PERIOD to mainERROR_CHECK_TASK_PERIOD. This has the - effect of increasing the rate at which the onboard LED toggles, and in so - doing gives visual feedback of the system status. */ - for( ;; ) - { - /* Delay until it is time to execute again. */ - vTaskDelayUntil( &xLastExecutionTime, xDelayPeriod ); - - /* Check all the demo tasks (other than the flash tasks) to ensure - that they are all still running, and that none have detected an error. */ - if( xAreDynamicPriorityTasksStillRunning() == pdFALSE ) - { - pcStatusMessage = "ERROR: Dynamic priority demo/tests.\r\n"; - } - - if( xAreBlockTimeTestTasksStillRunning() == pdFALSE ) - { - pcStatusMessage = "ERROR: Block time demo/tests.\r\n"; - } - - if( xAreTimerDemoTasksStillRunning( ( TickType_t ) xDelayPeriod ) == pdFALSE ) - { - pcStatusMessage = "ERROR: Timer demo/tests.\r\n"; - } - - if( xAreTaskNotificationTasksStillRunning() == pdFALSE ) - { - pcStatusMessage = "ERROR: Task notification demo/tests.\r\n"; - } - - /* Check that the register test 1 task is still running. */ - if( ulLastRegTest1Value == ulRegTest1LoopCounter ) - { - pcStatusMessage = "ERROR: Register test 1.\r\n"; - } - ulLastRegTest1Value = ulRegTest1LoopCounter; - - /* Check that the register test 2 task is still running. */ - if( ulLastRegTest2Value == ulRegTest2LoopCounter ) - { - pcStatusMessage = "ERROR: Register test 2.\r\n"; - } - ulLastRegTest2Value = ulRegTest2LoopCounter; - - /* Write the status message to the UART and toggle the LED to show the - system status if the UART is not connected. */ - vToggleLED(); - - /* If an error has been found then increase the LED toggle rate by - increasing the cycle frequency. */ - if( pcStatusMessage != pcPassMessage ) - { - xDelayPeriod = mainERROR_CHECK_TASK_PERIOD; - } - } + /* Just to stop compiler warnings. */ + ( void ) pvParameters; + + /* Demo start marker. */ + configPRINT_STRING( "FreeRTOS Demo Start\r\n" ); + + /* Initialise xLastExecutionTime so the first call to vTaskDelayUntil() + * works correctly. */ + xLastExecutionTime = xTaskGetTickCount(); + + /* Cycle for ever, delaying then checking all the other tasks are still + * operating without error. The onboard LED is toggled on each iteration. + * If an error is detected then the delay period is decreased from + * mainNO_ERROR_CHECK_TASK_PERIOD to mainERROR_CHECK_TASK_PERIOD. This has the + * effect of increasing the rate at which the onboard LED toggles, and in so + * doing gives visual feedback of the system status. */ + for( ;; ) + { + /* Delay until it is time to execute again. */ + vTaskDelayUntil( &xLastExecutionTime, xDelayPeriod ); + + /* Check all the demo tasks (other than the flash tasks) to ensure + * that they are all still running, and that none have detected an error. */ + if( xAreDynamicPriorityTasksStillRunning() == pdFALSE ) + { + pcStatusMessage = "FreeRTOS Demo ERROR: Dynamic priority demo/tests.\r\n"; + } + + if( xAreBlockTimeTestTasksStillRunning() == pdFALSE ) + { + pcStatusMessage = "FreeRTOS Demo ERROR: Block time demo/tests.\r\n"; + } + + if( xAreTimerDemoTasksStillRunning( ( TickType_t ) xDelayPeriod ) == pdFALSE ) + { + pcStatusMessage = "FreeRTOS Demo ERROR: Timer demo/tests.\r\n"; + } + + if( xAreTaskNotificationTasksStillRunning() == pdFALSE ) + { + pcStatusMessage = "FreeRTOS Demo ERROR: Task notification demo/tests.\r\n"; + } + + /* Check that the register test 1 task is still running. */ + if( ulLastRegTest1Value == ulRegTest1LoopCounter ) + { + pcStatusMessage = "FreeRTOS Demo ERROR: Register test 1.\r\n"; + } + ulLastRegTest1Value = ulRegTest1LoopCounter; + + /* Check that the register test 2 task is still running. */ + if( ulLastRegTest2Value == ulRegTest2LoopCounter ) + { + pcStatusMessage = "FreeRTOS Demo ERROR: Register test 2.\r\n"; + } + ulLastRegTest2Value = ulRegTest2LoopCounter; + + /* Write the status message to the UART and toggle the LED to show the + * system status if the UART is not connected. */ + vToggleLED(); + + /* If an error has been found then increase the LED toggle rate by + * increasing the cycle frequency. */ + if( pcStatusMessage != pcPassMessage ) + { + xDelayPeriod = mainERROR_CHECK_TASK_PERIOD; + } + + configPRINT_STRING( pcStatusMessage ); + } } /*-----------------------------------------------------------*/ static void prvRegTestTaskEntry1( void *pvParameters ) { - /* Although the regtest task is written in assembler, its entry point is - written in C for convenience of checking the task parameter is being passed - in correctly. */ - if( pvParameters == mainREG_TEST_TASK_1_PARAMETER ) - { - /* Start the part of the test that is written in assembler. */ - vRegTest1Implementation(); - } - - /* The following line will only execute if the task parameter is found to - be incorrect. The check task will detect that the regtest loop counter is - not being incremented and flag an error. */ - vTaskDelete( NULL ); + /* Although the regtest task is written in assembler, its entry point is + * written in C for convenience of checking the task parameter is being passed + * in correctly. */ + if( pvParameters == mainREG_TEST_TASK_1_PARAMETER ) + { + /* Start the part of the test that is written in assembler. */ + vRegTest1Implementation(); + } + + /* The following line will only execute if the task parameter is found to + * be incorrect. The check task will detect that the regtest loop counter is + * not being incremented and flag an error. */ + vTaskDelete( NULL ); } /*-----------------------------------------------------------*/ static void prvRegTestTaskEntry2( void *pvParameters ) { - /* Although the regtest task is written in assembler, its entry point is - written in C for convenience of checking the task parameter is being passed - in correctly. */ - if( pvParameters == mainREG_TEST_TASK_2_PARAMETER ) - { - /* Start the part of the test that is written in assembler. */ - vRegTest2Implementation(); - } - - /* The following line will only execute if the task parameter is found to - be incorrect. The check task will detect that the regtest loop counter is - not being incremented and flag an error. */ - vTaskDelete( NULL ); + /* Although the regtest task is written in assembler, its entry point is + * written in C for convenience of checking the task parameter is being passed + * in correctly. */ + if( pvParameters == mainREG_TEST_TASK_2_PARAMETER ) + { + /* Start the part of the test that is written in assembler. */ + vRegTest2Implementation(); + } + + /* The following line will only execute if the task parameter is found to + * be incorrect. The check task will detect that the regtest loop counter is + * not being incremented and flag an error. */ + vTaskDelete( NULL ); } /*-----------------------------------------------------------*/ void vFullDemoTickHook( void ) { - /* Called from vApplicationTickHook() when the project is configured to - build the full test/demo applications. */ + /* Called from vApplicationTickHook() when the project is configured to + * build the full test/demo applications. */ - /* Use task notifications from an interrupt. */ - xNotifyTaskFromISR(); + /* Use task notifications from an interrupt. */ + xNotifyTaskFromISR(); } /*-----------------------------------------------------------*/ - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/main.c b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/main.c index 498ff4f190..852b7e2a22 100644 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/main.c +++ b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/main.c @@ -20,7 +20,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org - * https://aws.amazon.com/freertos + * https://github.com/FreeRTOS * */ @@ -56,46 +56,46 @@ /* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo, or 0 to run the more comprehensive test and demo application. */ -#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 0 +#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 0 /* UART hardware constants. */ -#define mainUART_BASE_ADDRESS ( *( volatile uint32_t * ) 0x20000000UL ) -#define mainUART_TX_DATA 0x00 -#define mainUART_TX_CTRL 0x08 -#define mainUART_RX_CTRL 0x0c -#define mainUART_CLOCK_DIV 0x18 -#define mainUART_TX_ENABLE_BIT (1UL << 0UL) -#define mainUART_RX_ENABLE_BIT (1UL << 0UL) -#define mainUART_TX_FULL_BIT (1UL << 31UL) -#define mainUART_REGISTER( offset ) ( ( mainUART_BASE_ADDRESS + offset ) ) -#define mainUART_REGISTER_WORD( offset ) ( *( ( uint32_t * ) mainUART_REGISTER( offset ) ) ) +#define mainUART_BASE_ADDRESS ( *( volatile uint32_t * ) 0x20000000UL ) +#define mainUART_TX_DATA 0x00 +#define mainUART_TX_CTRL 0x08 +#define mainUART_RX_CTRL 0x0c +#define mainUART_CLOCK_DIV 0x18 +#define mainUART_TX_ENABLE_BIT (1UL << 0UL) +#define mainUART_RX_ENABLE_BIT (1UL << 0UL) +#define mainUART_TX_FULL_BIT (1UL << 31UL) +#define mainUART_REGISTER( offset ) ( ( mainUART_BASE_ADDRESS + offset ) ) +#define mainUART_REGISTER_WORD( offset ) ( *( ( uint32_t * ) mainUART_REGISTER( offset ) ) ) /* Hardware LED specifics. */ -#define mainRED_LED_PIN ( 1UL << 0x16UL ) -#define mainLED_IO_BASE_ADDRESS ( 0x10012000UL ) -#define mainRED_LED_INPUT_ENABLE_REG ( * ( uint32_t * ) ( mainLED_IO_BASE_ADDRESS + 4UL ) ) -#define mainRED_LED_OUTPUT_ENABLE_REG ( * ( uint32_t * ) ( mainLED_IO_BASE_ADDRESS + 8UL ) ) +#define mainRED_LED_PIN ( 1UL << 0x16UL ) +#define mainLED_IO_BASE_ADDRESS ( 0x10012000UL ) +#define mainRED_LED_INPUT_ENABLE_REG ( * ( uint32_t * ) ( mainLED_IO_BASE_ADDRESS + 4UL ) ) +#define mainRED_LED_OUTPUT_ENABLE_REG ( * ( uint32_t * ) ( mainLED_IO_BASE_ADDRESS + 8UL ) ) /* Hardware LED specifics. */ -#define mainUART_PINMUX_BASE_ADDRESS ( 0x10012000 ) -#define mainUART0_BASE_ADDRESS 0x10013000UL -#define mainUART_CLOCK_RATE 16000000UL -#define mainUART_BAUD_RATE 115200UL -#define mainUART0_TX_DATA_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 0UL ) ) -#define mainUART0_TX_DATA_BYTE_REG ( * ( uint8_t * ) ( mainUART0_BASE_ADDRESS + 0UL ) ) -#define mainUART0_DIV_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 24UL ) ) -#define mainUART0_TXCTRL_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 8UL ) ) -#define mainUART0_RXCTRL_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 12UL ) ) -#define mainUART0_GPIO_SEL_REG ( * ( uint32_t * ) ( mainUART_PINMUX_BASE_ADDRESS + 60UL ) ) -#define mainUART0_GPIO_SEL_EN ( * ( uint32_t * ) ( mainUART_PINMUX_BASE_ADDRESS + 56UL ) ) -#define mainUART_TXEN_BIT ( 1UL ) -#define mainUART0_PIN ( 0x30000UL ) +#define mainUART_PINMUX_BASE_ADDRESS ( 0x10012000 ) +#define mainUART0_BASE_ADDRESS 0x10013000UL +#define mainUART_CLOCK_RATE 16000000UL +#define mainUART_BAUD_RATE 115200UL +#define mainUART0_TX_DATA_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 0UL ) ) +#define mainUART0_TX_DATA_BYTE_REG ( * ( uint8_t * ) ( mainUART0_BASE_ADDRESS + 0UL ) ) +#define mainUART0_DIV_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 24UL ) ) +#define mainUART0_TXCTRL_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 8UL ) ) +#define mainUART0_RXCTRL_REG ( * ( uint32_t * ) ( mainUART0_BASE_ADDRESS + 12UL ) ) +#define mainUART0_GPIO_SEL_REG ( * ( uint32_t * ) ( mainUART_PINMUX_BASE_ADDRESS + 60UL ) ) +#define mainUART0_GPIO_SEL_EN ( * ( uint32_t * ) ( mainUART_PINMUX_BASE_ADDRESS + 56UL ) ) +#define mainUART_TXEN_BIT ( 1UL ) +#define mainUART0_PIN ( 0x30000UL ) /* Registers used to initialise the PLIC. */ -#define mainPLIC_PENDING_0 ( * ( ( volatile uint32_t * ) 0x0C001000UL ) ) -#define mainPLIC_PENDING_1 ( * ( ( volatile uint32_t * ) 0x0C001004UL ) ) -#define mainPLIC_ENABLE_0 ( * ( ( volatile uint32_t * ) 0x0C002000UL ) ) -#define mainPLIC_ENABLE_1 ( * ( ( volatile uint32_t * ) 0x0C002004UL ) ) +#define mainPLIC_PENDING_0 ( * ( ( volatile uint32_t * ) 0x0C001000UL ) ) +#define mainPLIC_PENDING_1 ( * ( ( volatile uint32_t * ) 0x0C001004UL ) ) +#define mainPLIC_ENABLE_0 ( * ( ( volatile uint32_t * ) 0x0C002000UL ) ) +#define mainPLIC_ENABLE_1 ( * ( ( volatile uint32_t * ) 0x0C002004UL ) ) /*-----------------------------------------------------------*/ @@ -104,9 +104,9 @@ or 0 to run the more comprehensive test and demo application. */ * main_full() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 0. */ #if mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 - extern void main_blinky( void ); + extern void main_blinky( void ); #else - extern void main_full( void ); + extern void main_full( void ); #endif /* #if mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 */ /* @@ -133,45 +133,45 @@ void vTogglelED( void ); int main( void ) { - prvSetupHardware(); - - /* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top - of this file. */ - #if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 ) - { - main_blinky(); - } - #else - { - main_full(); - } - #endif + prvSetupHardware(); + + /* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top + * of this file. */ + #if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY == 1 ) + { + main_blinky(); + } + #else + { + main_full(); + } + #endif } /*-----------------------------------------------------------*/ static void prvSetupHardware( void ) { - /* Set all interrupt enable bits to 0. */ - mainPLIC_ENABLE_0 = 0UL; - mainPLIC_ENABLE_1 = 0UL; + /* Set all interrupt enable bits to 0. */ + mainPLIC_ENABLE_0 = 0UL; + mainPLIC_ENABLE_1 = 0UL; - /* Clear all pending interrupts. */ - mainPLIC_PENDING_0 = 0UL; - mainPLIC_PENDING_1 = 0UL; + /* Clear all pending interrupts. */ + mainPLIC_PENDING_0 = 0UL; + mainPLIC_PENDING_1 = 0UL; - /* Disable Red LED input. */ - mainRED_LED_INPUT_ENABLE_REG &= ~mainRED_LED_PIN; + /* Disable Red LED input. */ + mainRED_LED_INPUT_ENABLE_REG &= ~mainRED_LED_PIN; - /* Enable Red LED output. */ - mainRED_LED_OUTPUT_ENABLE_REG |= mainRED_LED_PIN; + /* Enable Red LED output. */ + mainRED_LED_OUTPUT_ENABLE_REG |= mainRED_LED_PIN; - /* Set UART baud rate. */ - mainUART0_DIV_REG = ( mainUART_CLOCK_RATE / mainUART_BAUD_RATE ) - 1; + /* Set UART baud rate. */ + mainUART0_DIV_REG = ( mainUART_CLOCK_RATE / mainUART_BAUD_RATE ) - 1; - /* Enable UART Tx. */ - mainUART0_TXCTRL_REG |= mainUART_TXEN_BIT; - mainUART0_GPIO_SEL_REG &= mainUART0_PIN; - mainUART0_GPIO_SEL_EN |= mainUART0_PIN; + /* Enable UART Tx. */ + mainUART0_TXCTRL_REG |= mainUART_TXEN_BIT; + mainUART0_GPIO_SEL_REG &= mainUART0_PIN; + mainUART0_GPIO_SEL_EN |= mainUART0_PIN; } /*-----------------------------------------------------------*/ @@ -179,15 +179,15 @@ void vToggleLED( void ) { static uint32_t ulLEDState = 0; - if( ulLEDState == 0 ) - { - mainRED_LED_OUTPUT_ENABLE_REG |= mainRED_LED_PIN; - } - else - { - mainRED_LED_OUTPUT_ENABLE_REG &= ~mainRED_LED_PIN; - } - ulLEDState = !ulLEDState; + if( ulLEDState == 0 ) + { + mainRED_LED_OUTPUT_ENABLE_REG |= mainRED_LED_PIN; + } + else + { + mainRED_LED_OUTPUT_ENABLE_REG &= ~mainRED_LED_PIN; + } + ulLEDState = !ulLEDState; } /*-----------------------------------------------------------*/ @@ -195,96 +195,95 @@ void vSendString( const char * const pcString ) { uint32_t ulIndex = 0; - /* Crude polling UART Tx. */ - while( pcString[ ulIndex ] != 0x00 ) - { - while( ( mainUART0_TX_DATA_REG & mainUART_TX_FULL_BIT ) != 0UL ); - mainUART0_TX_DATA_BYTE_REG = pcString[ ulIndex ]; - ulIndex++; - } + /* Crude polling UART Tx. */ + while( pcString[ ulIndex ] != 0x00 ) + { + while( ( mainUART0_TX_DATA_REG & mainUART_TX_FULL_BIT ) != 0UL ); + mainUART0_TX_DATA_BYTE_REG = pcString[ ulIndex ]; + ulIndex++; + } } /*-----------------------------------------------------------*/ void vApplicationMallocFailedHook( void ) { - /* vApplicationMallocFailedHook() will only be called if - configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h. It is a hook - function that will get called if a call to pvPortMalloc() fails. - pvPortMalloc() is called internally by the kernel whenever a task, queue, - timer or semaphore is created. It is also called by various parts of the - demo application. If heap_1.c or heap_2.c are used, then the size of the - heap available to pvPortMalloc() is defined by configTOTAL_HEAP_SIZE in - FreeRTOSConfig.h, and the xPortGetFreeHeapSize() API function can be used - to query the size of free heap space that remains (although it does not - provide information on how the remaining heap might be fragmented). */ - taskDISABLE_INTERRUPTS(); - __asm volatile( "ebreak" ); - for( ;; ); + /* vApplicationMallocFailedHook() will only be called if + * configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h. It is a hook + * function that will get called if a call to pvPortMalloc() fails. + * pvPortMalloc() is called internally by the kernel whenever a task, queue, + * timer or semaphore is created. It is also called by various parts of the + * demo application. If heap_1.c or heap_2.c are used, then the size of the + * heap available to pvPortMalloc() is defined by configTOTAL_HEAP_SIZE in + * FreeRTOSConfig.h, and the xPortGetFreeHeapSize() API function can be used + * to query the size of free heap space that remains (although it does not + * provide information on how the remaining heap might be fragmented). */ + taskDISABLE_INTERRUPTS(); + __asm volatile( "ebreak" ); + for( ;; ); } /*-----------------------------------------------------------*/ void vApplicationIdleHook( void ) { - /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set - to 1 in FreeRTOSConfig.h. It will be called on each iteration of the idle - task. It is essential that code added to this hook function never attempts - to block in any way (for example, call xQueueReceive() with a block time - specified, or call vTaskDelay()). If the application makes use of the - vTaskDelete() API function (as this demo application does) then it is also - important that vApplicationIdleHook() is permitted to return to its calling - function, because it is the responsibility of the idle task to clean up - memory allocated by the kernel to any task that has since been deleted. */ + /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set + * to 1 in FreeRTOSConfig.h. It will be called on each iteration of the idle + * task. It is essential that code added to this hook function never attempts + * to block in any way (for example, call xQueueReceive() with a block time + * specified, or call vTaskDelay()). If the application makes use of the + * vTaskDelete() API function (as this demo application does) then it is also + * important that vApplicationIdleHook() is permitted to return to its calling + * function, because it is the responsibility of the idle task to clean up + * memory allocated by the kernel to any task that has since been deleted. */ } /*-----------------------------------------------------------*/ void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName ) { - ( void ) pcTaskName; - ( void ) pxTask; - - /* Run time stack overflow checking is performed if - configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook - function is called if a stack overflow is detected. */ - taskDISABLE_INTERRUPTS(); - __asm volatile( "ebreak" ); - for( ;; ); + ( void ) pcTaskName; + ( void ) pxTask; + + /* Run time stack overflow checking is performed if + * configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook + * function is called if a stack overflow is detected. */ + taskDISABLE_INTERRUPTS(); + __asm volatile( "ebreak" ); + for( ;; ); } /*-----------------------------------------------------------*/ void vApplicationTickHook( void ) { - /* The tests in the full demo expect some interaction with interrupts. */ - #if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY != 1 ) - { - extern void vFullDemoTickHook( void ); - vFullDemoTickHook(); - } - #endif + /* The tests in the full demo expect some interaction with interrupts. */ + #if( mainCREATE_SIMPLE_BLINKY_DEMO_ONLY != 1 ) + { + extern void vFullDemoTickHook( void ); + vFullDemoTickHook(); + } + #endif } /*-----------------------------------------------------------*/ /* Called from the kernel's port layer to handle device specific external -interrupts. */ + * interrupts. */ void vApplicationHandleTrap( uint32_t mcause ) { char pcCause[ 20 ]; - #warning vApplicationHandleTrap not implemented. - /* Not implemented yet! */ - sprintf( pcCause, "%u", mcause ); - vSendString( pcCause ); - configASSERT( mcause == 0 ); + #warning vApplicationHandleTrap not implemented. + /* Not implemented yet! */ + sprintf( pcCause, "%u", mcause ); + vSendString( pcCause ); + configASSERT( mcause == 0 ); } /*-----------------------------------------------------------*/ void *malloc( size_t xSize ) { - /* The linker script does not define a heap so artificially force an assert() - if something unexpectedly uses the C library heap. See - https://www.freertos.org/a00111.html for more information. */ - configASSERT( xTaskGetTickCount() == 0x00 ); - return NULL; + /* The linker script does not define a heap so artificially force an assert() + * if something unexpectedly uses the C library heap. See + * https://www.freertos.org/a00111.html for more information. */ + configASSERT( xTaskGetTickCount() == 0x00 ); + return NULL; } /*-----------------------------------------------------------*/ - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.cspy.bat b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.cspy.bat deleted file mode 100644 index 4ec26a3b84..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.cspy.bat +++ /dev/null @@ -1,40 +0,0 @@ -@REM This batch file has been generated by the IAR Embedded Workbench -@REM C-SPY Debugger, as an aid to preparing a command line for running -@REM the cspybat command line utility using the appropriate settings. -@REM -@REM Note that this file is generated every time a new debug session -@REM is initialized, so you may want to move or rename the file before -@REM making changes. -@REM -@REM You can launch cspybat by typing the name of this batch file followed -@REM by the name of the debug file (usually an ELF/DWARF or UBROF file). -@REM -@REM Read about available command line parameters in the C-SPY Debugging -@REM Guide. Hints about additional command line parameters that may be -@REM useful in specific cases: -@REM --download_only Downloads a code image without starting a debug -@REM session afterwards. -@REM --silent Omits the sign-on message. -@REM --timeout Limits the maximum allowed execution time. -@REM - - -@echo off - -if not "%~1" == "" goto debugFile - -@echo on - -"C:\devtools\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.general.xcl" --backend -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.driver.xcl" - -@echo off -goto end - -:debugFile - -@echo on - -"C:\devtools\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.general.xcl" "--debug_file=%~1" --backend -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.driver.xcl" - -@echo off -:end \ No newline at end of file diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.cspy.ps1 b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.cspy.ps1 deleted file mode 100644 index 0dc2229bc5..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.cspy.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -param([String]$debugfile = ""); - -# This powershell file has been generated by the IAR Embedded Workbench -# C - SPY Debugger, as an aid to preparing a command line for running -# the cspybat command line utility using the appropriate settings. -# -# Note that this file is generated every time a new debug session -# is initialized, so you may want to move or rename the file before -# making changes. -# -# You can launch cspybat by typing Powershell.exe -File followed by the name of this batch file, followed -# by the name of the debug file (usually an ELF / DWARF or UBROF file). -# -# Read about available command line parameters in the C - SPY Debugging -# Guide. Hints about additional command line parameters that may be -# useful in specific cases : -# --download_only Downloads a code image without starting a debug -# session afterwards. -# --silent Omits the sign - on message. -# --timeout Limits the maximum allowed execution time. -# - - -if ($debugfile -eq "") -{ -& "C:\devtools\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.general.xcl" --backend -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.driver.xcl" -} -else -{ -& "C:\devtools\IAR Systems\Embedded Workbench 8.4\common\bin\cspybat" -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.general.xcl" --debug_file=$debugfile --backend -f "C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\settings\RTOSDemo.Debug.driver.xcl" -} diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.driver.xcl b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.driver.xcl deleted file mode 100644 index 635a62fb29..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.driver.xcl +++ /dev/null @@ -1,23 +0,0 @@ -"--core=RV32IMAC" - -"-p" - -"C:\devtools\IAR Systems\Embedded Workbench 8.4\riscv\config\debugger\SiFive\hifive1.ddf" - -"--drv_verify_download" - -"--jet_standard_reset=2,300,1500" - -"--reset_style=\"0,-,0,Disabled__no_reset_\"" - -"--reset_style=\"1,-,0,Software\"" - -"--reset_style=\"2,-,1,Hardware\"" - -"--drv_catch_exceptions=0x000" - -"--jet_emu_param=cJtagOpt=Fmt:OScan1" - - - - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.general.xcl b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.general.xcl deleted file mode 100644 index 9bb8a3cab8..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.Debug.general.xcl +++ /dev/null @@ -1,13 +0,0 @@ -"C:\devtools\IAR Systems\Embedded Workbench 8.4\riscv\bin\riscvproc.dll" - -"C:\devtools\IAR Systems\Embedded Workbench 8.4\riscv\bin\riscvijet.dll" - -"C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\Debug\Exe\RTOSDemo.out" - ---plugin="C:\devtools\IAR Systems\Embedded Workbench 8.4\riscv\bin\riscvbat.dll" - ---flash_loader="C:\devtools\IAR Systems\Embedded Workbench 8.4\riscv\config\flashloader\SiFive\hifive1.board" - - - - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.dbgdt b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.dbgdt deleted file mode 100644 index 01907f2c07..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.dbgdt +++ /dev/null @@ -1,1296 +0,0 @@ - - - - - 34048 - 34049 - 34050 - 34051 - 34052 - 34053 - 34054 - 34055 - 34056 - 34057 - 34058 - 34059 - 34060 - 34061 - 34062 - 34063 - 34064 - 34065 - 34066 - 34067 - 34068 - 34069 - 34070 - 34071 - 34072 - 34073 - 34074 - 34075 - 34076 - 34077 - 34078 - 34079 - 34080 - 34081 - 34082 - 34083 - 34084 - 34085 - 34086 - 34087 - 34088 - 34089 - 34090 - 34091 - 34092 - 34093 - 34094 - 34095 - 34096 - 34097 - 34098 - 34099 - 34100 - 34101 - 34102 - 34103 - 34104 - 34105 - 34106 - 34107 - 34108 - 34109 - 34110 - 34111 - 34112 - 34113 - 34114 - 34115 - 34116 - - - - - 34390 - 34323 - 34398 - 34400 - 34397 - 34320 - 34321 - 34324 - 0 - - - - - 57600 - 57601 - 57603 - 33024 - 0 - 57607 - 0 - 57635 - 57634 - 57637 - 0 - 57643 - 57644 - 0 - 33090 - 33057 - 57636 - 57640 - 57641 - 33026 - 33065 - 33063 - 33064 - 33053 - 33054 - 0 - 33035 - 33036 - 34399 - 0 - 33055 - 33056 - 33094 - 0 - - - - - Disassembly - _I0 - - - 500 - 20 - - - 1 - 1 - - - 14 - 23 - - - 1 - 1 - 0 - 0 - 1 - 1 - 1 - A2020000390040E1000001000000259600000100000059840000010000005684000001000000268100000100000000DA00000100000010860000BF000000018100000200000029E10000040000001F9600000100000005B0000001000000C586000001000000208100000100000007DE00000100000000900000010000000F810000030000001D810000030000000D800000020000000C8100000100000026DE0000010000002496000001000000568600000100000001860000010000001BB00000010000005584000003000000808C0000010000001481000001000000008100000400000004B0000001000000C48600000100000028DE0000010000005E8600001100000003E100000100000001B00000010000001A860000030000000E810000B5000000148600000A00000041E10000010000000086000001000000028400000100000016810000010000002396000001000000058100000800000055860000010000001AB000000100000011860000230000000BDE000001000000DC84000001000000248100000100000046810000CA000000D98400000100000060860000010000000D8100000300000000B0000001000000088600000400000007840000010000000A81000001000000 - - - 5D00D6840000D7840000D8840000D9840000DA840000DB840000DC840000DD840000DE840000DF840000E0840000E1840000E2840000E384000024810000FFFFFFFF74860000439200001E920000289200002992000024960000259600001F96000008800000098000000A8000000B8000000C800000158000000A81000001E800000C84000033840000788400001184000000880000018800000288000003880000048800000588000002DE00000BDE00002492000007DE00007784000007840000808C000044D5000083860000588600000D8400000F8400000884000054840000328100001C810000098400001C8F00001E8F00001F8F0000208F0000218F00002AE10000118F000000B0000001B0000008D6000006D60000548600005986000004B0000005B00000008200001C82000001820000678600002281000023810000BE860000BF860000378700001B8600001C8600001D8600001E8600005A8600005B86000053860000A4860000A386000078860000 - 57005786000019000000048400007A000000138600002D00000002860000100000002CE1000071000000048100004A00000059920000250000007686000037000000108600002B000000268100005D000000018100004800000029E100006F0000002392000000000000318400008100000084860000380000000D860000160000005F860000620000000A8600002900000020810000590000000F8100005100000000900000850000003F8100005F00000023E100006B0000000C8100004E0000001D920000120000001982000043000000068400007C000000098100004C00000016820000410000004A810000750000009A8600001700000003840000790000005686000031000000018600000F0000002BE10000700000000084000076000000259200001D00000028E100006E0000000E8400007E000000308400008000000044920000230000000C860000150000002F8200004400000025E100006D00000009860000280000001A860000300000001F810000580000000E810000500000001F920000200000005E860000330000008E860000390000000B8100004D0000002D9200002200000022E100006A0000002B8000004600000018820000420000006986000036000000D18400001C000000058400007B000000148600002E0000000386000011000000498100007400000055860000070000000284000078000000058100004B0000002396000088000000118600002C000000008600000E0000000E86000018000000108400007F00000032840000820000004681000060000000218100005A0000000B8600002A000000608600003500000024E100006C0000000886000027000000C386000003000000A18600003A0000000A8400007D0000000D8100004F00000035E100007200000002E10000650000005D86000032000000168600002F000000C08600000B0000002C92000021000000 - - - 0 - 0A0000000A0000006E0000006E000000 - 0000000050050000700D000063050000 - 4096 - 0 - 0 - 32767 - 0 - - - 1 - - - 34050 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34051 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 4294967295 - 4702000081020000000A0000B9040000 - 470200006A020000000A0000A2040000 - 4096 - 0 - 0 - 32767 - 0 - - - 0 - - - 34052 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 1 - - - 34062 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 1 - - - 34064 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34065 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34066 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 1 - - - 34087 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34098 - 000000001700000022010000C8000000 - 04000000B70400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34053 - 000000001700000080020000A8000000 - 00000000000000008002000091000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34054 - 00000000170000000601000078010000 - 0000000032000000060100009B040000 - 4096 - 0 - 0 - 32767 - 0 - - - 1 - - - - Frame - _I0 - - - 3500 - 20 - - - - 34055 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34056 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 8192 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34057 - 000000001700000022010000C8000000 - 0A010000F2030000700D0000A3040000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34058 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34059 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34060 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34061 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34063 - 00000000170000000601000078010000 - EF05000032000000000A0000A2040000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - 34067 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34068 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34069 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 8192 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34070 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34071 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34072 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34073 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34074 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34075 - 7FFFFFFFAC020000D007000090050000 - 4B02000082020000FC09000088040000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 0x80000810 - 0x800005b0 - 0x8000005b0 - 0x80000000 - 0x800007d0 - 0x80000740 - - 0 - 2147485712 - 2147485712 - 4 - 0 - 0 - 0 - 0 - 0 - 0 - 134217830 - - - 34076 - 7FFFFFFFAC020000D007000090050000 - 4B02000082020000FC09000088040000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 0x80000c40 - - 0 - 2147486800 - 2147486801 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 134217906 - - - 34077 - 7FFFFFFFAC020000D007000090050000 - 4B02000082020000FC09000088040000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34078 - 7FFFFFFFAC020000D007000090050000 - 4B02000082020000FC09000088040000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34079 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34080 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34081 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34082 - 00000000170000000601000078010000 - AA03000032000000EB050000A2040000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - Access - Name - Value - - - 180 - 180 - 180 - - - 0 - - - 34083 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34084 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34085 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34086 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34088 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34089 - 000000001700000080020000A8000000 - 00000000000000008002000091000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34090 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 4096 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34091 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 4096 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34092 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34093 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34094 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 8192 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34095 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34096 - 0000000017000000AE010000D8000000 - 0000000000000000AE010000C1000000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34097 - 0000000017000000AE010000D8000000 - 0000000000000000AE010000C1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34099 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34100 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - 34101 - 000000001700000022010000C8000000 - 00000000F20300009C0B0000A3040000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - 34102 - 000000001700000022010000C8000000 - 000000003D0300009C0B0000EE030000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - 34103 - 000000001700000022010000C8000000 - 00000000880200009C0B000039030000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - ID - Interrupt - Next Time - Status - Timing [cycles] - Type - - - 40 - 120 - 80 - 100 - 120 - 120 - - - - 34104 - 00000000170000000601000078010000 - E202000032000000D203000063020000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - xTickCount - ulclock - ulCheckTaskCycles - - - - Expression - Location - Type - Value - - - 164 - 150 - 100 - 100 - - - - 34105 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34106 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34107 - 00000000170000000601000078010000 - 00000000000000000601000061010000 - 16384 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34108 - 00000000170000000601000078010000 - 0A01000032000000430200009B040000 - 4096 - 0 - 0 - 32767 - 0 - - - 1 - - - 000000004A000000000000000080000000000000FFFFFFFFFFFFFFFF4702000066020000000A00006A02000000000000010000000400000001000000000000000000000000000000000000000000000001000000FFFFFFFF040000001B8500001C8500001D8500001E850000FFFF02000B004354616262656450616E6500800000000000004702000081020000000A0000B9040000470200006A020000000A0000A2040000000000004080004604000000FFFEFF084D0065006D006F007200790020003100000000001B85000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003200000000001C85000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003300000000001D85000001000000FFFFFFFFFFFFFFFFFFFEFF084D0065006D006F007200790020003400000000001E85000001000000FFFFFFFFFFFFFFFFFFFFFFFF00000000000000000000000000000000000000000000000001000000FFFFFFFF1B85000001000000FFFFFFFF1B850000000000000010000001000000FFFFFFFFFFFFFFFF4302000032000000470200009B0400000100000002000010040000000100000001000000610500003C85000000000000000000000000000000000000010000003C850000010000003C850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000003B85000000000000000000000000000000000000010000003B850000010000003B850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000003A85000000000000000000000000000000000000010000003A850000010000003A850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000398500000000000000000000000000000000000001000000398500000100000039850000000000000040000000000000FFFFFFFFFFFFFFFFDE02000032000000E20200006302000000000000020000000400000001000000A2FAFFFFB0000000388500000000000000000000000000000000000001000000388500000100000038850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000308500000000000000000000000000000000000001000000308500000100000030850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002F85000000000000000000000000000000000000010000002F850000010000002F850000000000000020000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000002E85000000000000000000000000000000000000010000002E850000010000002E850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002C85000000000000000000000000000000000000010000002C850000010000002C850000000000000010000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002B85000000000000000000000000000000000000010000002B850000010000002B850000000000000010000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000002A85000000000000000000000000000000000000010000002A850000010000002A850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000298500000000000000000000000000000000000001000000298500000100000029850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000288500000000000000000000000000000000000001000000288500000100000028850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000268500000000000000000000000000000000000001000000268500000100000026850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000258500000000000000000000000000000000000001000000258500000100000025850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000248500000000000000000000000000000000000001000000248500000100000024850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000238500000000000000000000000000000000000001000000238500000100000023850000000000000040000000000000FFFFFFFFFFFFFFFFA603000032000000AA030000A20400000000000002000000040000000100000047F9FFFF00000000228500000000000000000000000000000000000001000000228500000100000022850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000218500000000000000000000000000000000000001000000218500000100000021850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000001F85000000000000000000000000000000000000010000001F850000010000001F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000001A85000000000000000000000000000000000000010000001A850000010000001A850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000198500000000000000000000000000000000000001000000198500000100000019850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000188500000000000000000000000000000000000001000000188500000100000018850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000158500000000000000000000000000000000000001000000158500000100000015850000000000000040000000000000FFFFFFFFFFFFFFFFEB05000032000000EF050000A204000000000000020000000400000001000000F2F8FFFFC10300000F85000000000000000000000000000000000000010000000F850000010000000F850000000000000040000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000002000000040000000100000000000000000000000D85000000000000000000000000000000000000010000000D850000010000000D850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000A85000000000000000000000000000000000000010000000A850000010000000A850000000000000080000000000000FFFFFFFFFFFFFFFF0A010000EE030000700D0000F2030000000000000100000004000000010000000000000000000000098500000000000000000000000000000000000001000000098500000100000009850000000000000020000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000088500000000000000000000000000000000000001000000088500000100000008850000000000000010000001000000FFFFFFFFFFFFFFFF06010000320000000A0100009B040000010000000200001004000000010000000000000000000000068500000000000000000000000000000000000001000000068500000100000006850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000058500000000000000000000000000000000000001000000058500000100000005850000000000000080000001000000FFFFFFFFFFFFFFFF000000009B040000700D00009F040000010000000100001004000000010000000000000000000000FFFFFFFF07000000048500000E85000010850000118500001285000027850000328500000180008000000100000000000000B6040000700D000067050000000000009F040000700D000050050000000000004080005607000000FFFEFF054200750069006C006400010000000485000001000000FFFFFFFFFFFFFFFFFFFEFF094400650062007500670020004C006F006700010000000E85000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000001085000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000001185000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300010000001285000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000002785000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000003285000001000000FFFFFFFFFFFFFFFF04000000000000000000000000000000000000000000000001000000FFFFFFFF0485000001000000FFFFFFFF04850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000038500000000000000000000000000000000000001000000038500000100000003850000000000000040000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000200000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000080000000000000FFFFFFFFFFFFFFFF00000000ED030000700D0000F103000000000000010000000400000001000000A4FBFFFF4F000000408500000000000000000000000000000000000001000000408500000100000040850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000003F85000000000000000000000000000000000000010000003F850000010000003F85000001000000FFFF02001200434D756C746950616E654672616D65576E6400010084010000002600000019010000DD010000000000000000000002000000000000003E85000000000000000000000000000000000000010000003E8500000000000000000000 - - - Debug - 00200000010000000800FFFF01001100434D4643546F6F6C426172427574746F6E568600000000040031000000FFFEFF000000000000000000000000000100000001000000018013860000000004002D000000FFFEFF00000000000000000000000000010000000100000001805E8600000000040033000000FFFEFF0000000000000000000000000001000000010000000180608600000000040035000000FFFEFF00000000000000000000000000010000000100000001805D8600000000040032000000FFFEFF000000000000000000000000000100000001000000018010860000000004002B000000FFFEFF000000000000000000000000000100000001000000018011860000000000002C000000FFFEFF000000000000000000000000000100000001000000FFFF01001500434D4643546F6F6C4261724D656E75427574746F6E14860000000000002E000000FFFEFF205200650073006500740020007400680065002000640065006200750067006700650064002000700072006F006700720061006D000A00520065007300650074000000000000000000000000000100000001000000000000000000000001000000050009802087000000000000FFFFFFFFFFFEFF13440069007300610062006C0065006400200028006E006F0020007200650073006500740029000100000000000000000000000100000001000000000000000000000001000000000009802187000000000000FFFFFFFFFFFEFF0853006F006600740077006100720065000100000000000000000000000100000001000000000000000000000001000000000009802287000000000000FFFFFFFFFFFEFF08480061007200640077006100720065000100000000000000000000000100000001000000000000000000000001000000000009800000000000000400FFFFFFFFFFFEFF000000000000000000000000000100000001000000000000000000000001000000000009801986000000000000FFFFFFFFFFFEFF000100000000000000000000000100000001000000000000000000000001000000000000000000FFFEFF05440065006200750067006A000000 - - - 34048 - 0A0000000A0000006E0000006E000000 - 1703000000000000F30300001A000000 - 8192 - 0 - 0 - 106 - 0 - - - 1 - - - Main - 00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000063000000FFFEFF000000000000000000000000000100000001000000018001E100000000000064000000FFFEFF000000000000000000000000000100000001000000018003E100000000000066000000FFFEFF0000000000000000000000000001000000010000000180008100000000000047000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000000069000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E10000000004006B000000FFFEFF000000000000000000000000000100000001000000018022E10000000004006A000000FFFEFF000000000000000000000000000100000001000000018025E10000000000006D000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040070000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040071000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF0096000000000000000D00FFFEFF0A78005400690063006B0043006F0075006E007400FFFEFF0D73006500740075007000740069006D006500720069006E007400FFFEFF0C70007200760043006800650063006B005400610073006B00FFFEFF076300610074006300680075007000FFFEFF05740069006D0065007200FFFEFF1078004500720072006F0072004F00630063007500720072006500640020003D00FFFEFF086E006F006E0062006C006B0074007800FFFEFF086E006F00740069006600690065006400FFFEFF1770006F00720074004900530052005F0053005400410043004B005F00460049004C004C005F004200590054004500FFFEFF1370006F007200740043004800450043004B005F004900530052005F0053005400410043004B00FFFEFF066D0065006D00730065007400FFFEFF066D0061006C006C006F006300FFFEFF0C63006F006E0066006900670041005300530045005200540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018021810000000000005A000000FFFEFF000000000000000000000000000100000001000000018024E10000000000006C000000FFFEFF000000000000000000000000000100000001000000018028E10000000000006E000000FFFEFF000000000000000000000000000100000001000000018029E10000000000006F000000FFFEFF0000000000000000000000000001000000010000000180028100000000000049000000FFFEFF000000000000000000000000000100000001000000018029810000000000005E000000FFFEFF000000000000000000000000000100000001000000018027810000000000005C000000FFFEFF000000000000000000000000000100000001000000018028810000000000005D000000FFFEFF00000000000000000000000000010000000100000001801D8100000000040056000000FFFEFF00000000000000000000000000010000000100000001801E8100000000040057000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B810000000000004D000000FFFEFF00000000000000000000000000010000000100000001800C810000000000004E000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000062000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F8100000000000058000000FFFEFF0000000000000000000000000001000000010000000180208100000000000059000000FFFEFF0000000000000000000000000001000000010000000180468100000000020060000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000 - - - 34049 - 0A0000000A0000006E0000006E000000 - 0000000000000000150300001A000000 - 8192 - 0 - 0 - 767 - 0 - - - 1 - - - - 34001 - 0 - - - - CMSIS-Pack - 00200000010000000100FFFF01001100434D4643546F6F6C426172427574746F6ED1840000000000001C000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF0A43004D005300490053002D005000610063006B0018000000 - - - 34109 - 0A0000000A0000006E0000006E000000 - F703000000000000250400001A000000 - 8192 - 0 - 0 - 24 - 0 - - - 1 - - - 34110 - 010000002600000019010000DD010000 - 000000000000000018010000B7010000 - 16384 - 0 - 1 - 32767 - 0 - - - 0 - - - - 200 - 100 - 100 - 100 - 100 - 100 - 100 - 150 - - - 34111 - 000000001700000022010000D8000000 - 000000000000000022010000C1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34112 - 000000001700000022010000D8000000 - 00000000F1030000700D000058050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 34113 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 8192 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34114 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 8192 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34115 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 8192 - 0 - 0 - 32767 - 0 - - - 0 - - - - - 57600 - 57601 - 57603 - 33024 - 0 - 57607 - 0 - 57635 - 57634 - 57637 - 0 - 57643 - 57644 - 0 - 33090 - 33057 - 57636 - 57640 - 57641 - 33026 - 33065 - 33063 - 33064 - 33053 - 33054 - 0 - 33035 - 33036 - 34399 - 0 - 33055 - 33056 - 33094 - 0 - - - - Main - 00200000010000002100FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000063000000FFFEFF000000000000000000000000000100000001000000018001E100000000000064000000FFFEFF000000000000000000000000000100000001000000018003E100000000000066000000FFFEFF0000000000000000000000000001000000010000000180008100000000000047000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E100000000000069000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E10000000004006B000000FFFEFF000000000000000000000000000100000001000000018022E10000000004006A000000FFFEFF000000000000000000000000000100000001000000018025E10000000000006D000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040070000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040071000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01000D005061737465436F6D626F426F784281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF0096000000000000000000018021810000000004005A000000FFFEFF000000000000000000000000000100000001000000018024E10000000000006C000000FFFEFF000000000000000000000000000100000001000000018028E10000000004006E000000FFFEFF000000000000000000000000000100000001000000018029E10000000000006F000000FFFEFF0000000000000000000000000001000000010000000180028100000000000049000000FFFEFF000000000000000000000000000100000001000000018029810000000000005E000000FFFEFF000000000000000000000000000100000001000000018027810000000000005C000000FFFEFF000000000000000000000000000100000001000000018028810000000000005D000000FFFEFF00000000000000000000000000010000000100000001801D8100000000000056000000FFFEFF00000000000000000000000000010000000100000001801E8100000000040057000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B810000000000004D000000FFFEFF00000000000000000000000000010000000100000001800C810000000000004E000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000062000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001801F8100000000000058000000FFFEFF0000000000000000000000000001000000010000000180208100000000000059000000FFFEFF0000000000000000000000000001000000010000000180468100000000020060000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00FF020000 - - - 34116 - 0A0000000A0000006E0000006E000000 - 0000000000000000150300001A000000 - 8192 - 0 - 0 - 767 - 0 - - - 1 - - - - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.dnx b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.dnx deleted file mode 100644 index 153749553c..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.dnx +++ /dev/null @@ -1,119 +0,0 @@ - - - - 0 - 1 - 90 - 1 - 1 - 1 - main - 0 - 50 - - - 93930437 - - - 0 - 1 - - - 0 - 0 - 0 - - - 0 - - - 1 - 1 - - - 73866 - - Hardware - Software - 0 - 1 - 0 - - - 0 - C:\devtools\IAR Systems\Embedded Workbench 8.4\riscv\config\debugger\SiFive\hifive1.ddf - - - 1 - - - 0 - 1 - - - 0 - 1 - 0 - 0 - - - 0 - - - 1 - - - 0 - 0 - 1 - 0 - 1 - 0 - - - 0 - 0 - 1 - 0 - 1 - - - 1 - - - 1 - 0 - 1 - 0 - 1 - - - 50000000 - 0 - 1 - - - 1 1 - 4 0 - - - _ 0 - _ "" - - - _ 0 - _ "" - _ 0 - - - _ 0 "EMUL_CODE" "{$PROJ_DIR$\..\Common\Minimal\MessageBufferDemo.c}.813.21" 0 0 1 "" 0 "" 0 - _ 0 "EMUL_CODE" "0x200129EE" 0 0 1 "" 0 "" 0 - _ 0 "EMUL_CODE" "{$PROJ_DIR$\..\Common\Minimal\MessageBufferDemo.c}.813.21" 0 0 1 "" 0 "" 0 - _ 0 "EMUL_CODE" "0x200126BE" 0 0 1 "" 0 "" 0 - 4 - - - 0 - 0 - - diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.reggroups b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.reggroups deleted file mode 100644 index 5f282702bb..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.reggroups +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.wsdt b/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.wsdt deleted file mode 100644 index 25bcde41ad..0000000000 --- a/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/settings/RTOSDemo.wsdt +++ /dev/null @@ -1,641 +0,0 @@ - - - - - RTOSDemo/Debug - - - - - 34048 - 34049 - 34050 - 34051 - 34052 - 34053 - 34054 - 34055 - 34056 - 34057 - 34058 - 34059 - 34060 - 34061 - 34062 - 34063 - 34064 - 34065 - 34066 - - - - - 57600 - 57601 - 57603 - 33024 - 0 - 57607 - 0 - 57635 - 57634 - 57637 - 0 - 57643 - 57644 - 0 - 33090 - 33057 - 57636 - 57640 - 57641 - 33026 - 33065 - 33063 - 33064 - 33053 - 33054 - 0 - 33035 - 33037 - 34399 - 0 - 33038 - 33039 - 0 - - - - - 405 - 30 - 30 - 30 - - - RTOSDemo - RTOSDemo/FreeRTOS_source - RTOSDemo/FreeRTOS_source/portable - RTOSDemo/FreeRTOS_source/portable/memmang - RTOSDemo/SiFive_code - RTOSDemo/blinky_demo - - - - 14 - 23 - - - 1 - 1 - 0 - 0 - 1 - 1 - 1 - E3010000390040E1000001000000259600000100000059840000010000005684000002000000268100000100000000DA0000010000001086000003000000018100000200000029E10000080000001F9600000100000005B0000001000000C586000001000000208100000100000007DE00000200000000900000020000000F8100001D0000001D810000030000000D800000020000000C8100000100000026DE0000010000002496000001000000568600000100000001860000010000001BB00000010000005584000012000000808C0000010000001481000001000000008100000400000004B0000001000000C48600000100000028DE0000010000005E8600000200000003E100000100000001B00000010000001A860000010000000E8100007F010000148600000100000041E10000020000000086000001000000028400000100000016810000010000002396000001000000058100000A00000055860000010000001AB000000100000011860000010000000BDE000001000000DC8400000100000024810000020000004681000001000000D98400000100000060860000010000000D8100000300000000B0000001000000088600000100000007840000010000000A81000002000000 - - - 8100FFFFFFFF0D8400000F8400000884000054840000328100001C8100000984000053840000D6840000D7840000D8840000D9840000DA840000DB840000DC840000DD840000DE840000DF840000248100002AE10000008200001C820000018200006786000014820000158200001A8200001B820000228100002381000040E100000C840000338400007884000008800000098000000A8000000B8000000C800000158000000A81000001E80000479C0000439200001E92000028920000299200002592000024960000259600001F9600001D920000E880000020F1000010F0000000F0000020F0000030F0000060F00000008800000188000002880000038800000488000005880000EA840000EB840000EC840000ED840000EE840000EF840000F0840000F1840000F2840000F3840000F4840000F5840000F6840000F7840000118400007784000007840000808C000044D5000002DE00000BDE00002492000007DE000010E1000011E1000012E1000013E1000014E1000015E1000016E1000017E1000018E1000019E100001AE100001BE100001CE100001DE100001EE100001FE100001C8F00001E8F00001F8F0000208F0000218F0000118F0000818400007D84000082840000838400008484000039810000178200005584000056840000598400003284000002840000038400001084000005840000318400000A84000051840000 - 3B00048400004C00000059920000110000002CE1000043000000268100002D0000001581000020000000048100001C0000002392000000000000018100001A00000029E100004100000007E100003600000000900000420000005F8600003400000004E10000340000000F8100001F00000020810000270000003F8100003100000023E100003D0000000D8000001200000001E10000310000000C8100001C0000001982000015000000098100001E000000068400004E00000016820000130000004A81000047000000178100002200000000840000480000002BE1000042000000148100001F000000449200000F00000028E100004000000000810000140000000E8400005000000030840000520000002F820000160000001F9200000C00000025E100003F00000003E10000330000000E8100001E0000001F810000260000002D9200000E00000022E100003C00000000E10000300000000B8100001F000000D18400000C00000018820000140000002B8000001800000041E1000040000000498100004600000023960000420000001681000021000000058100001D000000218100002C00000005E100003500000035E100004400000024E100003E00000002E10000320000000D810000210000002C9200000D000000 - - - 0 - 0A0000000A0000006E0000006E000000 - 0000000050050000700D000063050000 - 4096 - 0 - 0 - 32767 - 0 - - - 1 - - - 4294967295 - 0000000082040000700D000067050000 - 000000006B040000700D000050050000 - 4096 - 0 - 0 - 32767 - 0 - - - 1 - - - 34049 - 210100008A03000098080000F0040000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 1 - - - 21 - 2548 - 679 - 169 - 2 - C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_simulator_IAR\BuildLog.log - 0 - -1 - - - 34052 - 210100008A03000098080000F0040000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 1198 - 171 - 2054 - 2 - - 0 - -1 - - - 34053 - 210100008A03000098080000F0040000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 1198 - 171 - 2054 - 2 - - 0 - -1 - - - 34054 - 210100008A03000098080000F0040000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 763 - 127 - 1144 - 508 - 2 - - 0 - -1 - - - 34055 - 210100008A03000098080000F0040000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 532 - 76 - 912 - 2 - - 0 - -1 - - - 34058 - 210100008A03000098080000F0040000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - 2 - - 0 - -1 - - - 34050 - 000000001700000080020000A8000000 - 00000000000000008002000091000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 2 - - - - - - - - - <Right-click on a symbol in the editor to show a call graph> - - - - - - 0 - - - 0 - - - - - - 0 - - - 0 - - - File - Function - Line - - - 200 - 700 - 100 - - - - 34051 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - Check - File - Line - Message - Severity - - - 200 - 200 - 100 - 500 - 100 - - - - 34056 - 000000001700000022010000C8000000 - 04000000830400006C0D000036050000 - 32768 - 0 - 0 - 32767 - 0 - - - 1 - - - 2 - $WS_DIR/SourceBrowseLog.log - 0 - -1 - - - 34057 - 000000001700000080020000A8000000 - 00000000000000008002000091000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 2 - - - 0 - - - C:\Users\ribarry\Dev\FreeRTOS\WorkingCopy\FreeRTOS\Demo\RISC-V_RV32_SiFive_HiFive1-RevB_IAR\Debug\Obj\RTOSDemo.pbw - - - File - Name - Scope - Symbol type - - - 300 - 300 - 300 - 300 - - - - 34059 - 00000000170000000601000078010000 - 0000000032000000DD01000067040000 - 4096 - 0 - 0 - 32767 - 0 - - - 1 - - - 0000000010000000000000000010000001000000FFFFFFFFFFFFFFFFDD01000032000000E101000067040000010000000200001004000000010000000AFFFFFFD70500000B85000000000000000000000000000000000000010000000B850000010000000B850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000098500000000000000000000000000000000000001000000098500000100000009850000000000000080000001000000FFFFFFFFFFFFFFFF0000000067040000700D00006B040000010000000100001004000000010000009DFEFFFF38010000FFFFFFFF070000000885000001850000048500000585000006850000078500000A850000FFFF02000B004354616262656450616E6500800000010000000000000082040000700D000067050000000000006B040000700D000050050000000000004080005607000000FFFEFF1153006F0075007200630065002000420072006F0077007300650020004C006F006700010000000885000001000000FFFFFFFFFFFFFFFFFFFEFF054200750069006C006400010000000185000001000000FFFFFFFFFFFFFFFFFFFEFF0C4400650063006C00610072006100740069006F006E007300000000000485000001000000FFFFFFFFFFFFFFFFFFFEFF0A5200650066006500720065006E00630065007300000000000585000001000000FFFFFFFFFFFFFFFFFFFEFF0D460069006E006400200069006E002000460069006C0065007300000000000685000001000000FFFFFFFFFFFFFFFFFFFEFF1541006D0062006900670075006F0075007300200044006500660069006E006900740069006F006E007300000000000785000001000000FFFFFFFFFFFFFFFFFFFEFF0B54006F006F006C0020004F0075007400700075007400000000000A85000001000000FFFFFFFFFFFFFFFF01000000000000000000000000000000000000000000000001000000FFFFFFFF0885000001000000FFFFFFFF08850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000038500000000000000000000000000000000000001000000038500000100000003850000000000000080000000000000FFFFFFFFFFFFFFFF00000000000000000400000004000000000000000100000004000000010000000000000000000000028500000000000000000000000000000000000001000000028500000100000002850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000D85000000000000000000000000000000000000010000000D850000010000000D850000000000000080000000000000FFFFFFFFFFFFFFFF000000000000000004000000040000000000000001000000040000000100000000000000000000000C85000000000000000000000000000000000000010000000C850000010000000C850000000000000080000000000000FFFFFFFFFFFFFFFF000000009B040000700D00009F040000000000000100000004000000010000000000000000000000FFFFFFFF010000000E8500000180008000000000000000000000B6040000700D000067050000000000009F040000700D000050050000000000004080004601000000FFFEFF094400650062007500670020004C006F006700000000000E85000001000000FFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000000000000000000000001000000FFFFFFFF0E85000001000000FFFFFFFF0E850000000000000000000000000000 - - - Main - 00200000010000002000FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000035000000FFFEFF000000000000000000000000000100000001000000018001E100000000000036000000FFFEFF000000000000000000000000000100000001000000018003E100000000000038000000FFFEFF0000000000000000000000000001000000010000000180008100000000000019000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E10000000000003B000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E10000000004003D000000FFFEFF000000000000000000000000000100000001000000018022E10000000004003C000000FFFEFF000000000000000000000000000100000001000000018025E10000000000003F000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000000042000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040043000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01001900434D4643546F6F6C426172436F6D626F426F78427574746F6E4281000000000000FFFFFFFFFFFEFF0000000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF0096000000000000004800FFFEFF042E0065006E006400FFFEFF0C70007800430075007200720065006E007400540043004200FFFEFF076D00730074006100740075007300FFFEFF046D00650070006300FFFEFF066D0063006100750073006500FFFEFF095F005F00610072006D00200076006F006C00FFFEFF0D5F005F00610072006D00200076006F006C00610069006C006500FFFEFF0E5F005F00610073006D00200076006F006C006100740069006C006500FFFEFF056D007400760065006300FFFEFF1278005400610073006B0049006E006300720065006D0065006E0074005400690063006B00FFFEFF0870006F0072007400480041004E004400FFFEFF0470006F0072007400FFFEFF0363006C007A00FFFEFF095500530045005F0050004F00520054005F00FFFEFF1F700075006C006C004D0061006300680069006E006500540069006D006500720043006F006D00700061007200650052006500670069007300740065007200FFFEFF055F005F00610073006D00FFFEFF0C780049005300520053007400610063006B0054006F007000FFFEFF1A63006F006E006600690067004900530052005F0053005400410043004B005F00530049005A0045005F0057004F00520044005300FFFEFF1B75007800540069006D006500720049006E006300720065006D0065006E007400730046006F0072004F006E0065005400690063006B00FFFEFF107000720076005300650074007500700048006100720064007700610072006500FFFEFF0955004100520054005F005200450047005700FFFEFF0B55004100520054005F0054005800460055004C004C00FFFEFF164D004500540041004C005F005300490046004900560045005F00550041005200540030005F00440049005600FFFEFF194D004500540041004C005F005300490046004900560045005F00550041005200540030005F00540058004300540052004C00FFFEFF0F7400610073006B00520045005300450054005F0052004500410044005900FFFEFF0855004100520054005F00520045004700FFFEFF18700072007600530065007400750070005000650072006900700068006500720061006C00540069006D00650072007300FFFEFF06650062007200650061006B00FFFEFF0C63006F006E00660069006700410053005300450052005400FFFEFF095400490043004B005F0048004F004F004B00FFFEFF0575006C00520065006700FFFEFF16700075006C00520065006700540065007300740031004C006F006F00700043006F0075006E00740065007200FFFEFF1575006C00520065006700540065007300740032004C006F006F00700043006F0075006E00740065007200FFFEFF087400690063006B0068006F006F006B00FFFEFF0A73006500740075007000740069006D0065007200FFFEFF0C70007200760043006800650063006B005400610073006B00FFFEFF116D00610069006E0055004100520054005F0052004500470049005300540045005200FFFEFF0873007400610072007400730063006800FFFEFF1175006C0043006800650063006B005400610073006B004300790063006C0065007300FFFEFF1078004500720072006F0072004F00630063007500720072006500640020003D00FFFEFF0974006F00670067006C0065006C0065006400FFFEFF156D00610069006E005200450044005F004C00450044005F004700500049004F005F0050004F0052005400FFFEFF146D00610069006E0055004100520054005F00540058005F00460055004C004C005F00420049005400FFFEFF156D00610069006E00550041005200540030005F00540058005F0044004100540041005F00520045004700FFFEFF204D004500540041004C005F005300490046004900560045005F00550041005200540030005F00310030003000310033003000300030005F00530049005A004500FFFEFF194D004500540041004C005F005300490046004900560045005F00550041005200540030005F0030005F00530049005A004500FFFEFF124D004500540041004C005F005300490046004900560045005F0055004100520054003000FFFEFF194D004500540041004C005F005300490046004900560045005F00550041005200540030005F00540058004400410054004100FFFEFF194D004500540041004C005F005300490046004900560045005F00550041005200540030005F00520058004400410054004100FFFEFF0674006F00670067006C006500FFFEFF1178004500720072006F0072004F00630063007500720072006500640020003D002000FFFEFF1270007200760042006100730069006300440065006C006100790054006500730074007300FFFEFF0E78005000720069006D006100720079004300790063006C0065007300FFFEFF1976005000720069006D0061007200790042006C006F0063006B00540069006D00650054006500730074005400610073006B00FFFEFF0F5400610073006B005000720069006F007200690074007900530065007400FFFEFF12700072007600530069006E0067006C0065005400610073006B0054006500730074007300FFFEFF187000720076004E006F006E0042006C006F0063006B0069006E006700530065006E006400650072005400610073006B00FFFEFF0B6E006F006E0062006C006F0063006B0069006E006700FFFEFF0D7000720076004500630068006F00530065007200760065007200FFFEFF1F63006F006E0066006900670053005500500050004F00520054005F005300540041005400490043005F0041004C004C004F0043004100540049004F004E00FFFEFF0D7000720076004500630068006F0043006C00690065006E007400FFFEFF2F730074006100740069006300200076006F006900640020007000720076004500630068006F0043006C00690065006E0074002800200076006F006900640020002A007000760050006100720061006D006500740065007200730020002900FFFEFF0770006F00720074005F006F007000FFFEFF0E76005400610073006B00440065006C00610079002800200070006F00FFFEFF0A53005400410043004B005F004F00560045005200FFFEFF09780049005300520053007400610063006B00FFFEFF0F730074006100720074007300630068006500640075006C00650072006500FFFEFF066D0065006D00730065007400FFFEFF1770006F00720074004900530052005F0053005400410043004B005F00460049004C004C005F004200590054004500FFFEFF0773007400610063006B005F007600FFFEFF0A73007400610063006B005F006F00760065007200FFFEFF062E0061006C00690067006E00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018021810000000000002C000000FFFEFF000000000000000000000000000100000001000000018024E10000000000003E000000FFFEFF000000000000000000000000000100000001000000018028E100000000000040000000FFFEFF000000000000000000000000000100000001000000018029E100000000000041000000FFFEFF000000000000000000000000000100000001000000018002810000000000001B000000FFFEFF0000000000000000000000000001000000010000000180298100000000000030000000FFFEFF000000000000000000000000000100000001000000018027810000000000002E000000FFFEFF000000000000000000000000000100000001000000018028810000000000002F000000FFFEFF00000000000000000000000000010000000100000001801D8100000000000028000000FFFEFF00000000000000000000000000010000000100000001801E8100000000040029000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B810000000004001F000000FFFEFF00000000000000000000000000010000000100000001800D8100000000000021000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000034000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800E8100000000000022000000FFFEFF00000000000000000000000000010000000100000001800F8100000000000023000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00E8020000 - - - 34048 - 0A0000000A0000006E0000006E000000 - 0000000000000000FE0200001A000000 - 8192 - 0 - 0 - 744 - 0 - - - 1 - - - 21 - 3394 - 2 - - 0 - -1 - - - 34062 - 000000001700000022010000C8000000 - 00000000B3040000700D000050050000 - 4096 - 0 - 0 - 32767 - 0 - - - 0 - - - 34060 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - 34061 - 000000001700000022010000C8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 0 - 32767 - 0 - - - 0 - - - - Access - Address - Name - Size - Zone - _I0 - - - 120 - 150 - 150 - 50 - 120 - 20 - - - - 34063 - 000000002700000022010000D8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - Description - Interrupt - - - 250 - 150 - - - - 34064 - 000000002700000022010000D8000000 - 000000000000000022010000B1000000 - 32768 - 0 - 1 - 32767 - 0 - - - 0 - - - - Description - First Activation - Hold Time - Id - Interrupt - Probability (%) - Repeat Interval - Type - Variance (%) - - - 150 - 70 - 70 - 40 - 100 - 70 - 70 - 100 - 70 - - - - - 34001 - 0 - - - - CMSIS-Pack - 00200000010000000100FFFF01001100434D4643546F6F6C426172427574746F6ED1840000000000000C000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF0A43004D005300490053002D005000610063006B0018000000 - - - 34065 - 0A0000000A0000006E0000006E000000 - 0303000000000000310300001A000000 - 8192 - 0 - 0 - 24 - 0 - - - 1 - - - - 57600 - 57601 - 57603 - 33024 - 0 - 57607 - 0 - 57635 - 57634 - 57637 - 0 - 57643 - 57644 - 0 - 33090 - 33057 - 57636 - 57640 - 57641 - 33026 - 33065 - 33063 - 33064 - 33053 - 33054 - 0 - 33035 - 33036 - 34399 - 0 - 33038 - 33039 - 0 - - - - Main - 00200000010000002000FFFF01001100434D4643546F6F6C426172427574746F6E00E100000000000035000000FFFEFF000000000000000000000000000100000001000000018001E100000000000036000000FFFEFF000000000000000000000000000100000001000000018003E100000000000038000000FFFEFF0000000000000000000000000001000000010000000180008100000000000019000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018007E10000000000003B000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000018023E10000000004003D000000FFFEFF000000000000000000000000000100000001000000018022E10000000004003C000000FFFEFF000000000000000000000000000100000001000000018025E10000000000003F000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001802BE100000000040042000000FFFEFF00000000000000000000000000010000000100000001802CE100000000040043000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF000000000000000000000000000100000001000000FFFF01000D005061737465436F6D626F426F784281000000000000FFFFFFFFFFFEFF0001000000000000000100000000000000010000007800000002002050FFFFFFFFFFFEFF0096000000000000000000018021810000000004002C000000FFFEFF000000000000000000000000000100000001000000018024E10000000000003E000000FFFEFF000000000000000000000000000100000001000000018028E100000000040040000000FFFEFF000000000000000000000000000100000001000000018029E100000000000041000000FFFEFF000000000000000000000000000100000001000000018002810000000000001B000000FFFEFF0000000000000000000000000001000000010000000180298100000000000030000000FFFEFF000000000000000000000000000100000001000000018027810000000000002E000000FFFEFF000000000000000000000000000100000001000000018028810000000000002F000000FFFEFF00000000000000000000000000010000000100000001801D8100000000000028000000FFFEFF00000000000000000000000000010000000100000001801E8100000000040029000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800B810000000004001F000000FFFEFF00000000000000000000000000010000000100000001800C8100000000000020000000FFFEFF00000000000000000000000000010000000100000001805F8600000000000034000000FFFEFF00000000000000000000000000010000000100000001800000000001000000FFFFFFFFFFFEFF00000000000000000000000000010000000100000001800E8100000000000022000000FFFEFF00000000000000000000000000010000000100000001800F8100000000000023000000FFFEFF00000000000000000000000000010000000100000000000000FFFEFF044D00610069006E00E8020000 - - - 34066 - 0A0000000A0000006E0000006E000000 - 0000000000000000FE0200001A000000 - 8192 - 0 - 0 - 744 - 0 - - - 1 - - - - - 010000000300000001000000000000000000000001000000010000000200000000000000010000000100000000000000280000002800000001000000010000000000000001000000FFFEFF0F2400570053005F0044004900520024005C006D00610069006E002E00630001000000FFFF010014004966436F6E74656E7453746F72616765496D706CFFFEFF00FFFEFFFF27013C003F0078006D006C002000760065007200730069006F006E003D00220031002E0030002200200065006E0063006F00640069006E0067003D0022005500540046002D00380022003F003E000A003C0052006F006F0074003E000A0020002000200020003C004E0075006D0052006F00770073003E0031003C002F004E0075006D0052006F00770073003E000A0020002000200020003C004E0075006D0043006F006C0073003E0031003C002F004E0075006D0043006F006C0073003E000A0020002000200020003C00580050006F0073003E0030003C002F00580050006F0073003E000A0020002000200020003C00590050006F0073003E0030003C002F00590050006F0073003E000A0020002000200020003C00530065006C00530074006100720074003E0030003C002F00530065006C00530074006100720074003E000A0020002000200020003C00530065006C0045006E0064003E0030003C002F00530065006C0045006E0064003E000A0020002000200020003C00580050006F00730032003E0030003C002F00580050006F00730032003E000A0020002000200020003C00590050006F00730032003E00320031003C002F00590050006F00730032003E000A0020002000200020003C00530065006C005300740061007200740032003E0036003200390038003C002F00530065006C005300740061007200740032003E000A0020002000200020003C00530065006C0045006E00640032003E0036003200390038003C002F00530065006C0045006E00640032003E000A003C002F0052006F006F0074003E000A00FFFEFF066D00610069006E002E00630000000000FFFFFFFFFFFFFFFF0000000010000000C5D4F200FFDC7800BECEA100F0A0A100BCA8E1009CC1B600F7B88600D9ADC200A5C2D700B3A6BE00EAD6A300F6FA7D00B5E99D005FC3CF00C1838300CACAD500010000000100000002000000E101000049000000700D00007E040000 - - - -