From 0d63fa4ced71b913de70aee4fea08d25c3a35511 Mon Sep 17 00:00:00 2001 From: rtel Date: Mon, 24 Dec 2018 17:48:10 +0000 Subject: [PATCH] Retarget Softconsole RISC-V demo from IGLOO2 to Renode as it can have more RAM and therefore have more test tasks running. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2611 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../RTOSDemo Debug Hardware.launch | 62 -------- .../RTOSDemo Debug.launch | 59 -------- .../.cproject | 2 +- .../.project | 0 .../.settings/language.settings.xml | 2 +- .../FreeRTOSConfig.h | 5 +- .../Microsemi_Code/Packages/.repos.xml | 0 .../drivers/Core16550/core16550_regs.h | 0 .../drivers/Core16550/core_16550.c | 0 .../drivers/Core16550/core_16550.h | 0 .../drivers/CoreGPIO/core_gpio.c | 0 .../drivers/CoreGPIO/core_gpio.h | 0 .../drivers/CoreGPIO/coregpio_regs.h | 0 .../Microsemi_Code/drivers/CoreI2C/core_i2c.c | 0 .../Microsemi_Code/drivers/CoreI2C/core_i2c.h | 0 .../drivers/CoreI2C/core_smbus_regs.h | 0 .../drivers/CoreI2C/i2c_interrupt.c | 0 .../drivers/CoreTimer/core_timer.c | 0 .../drivers/CoreTimer/core_timer.h | 0 .../drivers/CoreTimer/coretimer_regs.h | 0 .../drivers/CoreUARTapb/core_uart_apb.c | 0 .../drivers/CoreUARTapb/core_uart_apb.h | 0 .../drivers/CoreUARTapb/coreuartapb_regs.h | 0 .../Microsemi_Code/hal/cpu_types.h | 0 .../Microsemi_Code/hal/hal.h | 0 .../Microsemi_Code/hal/hal_assert.h | 0 .../Microsemi_Code/hal/hal_irq.c | 0 .../Microsemi_Code/hal/hw_macros.h | 0 .../Microsemi_Code/hal/hw_reg_access.S | 0 .../Microsemi_Code/hal/hw_reg_access.h | 0 .../Microsemi_Code/riscv_hal/encoding.h | 0 .../Microsemi_Code/riscv_hal/entry.S | 0 .../Microsemi_Code/riscv_hal/init.c | 0 .../riscv_hal/microsemi-riscv-igloo2.ld | 0 .../riscv_hal/microsemi-riscv-ram.ld | 4 +- .../Microsemi_Code/riscv_hal/riscv_hal.c | 0 .../Microsemi_Code/riscv_hal/riscv_hal.h | 0 .../riscv_hal/riscv_hal_stubs.c | 0 .../Microsemi_Code/riscv_hal/riscv_plic.h | 0 .../riscv_hal/sample_hw_platform.h | 0 .../Microsemi_Code/riscv_hal/syscall.c | 0 .../RTOSDemo Debug Renode.launch | 4 +- ...mo-start-renode-emulator-and-attach.launch | 0 .../blinky_demo/main_blinky.c | 0 .../full_demo/RegTest.S | 0 .../full_demo/main_full.c | 6 +- .../hw_platform.h | 0 .../main.c | 0 .../microsemi-riscv-renode.ld | 139 ++++++++++++++++++ 49 files changed, 152 insertions(+), 131 deletions(-) delete mode 100644 FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Hardware.launch delete mode 100644 FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug.launch rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/.cproject (98%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/.project (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/.settings/language.settings.xml (93%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/FreeRTOSConfig.h (92%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/Packages/.repos.xml (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/Core16550/core16550_regs.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/Core16550/core_16550.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/Core16550/core_16550.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreGPIO/core_gpio.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreGPIO/core_gpio.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreGPIO/coregpio_regs.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreI2C/core_i2c.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreI2C/core_i2c.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreI2C/core_smbus_regs.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreI2C/i2c_interrupt.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreTimer/core_timer.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreTimer/core_timer.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreTimer/coretimer_regs.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/drivers/CoreUARTapb/coreuartapb_regs.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/cpu_types.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/hal.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/hal_assert.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/hal_irq.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/hw_macros.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/hw_reg_access.S (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/hal/hw_reg_access.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/encoding.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/entry.S (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/init.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/microsemi-riscv-igloo2.ld (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld (91%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/riscv_hal.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/riscv_hal.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/riscv_hal_stubs.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/riscv_plic.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/sample_hw_platform.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/Microsemi_Code/riscv_hal/syscall.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/RTOSDemo Debug Renode.launch (96%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/RTOSDemo-start-renode-emulator-and-attach.launch (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/blinky_demo/main_blinky.c (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/full_demo/RegTest.S (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/full_demo/main_full.c (96%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/hw_platform.h (100%) rename FreeRTOS/Demo/{RISC-V_IGLOO2_Creative_SoftConsole => RISC-V_Renode_Emulator_SoftConsole}/main.c (100%) create mode 100644 FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/microsemi-riscv-renode.ld diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Hardware.launch b/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Hardware.launch deleted file mode 100644 index 64767a502..000000000 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Hardware.launch +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug.launch b/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug.launch deleted file mode 100644 index 9bc0bf0f3..000000000 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug.launch +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.cproject b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.cproject similarity index 98% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.cproject rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.cproject index fd7ef95e1..af593fd3c 100644 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.cproject +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.cproject @@ -165,7 +165,7 @@ diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.project b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.project similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.project rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.project diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.settings/language.settings.xml b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.settings/language.settings.xml similarity index 93% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.settings/language.settings.xml rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.settings/language.settings.xml index f0af7e9d4..eb590e9ea 100644 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/.settings/language.settings.xml +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/.settings/language.settings.xml @@ -11,7 +11,7 @@ - + diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/FreeRTOSConfig.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h similarity index 92% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/FreeRTOSConfig.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h index 08df67e18..40a7d8562 100644 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h @@ -90,11 +90,10 @@ #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 1 #define configUSE_TICK_HOOK 1 -//#define configCPU_CLOCK_HZ ( ( unsigned long ) ( SYS_CLK_FREQ ) ) -#define configCPU_CLOCK_HZ ( ( unsigned long ) ( SYS_CLK_FREQ / 100 ) ) /*_RB_ Seems to be a factor of 100 between machine timer frequency and CPU frequency. */ +#define configCPU_CLOCK_HZ ( ( uint32_t ) ( SYS_CLK_FREQ ) ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) #define configMAX_PRIORITIES ( 5 ) -#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 150 ) /* Can be as low as 60 but some of the demo tasks that use this constant require it to be higher. */ +#define configMINIMAL_STACK_SIZE ( ( uint32_t ) 170 ) /* 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 ) ( 280 * 1024 ) ) #define configMAX_TASK_NAME_LEN ( 16 ) #define configUSE_TRACE_FACILITY 0 diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/Packages/.repos.xml b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/Packages/.repos.xml similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/Packages/.repos.xml rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/Packages/.repos.xml diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/Core16550/core16550_regs.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/Core16550/core16550_regs.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/Core16550/core16550_regs.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/Core16550/core16550_regs.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/Core16550/core_16550.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreGPIO/core_gpio.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreGPIO/coregpio_regs.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreGPIO/coregpio_regs.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreGPIO/coregpio_regs.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreGPIO/coregpio_regs.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_i2c.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_smbus_regs.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_smbus_regs.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_smbus_regs.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/core_smbus_regs.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/i2c_interrupt.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/i2c_interrupt.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreI2C/i2c_interrupt.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreI2C/i2c_interrupt.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreTimer/core_timer.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreTimer/coretimer_regs.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreTimer/coretimer_regs.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreTimer/coretimer_regs.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreTimer/coretimer_regs.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/core_uart_apb.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/coreuartapb_regs.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/coreuartapb_regs.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/coreuartapb_regs.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/drivers/CoreUARTapb/coreuartapb_regs.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/cpu_types.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/cpu_types.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/cpu_types.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/cpu_types.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hal.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hal.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hal.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hal.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hal_assert.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hal_assert.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hal_assert.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hal_assert.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hal_irq.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hal_irq.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hal_irq.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hal_irq.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hw_macros.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hw_macros.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hw_macros.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hw_macros.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hw_reg_access.S b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hw_reg_access.S similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hw_reg_access.S rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hw_reg_access.S diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hw_reg_access.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hw_reg_access.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/hal/hw_reg_access.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/hal/hw_reg_access.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/encoding.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/encoding.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/encoding.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/encoding.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/entry.S b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/entry.S similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/entry.S rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/entry.S diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/init.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/init.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/init.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/init.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-igloo2.ld b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-igloo2.ld similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-igloo2.ld rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-igloo2.ld diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld similarity index 91% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld index 305cb0ee6..6b08b83a3 100644 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/microsemi-riscv-ram.ld @@ -24,8 +24,8 @@ MEMORY RAM_START_ADDRESS = 0x80000000; /* Must be the same value MEMORY region ram ORIGIN above. */ RAM_SIZE = 512k; /* Must be the same value MEMORY region ram LENGTH above. */ -STACK_SIZE = 64k; /* needs to be calculated for your application */ -HEAP_SIZE = 64k; /* needs to be calculated for your application */ +STACK_SIZE = 2k; /* needs to be calculated for your application */ +HEAP_SIZE = 4; /* needs to be calculated for your application */ SECTIONS { diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal_stubs.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal_stubs.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal_stubs.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_hal_stubs.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_plic.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_plic.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/riscv_plic.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/riscv_plic.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/sample_hw_platform.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/sample_hw_platform.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/sample_hw_platform.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/sample_hw_platform.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/syscall.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/syscall.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/Microsemi_Code/riscv_hal/syscall.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/Microsemi_Code/riscv_hal/syscall.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Renode.launch b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/RTOSDemo Debug Renode.launch similarity index 96% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Renode.launch rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/RTOSDemo Debug Renode.launch index 78d09056f..8f9f92c98 100644 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo Debug Renode.launch +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/RTOSDemo Debug Renode.launch @@ -10,7 +10,7 @@ - + @@ -47,7 +47,7 @@ - + diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo-start-renode-emulator-and-attach.launch b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/RTOSDemo-start-renode-emulator-and-attach.launch similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/RTOSDemo-start-renode-emulator-and-attach.launch rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/RTOSDemo-start-renode-emulator-and-attach.launch diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/blinky_demo/main_blinky.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/blinky_demo/main_blinky.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/blinky_demo/main_blinky.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/blinky_demo/main_blinky.c diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/full_demo/RegTest.S b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/full_demo/RegTest.S similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/full_demo/RegTest.S rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/full_demo/RegTest.S diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/full_demo/main_full.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/full_demo/main_full.c similarity index 96% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/full_demo/main_full.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/full_demo/main_full.c index f86b8c6a3..dc7d76863 100644 --- a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/full_demo/main_full.c +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/full_demo/main_full.c @@ -227,7 +227,7 @@ TickType_t xDelayPeriod = mainNO_ERROR_CHECK_TASK_PERIOD; TickType_t xLastExecutionTime; uint32_t ulLastRegTest1Value = 0, ulLastRegTest2Value = 0; uint32_t ulLastTimer0Interrupts = 0, ulLastTimer1Interrupts = 0; -char * const pcPassMessage = "Pass.\r\n"; +char * const pcPassMessage = "."; char * pcStatusMessage = pcPassMessage; extern void vSendString( const char * const pcString ); extern void vToggleLED( void ); @@ -235,6 +235,10 @@ extern void vToggleLED( void ); /* Just to stop compiler warnings. */ ( void ) pvParameters; + /* Start with a pass message, after which a '.' character will be printed + out on each successful loop. */ + vSendString( "Pass" ); + /* Initialise xLastExecutionTime so the first call to vTaskDelayUntil() works correctly. */ xLastExecutionTime = xTaskGetTickCount(); diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/hw_platform.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/hw_platform.h similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/hw_platform.h rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/hw_platform.h diff --git a/FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/main.c b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/main.c similarity index 100% rename from FreeRTOS/Demo/RISC-V_IGLOO2_Creative_SoftConsole/main.c rename to FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/main.c diff --git a/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/microsemi-riscv-renode.ld b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/microsemi-riscv-renode.ld new file mode 100644 index 000000000..6b08b83a3 --- /dev/null +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/microsemi-riscv-renode.ld @@ -0,0 +1,139 @@ +/******************************************************************************* + * (c) Copyright 2016-2018 Microsemi SoC Products Group. All rights reserved. + * + * file name : microsemi-riscv-ram.ld + * Mi-V soft processor linker script for creating a SoftConsole downloadable + * debug image executing in SRAM. + * + * This linker script assumes that the SRAM is connected at on the Mi-V soft + * processor memory space. The start address and size of the memory space must + * be correct as per the Libero design. + * + * SVN $Revision: 9661 $ + * SVN $Date: 2018-01-15 16:13:33 +0530 (Mon, 15 Jan 2018) $ + */ + +OUTPUT_ARCH( "riscv" ) +ENTRY(_start) + + +MEMORY +{ + ram (rwx) : ORIGIN = 0x80000000, LENGTH = 512k +} + +RAM_START_ADDRESS = 0x80000000; /* Must be the same value MEMORY region ram ORIGIN above. */ +RAM_SIZE = 512k; /* Must be the same value MEMORY region ram LENGTH above. */ +STACK_SIZE = 2k; /* needs to be calculated for your application */ +HEAP_SIZE = 4; /* needs to be calculated for your application */ + +SECTIONS +{ + .text : ALIGN(0x10) + { + KEEP (*(SORT_NONE(.text.entry))) + . = ALIGN(0x10); + *(.text .text.* .gnu.linkonce.t.*) + *(.plt) + . = ALIGN(0x10); + + KEEP (*crtbegin.o(.ctors)) + KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) + KEEP (*(SORT(.ctors.*))) + KEEP (*crtend.o(.ctors)) + KEEP (*crtbegin.o(.dtors)) + KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) + KEEP (*(SORT(.dtors.*))) + KEEP (*crtend.o(.dtors)) + + *(.rodata .rodata.* .gnu.linkonce.r.*) + *(.gcc_except_table) + *(.eh_frame_hdr) + *(.eh_frame) + + KEEP (*(.init)) + KEEP (*(.fini)) + + PROVIDE_HIDDEN (__preinit_array_start = .); + KEEP (*(.preinit_array)) + PROVIDE_HIDDEN (__preinit_array_end = .); + PROVIDE_HIDDEN (__init_array_start = .); + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array)) + PROVIDE_HIDDEN (__init_array_end = .); + PROVIDE_HIDDEN (__fini_array_start = .); + KEEP (*(.fini_array)) + KEEP (*(SORT(.fini_array.*))) + PROVIDE_HIDDEN (__fini_array_end = .); + . = ALIGN(0x10); + + } > ram + + /* short/global data section */ + .sdata : ALIGN(0x10) + { + __sdata_load = LOADADDR(.sdata); + __sdata_start = .; + PROVIDE( __global_pointer$ = . + 0x800); + *(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) + *(.srodata*) + *(.sdata .sdata.* .gnu.linkonce.s.*) + . = ALIGN(0x10); + __sdata_end = .; + } > ram + + /* data section */ + .data : ALIGN(0x10) + { + __data_load = LOADADDR(.data); + __data_start = .; + *(.got.plt) *(.got) + *(.shdata) + *(.data .data.* .gnu.linkonce.d.*) + . = ALIGN(0x10); + __data_end = .; + } > ram + + /* sbss section */ + .sbss : ALIGN(0x10) + { + __sbss_start = .; + *(.sbss .sbss.* .gnu.linkonce.sb.*) + *(.scommon) + . = ALIGN(0x10); + __sbss_end = .; + } > ram + + /* sbss section */ + .bss : ALIGN(0x10) + { + __bss_start = .; + *(.shbss) + *(.bss .bss.* .gnu.linkonce.b.*) + *(COMMON) + . = ALIGN(0x10); + __bss_end = .; + } > ram + + /* End of uninitialized data segment */ + _end = .; + + .heap : ALIGN(0x10) + { + __heap_start = .; + . += HEAP_SIZE; + __heap_end = .; + . = ALIGN(0x10); + _heap_end = __heap_end; + } > ram + + .stack : ALIGN(0x10) + { + __stack_bottom = .; + . += STACK_SIZE; + __stack_top = .; + _sp = .; + __freertos_irq_stack_top = .; + } > ram +} + -- 2.39.5