mirror of https://github.com/ARMmbed/mbed-os.git
mbed-os_ci-test-fixed_rtl8195am
fix section error, ARM compiler uses IRAM1.bss to calculate the heap size fix conflict of _memset between Ameba's library and ARM compiler's library, use standard memset() instead of _memset() in case of ARM compilerpull/6461/head
parent
bedf76c8bb
commit
f8d0c279cd
|
@ -19,7 +19,9 @@
|
||||||
#include "hal_adc.h"
|
#include "hal_adc.h"
|
||||||
#include "analogin_api.h"
|
#include "analogin_api.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBED_ENABLED
|
||||||
|
#include "platform_stdlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CONFIG_ADC_EN
|
#if CONFIG_ADC_EN
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
|
|
|
@ -29,9 +29,6 @@ LR_IRAM 0x10007000 (0x70000 - 0x7000) {
|
||||||
*libc.a (+RW)
|
*libc.a (+RW)
|
||||||
*(.sdram.data*)
|
*(.sdram.data*)
|
||||||
*lib_peripheral_mbed_arm.ar (+RW)
|
*lib_peripheral_mbed_arm.ar (+RW)
|
||||||
}
|
|
||||||
|
|
||||||
RW_IRAM2 +0 UNINIT FIXED {
|
|
||||||
*rtl8195a_crypto*.o(+ZI, COMMON)
|
*rtl8195a_crypto*.o(+ZI, COMMON)
|
||||||
*libc.a (+ZI, COMMON)
|
*libc.a (+ZI, COMMON)
|
||||||
*(.bss.thread_stack_main)
|
*(.bss.thread_stack_main)
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
#if defined(__CC_ARM) || \
|
#if defined(__CC_ARM) || \
|
||||||
(defined (__ARMCC_VERSION) && __ARMCC_VERSION >= 6010050)
|
(defined (__ARMCC_VERSION) && __ARMCC_VERSION >= 6010050)
|
||||||
|
|
||||||
extern uint8_t Image$$RW_IRAM2$$ZI$$Base[];
|
extern uint8_t Image$$RW_IRAM1$$ZI$$Base[];
|
||||||
extern uint8_t Image$$RW_IRAM2$$ZI$$Limit[];
|
extern uint8_t Image$$RW_IRAM1$$ZI$$Limit[];
|
||||||
extern uint8_t Image$$TCM_OVERLAY$$ZI$$Base[];
|
extern uint8_t Image$$TCM_OVERLAY$$ZI$$Base[];
|
||||||
extern uint8_t Image$$TCM_OVERLAY$$ZI$$Limit[];
|
extern uint8_t Image$$TCM_OVERLAY$$ZI$$Limit[];
|
||||||
extern uint8_t Image$$RW_DRAM2$$ZI$$Base[];
|
extern uint8_t Image$$RW_DRAM2$$ZI$$Base[];
|
||||||
extern uint8_t Image$$RW_DRAM2$$ZI$$Limit[];
|
extern uint8_t Image$$RW_DRAM2$$ZI$$Limit[];
|
||||||
#define __bss_sram_start__ Image$$RW_IRAM2$$ZI$$Base
|
#define __bss_sram_start__ Image$$RW_IRAM1$$ZI$$Base
|
||||||
#define __bss_sram_end__ Image$$RW_IRAM2$$ZI$$Limit
|
#define __bss_sram_end__ Image$$RW_IRAM1$$ZI$$Limit
|
||||||
#define __bss_dtcm_start__ Image$$TCM_OVERLAY$$ZI$$Base
|
#define __bss_dtcm_start__ Image$$TCM_OVERLAY$$ZI$$Base
|
||||||
#define __bss_dtcm_end__ Image$$TCM_OVERLAY$$ZI$$Limit
|
#define __bss_dtcm_end__ Image$$TCM_OVERLAY$$ZI$$Limit
|
||||||
#define __bss_dram_start__ Image$$RW_DRAM2$$ZI$$Base
|
#define __bss_dram_start__ Image$$RW_DRAM2$$ZI$$Base
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
#include "objects.h"
|
#include "objects.h"
|
||||||
#include "log_uart_api.h"
|
#include "log_uart_api.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBED_ENABLED
|
||||||
|
#include "platform_stdlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
const u32 log_uart_support_rate[] = {
|
const u32 log_uart_support_rate[] = {
|
||||||
|
|
|
@ -18,6 +18,10 @@
|
||||||
#include "objects.h"
|
#include "objects.h"
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBED_ENABLED
|
||||||
|
#include "platform_stdlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if DEVICE_PWMOUT
|
#if DEVICE_PWMOUT
|
||||||
|
|
||||||
#ifdef CONFIG_PWM_EN
|
#ifdef CONFIG_PWM_EN
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
#include "rtl8195a.h"
|
#include "rtl8195a.h"
|
||||||
#include "objects.h"
|
#include "objects.h"
|
||||||
#include "serial_api.h"
|
#include "serial_api.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBED_ENABLED
|
||||||
|
#include "platform_stdlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CONFIG_UART_EN
|
#if CONFIG_UART_EN
|
||||||
|
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
#include "pinmap.h"
|
#include "pinmap.h"
|
||||||
#include "hal_ssi.h"
|
#include "hal_ssi.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBED_ENABLED
|
||||||
|
#include "platform_stdlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
extern u32 SystemGetCpuClk(VOID);
|
extern u32 SystemGetCpuClk(VOID);
|
||||||
extern VOID HAL_GPIO_PullCtrl(u32 pin, u32 mode);
|
extern VOID HAL_GPIO_PullCtrl(u32 pin, u32 mode);
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
#include "analogin_api.h"
|
#include "analogin_api.h"
|
||||||
#include "analogin_ext.h"
|
#include "analogin_ext.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBED_ENABLED
|
||||||
|
#include "platform_stdlib.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef DEVICE_TRNG
|
#ifdef DEVICE_TRNG
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "diag.h"
|
#include "diag.h"
|
||||||
#define strsep(str, delim) _strsep(str, delim)
|
#define strsep(str, delim) _strsep(str, delim)
|
||||||
|
#define _memset(dst, val, sz) memset(dst, val, sz)
|
||||||
#else
|
#else
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
Loading…
Reference in New Issue