mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-30 06:58:33 -04:00
Allow the size of the stack used by many of the standard demo/test tasks to be overridden by FreeRTOSConfig.h settings.
Update the Freedom Studio RISC-V project so the 'full' build configuration is now functional.
This commit is contained in:
parent
178fe4f143
commit
d369110167
15 changed files with 138 additions and 61 deletions
|
@ -44,6 +44,31 @@
|
|||
* THE http://www.FreeRTOS.org WEB SITE FOR FULL INFORMATION ON USING THIS DEMO
|
||||
* APPLICATION, AND ITS ASSOCIATE FreeRTOS ARCHITECTURE PORT!
|
||||
*
|
||||
*
|
||||
* NOTE 1:
|
||||
*
|
||||
* This project has only been tested in the QEMU emulation of the HiFive board
|
||||
* from SiFive.
|
||||
*
|
||||
* Start QEMU using the following command line:
|
||||
*
|
||||
* [your_path_1]\qemu-system-riscv32 -kernel [your_path_2]\FreeRTOS\Demo\RISC-V-Qemu-sifive_e-FreedomStudio\Debug\RTOSDemo.elf -S -s -machine sifive_e
|
||||
*
|
||||
* Where [your_path_1] must be replaced with the correct path to your QEMU
|
||||
* installation and the elf file generated by this project respectively.
|
||||
*
|
||||
*
|
||||
* NOTE 2:
|
||||
*
|
||||
* Start GDB using the following command line (this can be entered in the
|
||||
* Eclipse Debug Launch Configuration dialogue):
|
||||
*
|
||||
* riscv64-unknown-elf-gdb.exe -iex "set mem inaccessible-by-default off" -iex "set arch riscv:rv32" -iex "set riscv use_compressed_breakpoint off"
|
||||
*
|
||||
*
|
||||
* Note 3:
|
||||
*
|
||||
* Status information is sent to the QEMU serial console.
|
||||
*/
|
||||
|
||||
/* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo,
|
||||
|
@ -98,7 +123,6 @@ void vApplicationMallocFailedHook( void )
|
|||
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( ;; );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
@ -126,7 +150,6 @@ void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
|
|||
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( ;; );
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
@ -148,7 +171,6 @@ void vAssertCalled( void )
|
|||
volatile uint32_t ulSetTo1ToExitFunction = 0;
|
||||
|
||||
taskDISABLE_INTERRUPTS();
|
||||
// __asm volatile( "ebreak" );
|
||||
while( ulSetTo1ToExitFunction != 1 )
|
||||
{
|
||||
__asm volatile( "NOP" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue