[bsp][renesas] 修复 renesas 部分 bsp 并添加 ci (#7782)
This commit is contained in:
parent
9c14c518db
commit
efbcd5d487
|
@ -188,6 +188,8 @@ jobs:
|
||||||
- "renesas/ra6m3-ek"
|
- "renesas/ra6m3-ek"
|
||||||
- "renesas/ra6m4-cpk"
|
- "renesas/ra6m4-cpk"
|
||||||
- "renesas/ra6m3-hmi-board"
|
- "renesas/ra6m3-hmi-board"
|
||||||
|
- "renesas/ra4m2-eco"
|
||||||
|
- "renesas/ra2l1-cpk"
|
||||||
- RTT_BSP: "gd32_n32_apm32"
|
- RTT_BSP: "gd32_n32_apm32"
|
||||||
RTT_TOOL_CHAIN: "sourcery-arm"
|
RTT_TOOL_CHAIN: "sourcery-arm"
|
||||||
SUB_RTT_BSP:
|
SUB_RTT_BSP:
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#
|
#
|
||||||
CONFIG_RT_NAME_MAX=8
|
CONFIG_RT_NAME_MAX=8
|
||||||
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
|
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
|
||||||
|
# CONFIG_RT_USING_AMP is not set
|
||||||
# CONFIG_RT_USING_SMP is not set
|
# CONFIG_RT_USING_SMP is not set
|
||||||
CONFIG_RT_ALIGN_SIZE=8
|
CONFIG_RT_ALIGN_SIZE=8
|
||||||
# CONFIG_RT_THREAD_PRIORITY_8 is not set
|
# CONFIG_RT_THREAD_PRIORITY_8 is not set
|
||||||
|
@ -35,16 +36,16 @@ CONFIG_RT_KSERVICE_USING_STDLIB=y
|
||||||
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
# CONFIG_RT_KPRINTF_USING_LONGLONG is not set
|
||||||
CONFIG_RT_DEBUG=y
|
CONFIG_RT_DEBUG=y
|
||||||
# CONFIG_RT_DEBUG_COLOR is not set
|
# CONFIG_RT_DEBUG_COLOR is not set
|
||||||
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
|
# CONFIG_RT_DEBUG_INIT is not set
|
||||||
# CONFIG_RT_DEBUG_THREAD_CONFIG is not set
|
# CONFIG_RT_DEBUG_THREAD is not set
|
||||||
# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set
|
# CONFIG_RT_DEBUG_SCHEDULER is not set
|
||||||
# CONFIG_RT_DEBUG_IPC_CONFIG is not set
|
# CONFIG_RT_DEBUG_IPC is not set
|
||||||
# CONFIG_RT_DEBUG_TIMER_CONFIG is not set
|
# CONFIG_RT_DEBUG_TIMER is not set
|
||||||
# CONFIG_RT_DEBUG_IRQ_CONFIG is not set
|
# CONFIG_RT_DEBUG_IRQ is not set
|
||||||
# CONFIG_RT_DEBUG_MEM_CONFIG is not set
|
# CONFIG_RT_DEBUG_MEM is not set
|
||||||
# CONFIG_RT_DEBUG_SLAB_CONFIG is not set
|
# CONFIG_RT_DEBUG_SLAB is not set
|
||||||
# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set
|
# CONFIG_RT_DEBUG_MEMHEAP is not set
|
||||||
# CONFIG_RT_DEBUG_MODULE_CONFIG is not set
|
# CONFIG_RT_DEBUG_MODULE is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Inter-Thread communication
|
# Inter-Thread communication
|
||||||
|
@ -54,12 +55,12 @@ CONFIG_RT_USING_MUTEX=y
|
||||||
CONFIG_RT_USING_EVENT=y
|
CONFIG_RT_USING_EVENT=y
|
||||||
CONFIG_RT_USING_MAILBOX=y
|
CONFIG_RT_USING_MAILBOX=y
|
||||||
CONFIG_RT_USING_MESSAGEQUEUE=y
|
CONFIG_RT_USING_MESSAGEQUEUE=y
|
||||||
|
# CONFIG_RT_USING_MESSAGEQUEUE_PRIORITY is not set
|
||||||
# CONFIG_RT_USING_SIGNALS is not set
|
# CONFIG_RT_USING_SIGNALS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Memory Management
|
# Memory Management
|
||||||
#
|
#
|
||||||
CONFIG_RT_PAGE_MAX_ORDER=11
|
|
||||||
CONFIG_RT_USING_MEMPOOL=y
|
CONFIG_RT_USING_MEMPOOL=y
|
||||||
CONFIG_RT_USING_SMALL_MEM=y
|
CONFIG_RT_USING_SMALL_MEM=y
|
||||||
# CONFIG_RT_USING_SLAB is not set
|
# CONFIG_RT_USING_SLAB is not set
|
||||||
|
@ -82,8 +83,8 @@ CONFIG_RT_USING_DEVICE=y
|
||||||
# CONFIG_RT_USING_INTERRUPT_INFO is not set
|
# CONFIG_RT_USING_INTERRUPT_INFO is not set
|
||||||
CONFIG_RT_USING_CONSOLE=y
|
CONFIG_RT_USING_CONSOLE=y
|
||||||
CONFIG_RT_CONSOLEBUF_SIZE=128
|
CONFIG_RT_CONSOLEBUF_SIZE=128
|
||||||
CONFIG_RT_CONSOLE_DEVICE_NAME="uart"
|
CONFIG_RT_CONSOLE_DEVICE_NAME="uart9"
|
||||||
CONFIG_RT_VER_NUM=0x50000
|
CONFIG_RT_VER_NUM=0x50001
|
||||||
# CONFIG_RT_USING_STDC_ATOMIC is not set
|
# CONFIG_RT_USING_STDC_ATOMIC is not set
|
||||||
# CONFIG_RT_USING_CACHE is not set
|
# CONFIG_RT_USING_CACHE is not set
|
||||||
# CONFIG_RT_USING_HW_ATOMIC is not set
|
# CONFIG_RT_USING_HW_ATOMIC is not set
|
||||||
|
@ -114,13 +115,19 @@ CONFIG_FINSH_USING_DESCRIPTION=y
|
||||||
# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
|
# CONFIG_FINSH_ECHO_DISABLE_DEFAULT is not set
|
||||||
# CONFIG_FINSH_USING_AUTH is not set
|
# CONFIG_FINSH_USING_AUTH is not set
|
||||||
CONFIG_FINSH_ARG_MAX=10
|
CONFIG_FINSH_ARG_MAX=10
|
||||||
|
|
||||||
|
#
|
||||||
|
# DFS: device virtual file system
|
||||||
|
#
|
||||||
CONFIG_RT_USING_DFS=y
|
CONFIG_RT_USING_DFS=y
|
||||||
CONFIG_DFS_USING_POSIX=y
|
CONFIG_DFS_USING_POSIX=y
|
||||||
CONFIG_DFS_USING_WORKDIR=y
|
CONFIG_DFS_USING_WORKDIR=y
|
||||||
|
# CONFIG_RT_USING_DFS_MNTTABLE is not set
|
||||||
|
CONFIG_DFS_FD_MAX=16
|
||||||
|
CONFIG_RT_USING_DFS_V1=y
|
||||||
|
# CONFIG_RT_USING_DFS_V2 is not set
|
||||||
CONFIG_DFS_FILESYSTEMS_MAX=4
|
CONFIG_DFS_FILESYSTEMS_MAX=4
|
||||||
CONFIG_DFS_FILESYSTEM_TYPES_MAX=4
|
CONFIG_DFS_FILESYSTEM_TYPES_MAX=4
|
||||||
CONFIG_DFS_FD_MAX=16
|
|
||||||
# CONFIG_RT_USING_DFS_MNTTABLE is not set
|
|
||||||
# CONFIG_RT_USING_DFS_ELMFAT is not set
|
# CONFIG_RT_USING_DFS_ELMFAT is not set
|
||||||
# CONFIG_RT_USING_DFS_DEVFS is not set
|
# CONFIG_RT_USING_DFS_DEVFS is not set
|
||||||
# CONFIG_RT_USING_DFS_ROMFS is not set
|
# CONFIG_RT_USING_DFS_ROMFS is not set
|
||||||
|
@ -136,10 +143,9 @@ CONFIG_RT_USING_DEVICE_IPC=y
|
||||||
CONFIG_RT_UNAMED_PIPE_NUMBER=64
|
CONFIG_RT_UNAMED_PIPE_NUMBER=64
|
||||||
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
|
# CONFIG_RT_USING_SYSTEM_WORKQUEUE is not set
|
||||||
CONFIG_RT_USING_SERIAL=y
|
CONFIG_RT_USING_SERIAL=y
|
||||||
CONFIG_RT_USING_SERIAL_V1=y
|
# CONFIG_RT_USING_SERIAL_V1 is not set
|
||||||
# CONFIG_RT_USING_SERIAL_V2 is not set
|
CONFIG_RT_USING_SERIAL_V2=y
|
||||||
CONFIG_RT_SERIAL_USING_DMA=y
|
CONFIG_RT_SERIAL_USING_DMA=y
|
||||||
CONFIG_RT_SERIAL_RB_BUFSZ=64
|
|
||||||
# CONFIG_RT_USING_CAN is not set
|
# CONFIG_RT_USING_CAN is not set
|
||||||
# CONFIG_RT_USING_HWTIMER is not set
|
# CONFIG_RT_USING_HWTIMER is not set
|
||||||
# CONFIG_RT_USING_CPUTIME is not set
|
# CONFIG_RT_USING_CPUTIME is not set
|
||||||
|
@ -221,6 +227,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_RT_USING_UTEST is not set
|
# CONFIG_RT_USING_UTEST is not set
|
||||||
# CONFIG_RT_USING_VAR_EXPORT is not set
|
# CONFIG_RT_USING_VAR_EXPORT is not set
|
||||||
# CONFIG_RT_USING_ADT is not set
|
# CONFIG_RT_USING_ADT is not set
|
||||||
|
# CONFIG_RT_USING_RESOURCE_ID is not set
|
||||||
# CONFIG_RT_USING_RT_LINK is not set
|
# CONFIG_RT_USING_RT_LINK is not set
|
||||||
# CONFIG_RT_USING_VBUS is not set
|
# CONFIG_RT_USING_VBUS is not set
|
||||||
|
|
||||||
|
@ -247,7 +254,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_KAWAII_MQTT is not set
|
# CONFIG_PKG_USING_KAWAII_MQTT is not set
|
||||||
# CONFIG_PKG_USING_BC28_MQTT is not set
|
# CONFIG_PKG_USING_BC28_MQTT is not set
|
||||||
# CONFIG_PKG_USING_WEBTERMINAL is not set
|
# CONFIG_PKG_USING_WEBTERMINAL is not set
|
||||||
# CONFIG_PKG_USING_LIBMODBUS is not set
|
|
||||||
# CONFIG_PKG_USING_FREEMODBUS is not set
|
# CONFIG_PKG_USING_FREEMODBUS is not set
|
||||||
# CONFIG_PKG_USING_NANOPB is not set
|
# CONFIG_PKG_USING_NANOPB is not set
|
||||||
|
|
||||||
|
@ -518,6 +524,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_QPC is not set
|
# CONFIG_PKG_USING_QPC is not set
|
||||||
# CONFIG_PKG_USING_AGILE_UPGRADE is not set
|
# CONFIG_PKG_USING_AGILE_UPGRADE is not set
|
||||||
# CONFIG_PKG_USING_FLASH_BLOB is not set
|
# CONFIG_PKG_USING_FLASH_BLOB is not set
|
||||||
|
# CONFIG_PKG_USING_MLIBC is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# peripheral libraries and drivers
|
# peripheral libraries and drivers
|
||||||
|
@ -602,6 +609,7 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_FT5426 is not set
|
# CONFIG_PKG_USING_FT5426 is not set
|
||||||
# CONFIG_PKG_USING_FT6236 is not set
|
# CONFIG_PKG_USING_FT6236 is not set
|
||||||
# CONFIG_PKG_USING_XPT2046_TOUCH is not set
|
# CONFIG_PKG_USING_XPT2046_TOUCH is not set
|
||||||
|
# CONFIG_PKG_USING_CST816X is not set
|
||||||
# CONFIG_PKG_USING_REALTEK_AMEBA is not set
|
# CONFIG_PKG_USING_REALTEK_AMEBA is not set
|
||||||
# CONFIG_PKG_USING_STM32_SDIO is not set
|
# CONFIG_PKG_USING_STM32_SDIO is not set
|
||||||
# CONFIG_PKG_USING_ESP_IDF is not set
|
# CONFIG_PKG_USING_ESP_IDF is not set
|
||||||
|
@ -614,7 +622,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_LKDGUI is not set
|
# CONFIG_PKG_USING_LKDGUI is not set
|
||||||
# CONFIG_PKG_USING_NRF5X_SDK is not set
|
# CONFIG_PKG_USING_NRF5X_SDK is not set
|
||||||
# CONFIG_PKG_USING_NRFX is not set
|
# CONFIG_PKG_USING_NRFX is not set
|
||||||
# CONFIG_PKG_USING_WM_LIBRARIES is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Kendryte SDK
|
# Kendryte SDK
|
||||||
|
@ -672,14 +679,17 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
|
# CONFIG_PKG_USING_MISAKA_AT24CXX is not set
|
||||||
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
|
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
|
||||||
# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
|
# CONFIG_PKG_USING_LORA_MODEM_DRIVER is not set
|
||||||
# CONFIG_PKG_USING_BL_MCU_SDK is not set
|
|
||||||
# CONFIG_PKG_USING_SOFT_SERIAL is not set
|
# CONFIG_PKG_USING_SOFT_SERIAL is not set
|
||||||
# CONFIG_PKG_USING_MB85RS16 is not set
|
# CONFIG_PKG_USING_MB85RS16 is not set
|
||||||
# CONFIG_PKG_USING_RFM300 is not set
|
# CONFIG_PKG_USING_RFM300 is not set
|
||||||
# CONFIG_PKG_USING_IO_INPUT_FILTER is not set
|
# CONFIG_PKG_USING_IO_INPUT_FILTER is not set
|
||||||
# CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set
|
# CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set
|
||||||
# CONFIG_PKG_USING_LRF_NV7LIDAR is not set
|
# CONFIG_PKG_USING_LRF_NV7LIDAR is not set
|
||||||
|
# CONFIG_PKG_USING_AIP650 is not set
|
||||||
# CONFIG_PKG_USING_FINGERPRINT is not set
|
# CONFIG_PKG_USING_FINGERPRINT is not set
|
||||||
|
# CONFIG_PKG_USING_BT_ECB02C is not set
|
||||||
|
# CONFIG_PKG_USING_UAT is not set
|
||||||
|
# CONFIG_PKG_USING_SPI_TOOLS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# AI packages
|
# AI packages
|
||||||
|
@ -698,7 +708,10 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# Signal Processing and Control Algorithm Packages
|
# Signal Processing and Control Algorithm Packages
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_FIRE_PID_CURVE is not set
|
# CONFIG_PKG_USING_FIRE_PID_CURVE is not set
|
||||||
|
# CONFIG_PKG_USING_QPID is not set
|
||||||
# CONFIG_PKG_USING_UKAL is not set
|
# CONFIG_PKG_USING_UKAL is not set
|
||||||
|
# CONFIG_PKG_USING_DIGITALCTRL is not set
|
||||||
|
# CONFIG_PKG_USING_KISSFFT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# miscellaneous packages
|
# miscellaneous packages
|
||||||
|
@ -745,7 +758,6 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_DSTR is not set
|
# CONFIG_PKG_USING_DSTR is not set
|
||||||
# CONFIG_PKG_USING_TINYFRAME is not set
|
# CONFIG_PKG_USING_TINYFRAME is not set
|
||||||
# CONFIG_PKG_USING_KENDRYTE_DEMO is not set
|
# CONFIG_PKG_USING_KENDRYTE_DEMO is not set
|
||||||
# CONFIG_PKG_USING_DIGITALCTRL is not set
|
|
||||||
# CONFIG_PKG_USING_UPACKER is not set
|
# CONFIG_PKG_USING_UPACKER is not set
|
||||||
# CONFIG_PKG_USING_UPARAM is not set
|
# CONFIG_PKG_USING_UPARAM is not set
|
||||||
# CONFIG_PKG_USING_HELLO is not set
|
# CONFIG_PKG_USING_HELLO is not set
|
||||||
|
@ -770,8 +782,9 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
# CONFIG_PKG_USING_RTDUINO is not set
|
# CONFIG_PKG_USING_RTDUINO is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Projects
|
# Projects and Demos
|
||||||
#
|
#
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_MSGQ_C_CPP_DEMO is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set
|
# CONFIG_PKG_USING_ARDUINO_ULTRASOUND_RADAR is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_SENSOR_KIT is not set
|
# CONFIG_PKG_USING_ARDUINO_SENSOR_KIT is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_MATLAB_SUPPORT is not set
|
# CONFIG_PKG_USING_ARDUINO_MATLAB_SUPPORT is not set
|
||||||
|
@ -918,14 +931,19 @@ CONFIG_RT_LIBC_DEFAULT_TIMEZONE=8
|
||||||
#
|
#
|
||||||
# Display
|
# Display
|
||||||
#
|
#
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_GFX_LIBRARY is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_U8G2 is not set
|
# CONFIG_PKG_USING_ARDUINO_U8G2 is not set
|
||||||
# CONFIG_PKG_USING_ARDUINO_U8GLIB_ARDUINO is not set
|
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ST7735 is not set
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_SSD1306 is not set
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_ADAFRUIT_ILI9341 is not set
|
||||||
# CONFIG_PKG_USING_SEEED_TM1637 is not set
|
# CONFIG_PKG_USING_SEEED_TM1637 is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Timing
|
# Timing
|
||||||
#
|
#
|
||||||
# CONFIG_PKG_USING_ARDUINO_MSTIMER2 is not set
|
# CONFIG_PKG_USING_ARDUINO_MSTIMER2 is not set
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_TICKER is not set
|
||||||
|
# CONFIG_PKG_USING_ARDUINO_TASKSCHEDULER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Data Processing
|
# Data Processing
|
||||||
|
@ -1005,7 +1023,11 @@ CONFIG_BSP_USING_UART=y
|
||||||
# CONFIG_BSP_USING_UART1 is not set
|
# CONFIG_BSP_USING_UART1 is not set
|
||||||
# CONFIG_BSP_USING_UART2 is not set
|
# CONFIG_BSP_USING_UART2 is not set
|
||||||
# CONFIG_BSP_USING_UART3 is not set
|
# CONFIG_BSP_USING_UART3 is not set
|
||||||
# CONFIG_BSP_USING_UART9 is not set
|
CONFIG_BSP_USING_UART9=y
|
||||||
|
# CONFIG_BSP_UART9_RX_USING_DMA is not set
|
||||||
|
# CONFIG_BSP_UART9_TX_USING_DMA is not set
|
||||||
|
CONFIG_BSP_UART9_RX_BUFSIZE=256
|
||||||
|
CONFIG_BSP_UART9_TX_BUFSIZE=0
|
||||||
# CONFIG_BSP_USING_I2C is not set
|
# CONFIG_BSP_USING_I2C is not set
|
||||||
# CONFIG_BSP_USING_SPI is not set
|
# CONFIG_BSP_USING_SPI is not set
|
||||||
# CONFIG_BSP_USING_ADC is not set
|
# CONFIG_BSP_USING_ADC is not set
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
/* generated configuration header file - do not edit */
|
||||||
|
#ifndef R_ICU_CFG_H_
|
||||||
|
#define R_ICU_CFG_H_
|
||||||
|
#define ICU_CFG_PARAM_CHECKING_ENABLE (BSP_CFG_PARAM_CHECKING_ENABLE)
|
||||||
|
#endif /* R_ICU_CFG_H_ */
|
|
@ -36,7 +36,6 @@
|
||||||
|
|
||||||
/* Memory Management */
|
/* Memory Management */
|
||||||
|
|
||||||
#define RT_PAGE_MAX_ORDER 11
|
|
||||||
#define RT_USING_MEMPOOL
|
#define RT_USING_MEMPOOL
|
||||||
#define RT_USING_SMALL_MEM
|
#define RT_USING_SMALL_MEM
|
||||||
#define RT_USING_SMALL_MEM_AS_HEAP
|
#define RT_USING_SMALL_MEM_AS_HEAP
|
||||||
|
@ -47,8 +46,8 @@
|
||||||
#define RT_USING_DEVICE
|
#define RT_USING_DEVICE
|
||||||
#define RT_USING_CONSOLE
|
#define RT_USING_CONSOLE
|
||||||
#define RT_CONSOLEBUF_SIZE 128
|
#define RT_CONSOLEBUF_SIZE 128
|
||||||
#define RT_CONSOLE_DEVICE_NAME "uart"
|
#define RT_CONSOLE_DEVICE_NAME "uart9"
|
||||||
#define RT_VER_NUM 0x50000
|
#define RT_VER_NUM 0x50001
|
||||||
|
|
||||||
/* RT-Thread Components */
|
/* RT-Thread Components */
|
||||||
|
|
||||||
|
@ -69,21 +68,24 @@
|
||||||
#define MSH_USING_BUILT_IN_COMMANDS
|
#define MSH_USING_BUILT_IN_COMMANDS
|
||||||
#define FINSH_USING_DESCRIPTION
|
#define FINSH_USING_DESCRIPTION
|
||||||
#define FINSH_ARG_MAX 10
|
#define FINSH_ARG_MAX 10
|
||||||
|
|
||||||
|
/* DFS: device virtual file system */
|
||||||
|
|
||||||
#define RT_USING_DFS
|
#define RT_USING_DFS
|
||||||
#define DFS_USING_POSIX
|
#define DFS_USING_POSIX
|
||||||
#define DFS_USING_WORKDIR
|
#define DFS_USING_WORKDIR
|
||||||
|
#define DFS_FD_MAX 16
|
||||||
|
#define RT_USING_DFS_V1
|
||||||
#define DFS_FILESYSTEMS_MAX 4
|
#define DFS_FILESYSTEMS_MAX 4
|
||||||
#define DFS_FILESYSTEM_TYPES_MAX 4
|
#define DFS_FILESYSTEM_TYPES_MAX 4
|
||||||
#define DFS_FD_MAX 16
|
|
||||||
|
|
||||||
/* Device Drivers */
|
/* Device Drivers */
|
||||||
|
|
||||||
#define RT_USING_DEVICE_IPC
|
#define RT_USING_DEVICE_IPC
|
||||||
#define RT_UNAMED_PIPE_NUMBER 64
|
#define RT_UNAMED_PIPE_NUMBER 64
|
||||||
#define RT_USING_SERIAL
|
#define RT_USING_SERIAL
|
||||||
#define RT_USING_SERIAL_V1
|
#define RT_USING_SERIAL_V2
|
||||||
#define RT_SERIAL_USING_DMA
|
#define RT_SERIAL_USING_DMA
|
||||||
#define RT_SERIAL_RB_BUFSZ 64
|
|
||||||
#define RT_USING_PIN
|
#define RT_USING_PIN
|
||||||
|
|
||||||
/* Using USB */
|
/* Using USB */
|
||||||
|
@ -193,7 +195,7 @@
|
||||||
/* Arduino libraries */
|
/* Arduino libraries */
|
||||||
|
|
||||||
|
|
||||||
/* Projects */
|
/* Projects and Demos */
|
||||||
|
|
||||||
|
|
||||||
/* Sensors */
|
/* Sensors */
|
||||||
|
@ -238,6 +240,9 @@
|
||||||
|
|
||||||
#define BSP_USING_GPIO
|
#define BSP_USING_GPIO
|
||||||
#define BSP_USING_UART
|
#define BSP_USING_UART
|
||||||
|
#define BSP_USING_UART9
|
||||||
|
#define BSP_UART9_RX_BUFSIZE 256
|
||||||
|
#define BSP_UART9_TX_BUFSIZE 0
|
||||||
|
|
||||||
/* Board extended module Drivers */
|
/* Board extended module Drivers */
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ if os.getenv('RTT_ROOT'):
|
||||||
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = 'C:\Users\XXYYZZ'
|
EXEC_PATH = ''
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armclang'
|
PLATFORM = 'armclang'
|
||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
|
|
|
@ -4,6 +4,10 @@ from building import *
|
||||||
objs = []
|
objs = []
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
list = os.listdir(cwd)
|
list = os.listdir(cwd)
|
||||||
|
CPPPATH = [cwd]
|
||||||
|
src = []
|
||||||
|
|
||||||
|
objs = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
for item in list:
|
for item in list:
|
||||||
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
||||||
|
|
|
@ -0,0 +1,591 @@
|
||||||
|
/*
|
||||||
|
Linker File for Renesas FSP
|
||||||
|
*/
|
||||||
|
|
||||||
|
INCLUDE memory_regions.ld
|
||||||
|
|
||||||
|
QSPI_FLASH_PRV_LENGTH = DEFINED(QSPI_FLASH_SIZE) ? ABSOLUTE(QSPI_FLASH_SIZE) : ABSOLUTE(QSPI_FLASH_LENGTH);
|
||||||
|
OSPI_DEVICE_0_PRV_LENGTH = DEFINED(OSPI_DEVICE_0_SIZE) ? ABSOLUTE(OSPI_DEVICE_0_SIZE) : ABSOLUTE(OSPI_DEVICE_0_LENGTH);
|
||||||
|
OSPI_DEVICE_1_PRV_LENGTH = DEFINED(OSPI_DEVICE_1_SIZE) ? ABSOLUTE(OSPI_DEVICE_1_SIZE) : ABSOLUTE(OSPI_DEVICE_1_LENGTH);
|
||||||
|
|
||||||
|
/* If a flat (secure) project has DEFINED RAM_NS_BUFFER_LENGTH, then emit IDAU symbols to allocate non-secure RAM. */
|
||||||
|
__RESERVE_NS_RAM = !DEFINED(PROJECT_NONSECURE) && DEFINED(RAM_NS_BUFFER_LENGTH) && (OPTION_SETTING_S_LENGTH != 0);
|
||||||
|
|
||||||
|
RAM_NS_BUFFER_BLOCK_LENGTH = DEFINED(RAM_NS_BUFFER_LENGTH) ? ALIGN(RAM_NS_BUFFER_LENGTH, 8192) : 0;
|
||||||
|
RAM_NS_BUFFER_LENGTH = DEFINED(RAM_NS_BUFFER_LENGTH) ? RAM_NS_BUFFER_LENGTH : 0;
|
||||||
|
RAM_NS_BUFFER_START = RAM_START + RAM_LENGTH - RAM_NS_BUFFER_LENGTH;
|
||||||
|
RAM_NS_BUFFER_BLOCK_START = RAM_START + RAM_LENGTH - RAM_NS_BUFFER_BLOCK_LENGTH;
|
||||||
|
|
||||||
|
OPTION_SETTING_START_NS = 0x0100A180;
|
||||||
|
|
||||||
|
/* This definition is used to avoid moving the counter in OPTION_SETTING regions for projects that should not configure option settings.
|
||||||
|
* Bootloader images do not configure option settings because they are owned by the bootloader.
|
||||||
|
* FSP_BOOTABLE_IMAGE is only defined in bootloader images. */
|
||||||
|
__bl_FSP_BOOTABLE_IMAGE = 1;
|
||||||
|
__bln_FSP_BOOTABLE_IMAGE = 1;
|
||||||
|
PROJECT_SECURE_OR_FLAT = !DEFINED(PROJECT_NONSECURE) && OPTION_SETTING_LENGTH && !DEFINED(FSP_BOOTABLE_IMAGE);
|
||||||
|
USE_OPTION_SETTING_NS = DEFINED(PROJECT_NONSECURE) && !DEFINED(FSP_BOOTABLE_IMAGE);
|
||||||
|
|
||||||
|
__bl_FLASH_IMAGE_START = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_IMAGE_NUMBER == 1 ? FLASH_BOOTLOADER_LENGTH + FLASH_BOOTLOADER_HEADER_LENGTH :
|
||||||
|
FLASH_BOOTLOADER_LENGTH + FLASH_BOOTLOADER_SCRATCH_LENGTH + FLASH_APPLICATION_S_LENGTH + FLASH_BOOTLOADER_HEADER_LENGTH;
|
||||||
|
__bl_FLASH_IMAGE_LENGTH = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_S_LENGTH - FLASH_BOOTLOADER_HEADER_LENGTH;
|
||||||
|
__bl_FLASH_IMAGE_END = __bl_FLASH_IMAGE_START + __bl_FLASH_IMAGE_LENGTH;
|
||||||
|
__bl_FLASH_NS_START = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH == 0 ? __bl_FLASH_IMAGE_END :
|
||||||
|
__bl_FLASH_IMAGE_START - FLASH_BOOTLOADER_HEADER_LENGTH + FLASH_APPLICATION_S_LENGTH;
|
||||||
|
__bl_FLASH_NSC_START = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH == 0 ? __bl_FLASH_IMAGE_END :
|
||||||
|
__bl_FLASH_NS_START - FLASH_APPLICATION_NSC_LENGTH;
|
||||||
|
__bl_RAM_NS_START = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH == 0 ? RAM_START + RAM_LENGTH :
|
||||||
|
RAM_START + RAM_LENGTH - RAM_APPLICATION_NS_LENGTH;
|
||||||
|
__bl_RAM_NSC_START = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH == 0 ? RAM_START + RAM_LENGTH :
|
||||||
|
__bl_RAM_NS_START - RAM_APPLICATION_NSC_LENGTH;
|
||||||
|
__bl_FLASH_NS_IMAGE_START = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH == 0 ? __bl_FLASH_IMAGE_END :
|
||||||
|
__bl_FLASH_NS_START + FLASH_BOOTLOADER_HEADER_LENGTH_2;
|
||||||
|
__bln_FLASH_IMAGE_START = __bl_FLASH_NS_IMAGE_START;
|
||||||
|
__bln_FLASH_IMAGE_LENGTH = !DEFINED(FLASH_BOOTLOADER_LENGTH) ? 0 :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH == 0 ? __bl_FLASH_IMAGE_END :
|
||||||
|
FLASH_APPLICATION_NS_LENGTH - FLASH_BOOTLOADER_HEADER_LENGTH_2;
|
||||||
|
|
||||||
|
FLASH_ORIGIN = DEFINED(FLASH_IMAGE_START) ? FLASH_IMAGE_START : FLASH_START;
|
||||||
|
LIMITED_FLASH_LENGTH = DEFINED(FLASH_IMAGE_LENGTH) ? FLASH_IMAGE_LENGTH :
|
||||||
|
DEFINED(FLASH_BOOTLOADER_LENGTH) ? FLASH_BOOTLOADER_LENGTH :
|
||||||
|
FLASH_LENGTH;
|
||||||
|
|
||||||
|
/* Define memory regions. */
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH (rx) : ORIGIN = FLASH_ORIGIN, LENGTH = LIMITED_FLASH_LENGTH
|
||||||
|
RAM (rwx) : ORIGIN = RAM_START, LENGTH = RAM_LENGTH
|
||||||
|
DATA_FLASH (rx) : ORIGIN = DATA_FLASH_START, LENGTH = DATA_FLASH_LENGTH
|
||||||
|
QSPI_FLASH (rx) : ORIGIN = QSPI_FLASH_START, LENGTH = QSPI_FLASH_PRV_LENGTH
|
||||||
|
OSPI_DEVICE_0 (rx) : ORIGIN = OSPI_DEVICE_0_START, LENGTH = OSPI_DEVICE_0_PRV_LENGTH
|
||||||
|
OSPI_DEVICE_1 (rx) : ORIGIN = OSPI_DEVICE_1_START, LENGTH = OSPI_DEVICE_1_PRV_LENGTH
|
||||||
|
SDRAM (rwx) : ORIGIN = SDRAM_START, LENGTH = SDRAM_LENGTH
|
||||||
|
OPTION_SETTING (r): ORIGIN = OPTION_SETTING_START, LENGTH = OPTION_SETTING_LENGTH
|
||||||
|
OPTION_SETTING_S (r): ORIGIN = OPTION_SETTING_S_START, LENGTH = OPTION_SETTING_S_LENGTH
|
||||||
|
ID_CODE (rx) : ORIGIN = ID_CODE_START, LENGTH = ID_CODE_LENGTH
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Library configurations */
|
||||||
|
GROUP(libgcc.a libc.a libm.a libnosys.a)
|
||||||
|
|
||||||
|
/* Linker script to place sections and symbol values. Should be used together
|
||||||
|
* with other linker script that defines memory regions FLASH and RAM.
|
||||||
|
* It references following symbols, which must be DEFINED in code:
|
||||||
|
* Reset_Handler : Entry of reset handler
|
||||||
|
*
|
||||||
|
* It defines following symbols, which code can use without definition:
|
||||||
|
* __exidx_start
|
||||||
|
* __exidx_end
|
||||||
|
* __copy_table_start__
|
||||||
|
* __copy_table_end__
|
||||||
|
* __zero_table_start__
|
||||||
|
* __zero_table_end__
|
||||||
|
* __etext
|
||||||
|
* __data_start__
|
||||||
|
* __preinit_array_start
|
||||||
|
* __preinit_array_end
|
||||||
|
* __init_array_start
|
||||||
|
* __init_array_end
|
||||||
|
* __fini_array_start
|
||||||
|
* __fini_array_end
|
||||||
|
* __data_end__
|
||||||
|
* __bss_start__
|
||||||
|
* __bss_end__
|
||||||
|
* __HeapLimit
|
||||||
|
* __StackLimit
|
||||||
|
* __StackTop
|
||||||
|
* __stack
|
||||||
|
* __Vectors_End
|
||||||
|
* __Vectors_Size
|
||||||
|
* __qspi_flash_start__
|
||||||
|
* __qspi_flash_end__
|
||||||
|
* __qspi_flash_code_size__
|
||||||
|
* __qspi_region_max_size__
|
||||||
|
* __qspi_region_start_address__
|
||||||
|
* __qspi_region_end_address__
|
||||||
|
* __ospi_device_0_start__
|
||||||
|
* __ospi_device_0_end__
|
||||||
|
* __ospi_device_0_code_size__
|
||||||
|
* __ospi_device_0_region_max_size__
|
||||||
|
* __ospi_device_0_region_start_address__
|
||||||
|
* __ospi_device_0_region_end_address__
|
||||||
|
* __ospi_device_1_start__
|
||||||
|
* __ospi_device_1_end__
|
||||||
|
* __ospi_device_1_code_size__
|
||||||
|
* __ospi_device_1_region_max_size__
|
||||||
|
* __ospi_device_1_region_start_address__
|
||||||
|
* __ospi_device_1_region_end_address__
|
||||||
|
*/
|
||||||
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text :
|
||||||
|
{
|
||||||
|
__tz_FLASH_S = ABSOLUTE(FLASH_START);
|
||||||
|
__ROM_Start = .;
|
||||||
|
|
||||||
|
/* Even though the vector table is not 256 entries (1KB) long, we still allocate that much
|
||||||
|
* space because ROM registers are at address 0x400 and there is very little space
|
||||||
|
* in between. */
|
||||||
|
KEEP(*(.fixed_vectors*))
|
||||||
|
KEEP(*(.application_vectors*))
|
||||||
|
__Vectors_End = .;
|
||||||
|
|
||||||
|
/* ROM Registers start at address 0x00000400 for devices that do not have the OPTION_SETTING region. */
|
||||||
|
. = OPTION_SETTING_LENGTH > 0 ? . : __ROM_Start + 0x400;
|
||||||
|
KEEP(*(.rom_registers*))
|
||||||
|
|
||||||
|
/* Reserving 0x100 bytes of space for ROM registers. */
|
||||||
|
. = OPTION_SETTING_LENGTH > 0 ? . : __ROM_Start + 0x500;
|
||||||
|
|
||||||
|
/* Allocate flash write-boundary-aligned
|
||||||
|
* space for sce9 wrapped public keys for mcuboot if the module is used.
|
||||||
|
*/
|
||||||
|
. = ALIGN(128);
|
||||||
|
KEEP(*(.mcuboot_sce9_key*))
|
||||||
|
|
||||||
|
*(.text*)
|
||||||
|
|
||||||
|
KEEP(*(.version))
|
||||||
|
KEEP(*(.init))
|
||||||
|
KEEP(*(.fini))
|
||||||
|
|
||||||
|
/* .ctors */
|
||||||
|
*crtbegin.o(.ctors)
|
||||||
|
*crtbegin?.o(.ctors)
|
||||||
|
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .ctors)
|
||||||
|
*(SORT(.ctors.*))
|
||||||
|
*(.ctors)
|
||||||
|
|
||||||
|
/* .dtors */
|
||||||
|
*crtbegin.o(.dtors)
|
||||||
|
*crtbegin?.o(.dtors)
|
||||||
|
*(EXCLUDE_FILE(*crtend?.o *crtend.o) .dtors)
|
||||||
|
*(SORT(.dtors.*))
|
||||||
|
*(.dtors)
|
||||||
|
|
||||||
|
*(.rodata*)
|
||||||
|
__usb_dev_descriptor_start_fs = .;
|
||||||
|
KEEP(*(.usb_device_desc_fs*))
|
||||||
|
__usb_cfg_descriptor_start_fs = .;
|
||||||
|
KEEP(*(.usb_config_desc_fs*))
|
||||||
|
__usb_interface_descriptor_start_fs = .;
|
||||||
|
KEEP(*(.usb_interface_desc_fs*))
|
||||||
|
__usb_descriptor_end_fs = .;
|
||||||
|
__usb_dev_descriptor_start_hs = .;
|
||||||
|
KEEP(*(.usb_device_desc_hs*))
|
||||||
|
__usb_cfg_descriptor_start_hs = .;
|
||||||
|
KEEP(*(.usb_config_desc_hs*))
|
||||||
|
__usb_interface_descriptor_start_hs = .;
|
||||||
|
KEEP(*(.usb_interface_desc_hs*))
|
||||||
|
__usb_descriptor_end_hs = .;
|
||||||
|
|
||||||
|
KEEP(*(.eh_frame*))
|
||||||
|
|
||||||
|
__ROM_End = .;
|
||||||
|
} > FLASH = 0xFF
|
||||||
|
|
||||||
|
__Vectors_Size = __Vectors_End - __Vectors;
|
||||||
|
|
||||||
|
.ARM.extab :
|
||||||
|
{
|
||||||
|
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
||||||
|
} > FLASH
|
||||||
|
|
||||||
|
__exidx_start = .;
|
||||||
|
.ARM.exidx :
|
||||||
|
{
|
||||||
|
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
|
||||||
|
} > FLASH
|
||||||
|
__exidx_end = .;
|
||||||
|
|
||||||
|
/* To copy multiple ROM to RAM sections,
|
||||||
|
* uncomment .copy.table section and,
|
||||||
|
* define __STARTUP_COPY_MULTIPLE in startup_ARMCMx.S */
|
||||||
|
/*
|
||||||
|
.copy.table :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
__copy_table_start__ = .;
|
||||||
|
LONG (__etext)
|
||||||
|
LONG (__data_start__)
|
||||||
|
LONG (__data_end__ - __data_start__)
|
||||||
|
LONG (__etext2)
|
||||||
|
LONG (__data2_start__)
|
||||||
|
LONG (__data2_end__ - __data2_start__)
|
||||||
|
__copy_table_end__ = .;
|
||||||
|
} > FLASH
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* To clear multiple BSS sections,
|
||||||
|
* uncomment .zero.table section and,
|
||||||
|
* define __STARTUP_CLEAR_BSS_MULTIPLE in startup_ARMCMx.S */
|
||||||
|
/*
|
||||||
|
.zero.table :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
__zero_table_start__ = .;
|
||||||
|
LONG (__bss_start__)
|
||||||
|
LONG (__bss_end__ - __bss_start__)
|
||||||
|
LONG (__bss2_start__)
|
||||||
|
LONG (__bss2_end__ - __bss2_start__)
|
||||||
|
__zero_table_end__ = .;
|
||||||
|
} > FLASH
|
||||||
|
*/
|
||||||
|
|
||||||
|
__etext = .;
|
||||||
|
|
||||||
|
__tz_RAM_S = ORIGIN(RAM);
|
||||||
|
|
||||||
|
/* If DTC is used, put the DTC vector table at the start of SRAM.
|
||||||
|
This avoids memory holes due to 1K alignment required by it. */
|
||||||
|
.fsp_dtc_vector_table (NOLOAD) :
|
||||||
|
{
|
||||||
|
. = ORIGIN(RAM);
|
||||||
|
*(.fsp_dtc_vector_table)
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
/* Initialized data section. */
|
||||||
|
.data :
|
||||||
|
{
|
||||||
|
__data_start__ = .;
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
__Code_In_RAM_Start = .;
|
||||||
|
|
||||||
|
KEEP(*(.code_in_ram*))
|
||||||
|
__Code_In_RAM_End = .;
|
||||||
|
|
||||||
|
*(vtable)
|
||||||
|
/* Don't use *(.data*) because it will place data meant for .data_flash in this section. */
|
||||||
|
*(.data.*)
|
||||||
|
*(.data)
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
/* preinit data */
|
||||||
|
PROVIDE_HIDDEN (__preinit_array_start = .);
|
||||||
|
KEEP(*(.preinit_array))
|
||||||
|
PROVIDE_HIDDEN (__preinit_array_end = .);
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
/* init data */
|
||||||
|
PROVIDE_HIDDEN (__init_array_start = .);
|
||||||
|
KEEP(*(SORT(.init_array.*)))
|
||||||
|
KEEP(*(.init_array))
|
||||||
|
PROVIDE_HIDDEN (__init_array_end = .);
|
||||||
|
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
/* finit data */
|
||||||
|
PROVIDE_HIDDEN (__fini_array_start = .);
|
||||||
|
KEEP(*(SORT(.fini_array.*)))
|
||||||
|
KEEP(*(.fini_array))
|
||||||
|
PROVIDE_HIDDEN (__fini_array_end = .);
|
||||||
|
|
||||||
|
KEEP(*(.jcr*))
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
/* All data end */
|
||||||
|
__data_end__ = .;
|
||||||
|
|
||||||
|
} > RAM AT > FLASH
|
||||||
|
|
||||||
|
|
||||||
|
/* TrustZone Secure Gateway Stubs Section. */
|
||||||
|
.gnu.sgstubs : ALIGN (1024)
|
||||||
|
{
|
||||||
|
. = (DEFINED(PROJECT_SECURE) && DEFINED(FLASH_NSC_START)) ? ABSOLUTE(FLASH_NSC_START) : ALIGN(1024);
|
||||||
|
__tz_FLASH_C = DEFINED(FLASH_NSC_START) ? ABSOLUTE(FLASH_NSC_START) : __RESERVE_NS_RAM ? ABSOLUTE(FLASH_START + FLASH_LENGTH) : ALIGN(1024);
|
||||||
|
_start_sg = .;
|
||||||
|
*(.gnu.sgstubs*)
|
||||||
|
. = ALIGN(32);
|
||||||
|
_end_sg = .;
|
||||||
|
} > FLASH
|
||||||
|
|
||||||
|
__tz_FLASH_N = DEFINED(FLASH_NS_START) ? ABSOLUTE(FLASH_NS_START) : __RESERVE_NS_RAM ? ABSOLUTE(FLASH_START + FLASH_LENGTH) : ALIGN(32768);
|
||||||
|
FLASH_NS_IMAGE_START = DEFINED(FLASH_NS_IMAGE_START) ? FLASH_NS_IMAGE_START : __tz_FLASH_N;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for QSPI. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_QSPI_FLASH_S = ORIGIN(QSPI_FLASH);
|
||||||
|
|
||||||
|
/* QSPI_FLASH section to be downloaded via debugger */
|
||||||
|
.qspi_flash :
|
||||||
|
{
|
||||||
|
__qspi_flash_start__ = .;
|
||||||
|
KEEP(*(.qspi_flash*))
|
||||||
|
KEEP(*(.code_in_qspi*))
|
||||||
|
__qspi_flash_end__ = .;
|
||||||
|
} > QSPI_FLASH
|
||||||
|
__qspi_flash_code_size__ = __qspi_flash_end__ - __qspi_flash_start__;
|
||||||
|
|
||||||
|
/* QSPI_FLASH non-retentive section, creates a copy in internal flash that can be copied to QSPI */
|
||||||
|
__qspi_flash_code_addr__ = __etext + (__data_end__ - __data_start__);
|
||||||
|
.qspi_non_retentive : AT (__qspi_flash_code_addr__)
|
||||||
|
{
|
||||||
|
__qspi_non_retentive_start__ = .;
|
||||||
|
KEEP(*(.qspi_non_retentive*))
|
||||||
|
__qspi_non_retentive_end__ = .;
|
||||||
|
} > QSPI_FLASH
|
||||||
|
__qspi_non_retentive_size__ = __qspi_non_retentive_end__ - __qspi_non_retentive_start__;
|
||||||
|
|
||||||
|
__qspi_region_max_size__ = 0x4000000; /* Must be the same as defined in MEMORY above */
|
||||||
|
__qspi_region_start_address__ = __qspi_flash_start__;
|
||||||
|
__qspi_region_end_address__ = __qspi_flash_start__ + __qspi_region_max_size__;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for QSPI. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_QSPI_FLASH_N = __qspi_non_retentive_end__;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for QSPI. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_OSPI_DEVICE_0_S = ORIGIN(OSPI_DEVICE_0);
|
||||||
|
|
||||||
|
/* OSPI_DEVICE_0 section to be downloaded via debugger */
|
||||||
|
.OSPI_DEVICE_0 :
|
||||||
|
{
|
||||||
|
__ospi_device_0_start__ = .;
|
||||||
|
KEEP(*(.ospi_device_0*))
|
||||||
|
KEEP(*(.code_in_ospi_device_0*))
|
||||||
|
__ospi_device_0_end__ = .;
|
||||||
|
} > OSPI_DEVICE_0
|
||||||
|
__ospi_device_0_code_size__ = __ospi_device_0_end__ - __ospi_device_0_start__;
|
||||||
|
|
||||||
|
/* OSPI_DEVICE_0 non-retentive section, creates a copy in internal flash that can be copied to OSPI */
|
||||||
|
__ospi_device_0_code_addr__ = __etext + (__data_end__ - __data_start__);
|
||||||
|
.ospi_device_0_non_retentive : AT (__ospi_device_0_code_addr__)
|
||||||
|
{
|
||||||
|
__ospi_device_0_non_retentive_start__ = .;
|
||||||
|
KEEP(*(.ospi_device_0_non_retentive*))
|
||||||
|
__ospi_device_0_non_retentive_end__ = .;
|
||||||
|
} > OSPI_DEVICE_0
|
||||||
|
__ospi_device_0_non_retentive_size__ = __ospi_device_0_non_retentive_end__ - __ospi_device_0_non_retentive_start__;
|
||||||
|
|
||||||
|
__ospi_device_0_region_max_size__ = 0x8000000; /* Must be the same as defined in MEMORY above */
|
||||||
|
__ospi_device_0_region_start_address__ = __ospi_device_0_start__;
|
||||||
|
__ospi_device_0_region_end_address__ = __ospi_device_0_start__ + __ospi_device_0_region_max_size__;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for OSPI. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_OSPI_DEVICE_0_N = __ospi_device_0_non_retentive_end__;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for OSPI. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_OSPI_DEVICE_1_S = ORIGIN(OSPI_DEVICE_1);
|
||||||
|
|
||||||
|
/* OSPI_DEVICE_1 section to be downloaded via debugger */
|
||||||
|
.OSPI_DEVICE_1 :
|
||||||
|
{
|
||||||
|
__ospi_device_1_start__ = .;
|
||||||
|
KEEP(*(.ospi_device_1*))
|
||||||
|
KEEP(*(.code_in_ospi_device_1*))
|
||||||
|
__ospi_device_1_end__ = .;
|
||||||
|
} > OSPI_DEVICE_1
|
||||||
|
__ospi_device_1_code_size__ = __ospi_device_1_end__ - __ospi_device_1_start__;
|
||||||
|
|
||||||
|
/* OSPI_DEVICE_1 non-retentive section, creates a copy in internal flash that can be copied to OSPI */
|
||||||
|
__ospi_device_1_code_addr__ = __etext + (__data_end__ - __data_start__);
|
||||||
|
.ospi_device_1_non_retentive : AT (__ospi_device_1_code_addr__)
|
||||||
|
{
|
||||||
|
__ospi_device_1_non_retentive_start__ = .;
|
||||||
|
KEEP(*(.ospi_device_1_non_retentive*))
|
||||||
|
__ospi_device_1_non_retentive_end__ = .;
|
||||||
|
} > OSPI_DEVICE_1
|
||||||
|
__ospi_device_1_non_retentive_size__ = __ospi_device_1_non_retentive_end__ - __ospi_device_1_non_retentive_start__;
|
||||||
|
|
||||||
|
__ospi_device_1_region_max_size__ = 0x10000000; /* Must be the same as defined in MEMORY above */
|
||||||
|
__ospi_device_1_region_start_address__ = __ospi_device_1_start__;
|
||||||
|
__ospi_device_1_region_end_address__ = __ospi_device_1_start__ + __ospi_device_1_region_max_size__;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for OSPI. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_OSPI_DEVICE_1_N = __ospi_device_1_non_retentive_end__;
|
||||||
|
|
||||||
|
.noinit (NOLOAD):
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
__noinit_start = .;
|
||||||
|
KEEP(*(.noinit*))
|
||||||
|
. = ALIGN(8);
|
||||||
|
/* Place the FreeRTOS heap here so that the __HeapLimit calculation does not include the freertos heap. */
|
||||||
|
KEEP(*(.heap.*))
|
||||||
|
__noinit_end = .;
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
.bss :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
__bss_start__ = .;
|
||||||
|
*(.bss*)
|
||||||
|
*(COMMON)
|
||||||
|
. = ALIGN(4);
|
||||||
|
__bss_end__ = .;
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
.heap (NOLOAD):
|
||||||
|
{
|
||||||
|
. = ALIGN(8);
|
||||||
|
__HeapBase = .;
|
||||||
|
/* Place the STD heap here. */
|
||||||
|
KEEP(*(.heap))
|
||||||
|
__HeapLimit = .;
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
/* Stacks are stored in this section. */
|
||||||
|
.stack_dummy (NOLOAD):
|
||||||
|
{
|
||||||
|
. = ALIGN(8);
|
||||||
|
__StackLimit = .;
|
||||||
|
/* Main stack */
|
||||||
|
KEEP(*(.stack))
|
||||||
|
__StackTop = .;
|
||||||
|
/* Thread stacks */
|
||||||
|
KEEP(*(.stack*))
|
||||||
|
__StackTopAll = .;
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
PROVIDE(__stack = __StackTopAll);
|
||||||
|
|
||||||
|
/* This symbol represents the end of user allocated RAM. The RAM after this symbol can be used
|
||||||
|
at run time for things such as ThreadX memory pool allocations. */
|
||||||
|
__RAM_segment_used_end__ = ALIGN(__StackTopAll , 4);
|
||||||
|
|
||||||
|
/* RAM_NSC_START can be used to set a fixed address for non-secure callable RAM in secure projects.
|
||||||
|
* If it is not specified, the address for NSC RAM is the end of RAM aligned to a 1K boundary.
|
||||||
|
* In flat projects that require non-secure RAM, this variable is set to the start of non-secure RAM. */
|
||||||
|
__tz_RAM_C = DEFINED(RAM_NSC_START) ? ABSOLUTE(RAM_NSC_START) : __RESERVE_NS_RAM ? ABSOLUTE(RAM_NS_BUFFER_BLOCK_START) : ALIGN(__RAM_segment_used_end__, 1024);
|
||||||
|
|
||||||
|
/* RAM_NS_START can be used to set a fixed address for non-secure RAM in secure projects or flat projects.
|
||||||
|
* RAM_NS_BUFFER_BLOCK_LENGTH is used to allocate non-secure buffers in a flat project. If it is not
|
||||||
|
* specified, the address for NSC RAM is the end of RAM aligned to an 8K boundary.
|
||||||
|
* In flat projects that require non-secure RAM, this variable is set to the start of non-secure RAM. */
|
||||||
|
__tz_RAM_N = DEFINED(RAM_NS_START) ? ABSOLUTE(RAM_NS_START) : __RESERVE_NS_RAM ? ABSOLUTE(RAM_NS_BUFFER_BLOCK_START) : ALIGN(__tz_RAM_C, 8192);
|
||||||
|
|
||||||
|
/* Non-secure buffers must be in non-secure RAM. This is primarily used for the EDMAC in flat projects.
|
||||||
|
* The EDMAC is a non-secure bus master and can only access non-secure RAM. */
|
||||||
|
.ns_buffer (NOLOAD):
|
||||||
|
{
|
||||||
|
/* Allocate RAM on a 32-byte boundary to help with placement of Ethernet buffers. */
|
||||||
|
. = __RESERVE_NS_RAM ? ABSOLUTE(RAM_NS_BUFFER_START & 0xFFFFFFE0) : .;
|
||||||
|
|
||||||
|
KEEP(*(.ns_buffer*))
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
/* Data flash. */
|
||||||
|
.data_flash :
|
||||||
|
{
|
||||||
|
. = ORIGIN(DATA_FLASH);
|
||||||
|
__tz_DATA_FLASH_S = .;
|
||||||
|
__Data_Flash_Start = .;
|
||||||
|
KEEP(*(.data_flash*))
|
||||||
|
__Data_Flash_End = .;
|
||||||
|
|
||||||
|
__tz_DATA_FLASH_N = DEFINED(DATA_FLASH_NS_START) ? ABSOLUTE(DATA_FLASH_NS_START) : __RESERVE_NS_RAM ? ABSOLUTE(DATA_FLASH_START + DATA_FLASH_LENGTH) : ALIGN(1024);
|
||||||
|
} > DATA_FLASH
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for SDRAM. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_SDRAM_S = ORIGIN(SDRAM);
|
||||||
|
|
||||||
|
/* SDRAM */
|
||||||
|
.sdram (NOLOAD):
|
||||||
|
{
|
||||||
|
__SDRAM_Start = .;
|
||||||
|
KEEP(*(.sdram*))
|
||||||
|
KEEP(*(.frame*))
|
||||||
|
__SDRAM_End = .;
|
||||||
|
} > SDRAM
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for SDRAM. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_SDRAM_N = __SDRAM_End;
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for ID_CODE. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_ID_CODE_S = ORIGIN(ID_CODE);
|
||||||
|
|
||||||
|
.id_code :
|
||||||
|
{
|
||||||
|
__ID_Code_Start = .;
|
||||||
|
KEEP(*(.id_code*))
|
||||||
|
__ID_Code_End = .;
|
||||||
|
} > ID_CODE
|
||||||
|
|
||||||
|
/* Note: There are no secure/non-secure boundaries for ID_CODE. These symbols are provided for the RA configuration tool. */
|
||||||
|
__tz_ID_CODE_N = __ID_Code_End;
|
||||||
|
|
||||||
|
/* Symbol required for RA Configuration tool. */
|
||||||
|
__tz_OPTION_SETTING_S = ORIGIN(OPTION_SETTING);
|
||||||
|
|
||||||
|
.option_setting :
|
||||||
|
{
|
||||||
|
__OPTION_SETTING_Start = .;
|
||||||
|
KEEP(*(.option_setting_ofs0))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_Start + 0x10 : __OPTION_SETTING_Start;
|
||||||
|
KEEP(*(.option_setting_dualsel))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_Start + 0x34 : __OPTION_SETTING_Start;
|
||||||
|
KEEP(*(.option_setting_sas))
|
||||||
|
__OPTION_SETTING_End = .;
|
||||||
|
} > OPTION_SETTING = 0xFF
|
||||||
|
|
||||||
|
/* Symbol required for RA Configuration tool. */
|
||||||
|
__tz_OPTION_SETTING_N = OPTION_SETTING_START_NS;
|
||||||
|
|
||||||
|
.option_setting_ns :
|
||||||
|
{
|
||||||
|
__OPTION_SETTING_NS_Start = .;
|
||||||
|
KEEP(*(.option_setting_ofs1))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x10 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_banksel))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x40 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_bps0))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x44 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_bps1))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x48 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_bps2))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x60 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_pbps0))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x64 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_pbps1))
|
||||||
|
. = USE_OPTION_SETTING_NS ? __OPTION_SETTING_NS_Start + 0x68 : __OPTION_SETTING_NS_Start;
|
||||||
|
KEEP(*(.option_setting_pbps2))
|
||||||
|
__OPTION_SETTING_NS_End = .;
|
||||||
|
} > OPTION_SETTING = 0xFF
|
||||||
|
|
||||||
|
/* Symbol required for RA Configuration tool. */
|
||||||
|
__tz_OPTION_SETTING_S_S = ORIGIN(OPTION_SETTING_S);
|
||||||
|
|
||||||
|
.option_setting_s :
|
||||||
|
{
|
||||||
|
__OPTION_SETTING_S_Start = .;
|
||||||
|
KEEP(*(.option_setting_ofs1_sec))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x10 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_banksel_sec))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x40 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_bps_sec0))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x44 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_bps_sec1))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x48 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_bps_sec2))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x60 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_pbps_sec0))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x64 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_pbps_sec1))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x68 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_pbps_sec2))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x80 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_ofs1_sel))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0x90 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_banksel_sel))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0xC0 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_bps_sel0))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0xC4 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_bps_sel1))
|
||||||
|
. = PROJECT_SECURE_OR_FLAT ? __OPTION_SETTING_S_Start + 0xC8 : __OPTION_SETTING_S_Start;
|
||||||
|
KEEP(*(.option_setting_bps_sel2))
|
||||||
|
__OPTION_SETTING_S_End = .;
|
||||||
|
} > OPTION_SETTING_S = 0xFF
|
||||||
|
|
||||||
|
/* Symbol required for RA Configuration tool. */
|
||||||
|
__tz_OPTION_SETTING_S_N = __OPTION_SETTING_S_End;
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
/* generated memory regions file - do not edit */
|
||||||
|
RAM_START = 0x20000000;
|
||||||
|
RAM_LENGTH = 0x20000;
|
||||||
|
FLASH_START = 0x00000000;
|
||||||
|
FLASH_LENGTH = 0x80000;
|
||||||
|
DATA_FLASH_START = 0x08000000;
|
||||||
|
DATA_FLASH_LENGTH = 0x2000;
|
||||||
|
OPTION_SETTING_START = 0x0100A100;
|
||||||
|
OPTION_SETTING_LENGTH = 0x100;
|
||||||
|
OPTION_SETTING_S_START = 0x0100A200;
|
||||||
|
OPTION_SETTING_S_LENGTH = 0x100;
|
||||||
|
ID_CODE_START = 0x00000000;
|
||||||
|
ID_CODE_LENGTH = 0x0;
|
||||||
|
SDRAM_START = 0x90000000;
|
||||||
|
SDRAM_LENGTH = 0x0;
|
||||||
|
QSPI_FLASH_START = 0x60000000;
|
||||||
|
QSPI_FLASH_LENGTH = 0x4000000;
|
||||||
|
OSPI_DEVICE_0_START = 0x68000000;
|
||||||
|
OSPI_DEVICE_0_LENGTH = 0x0;
|
||||||
|
OSPI_DEVICE_1_START = 0x70000000;
|
||||||
|
OSPI_DEVICE_1_LENGTH = 0x0;
|
Loading…
Reference in New Issue