mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
boards/arm/s32k1xx/s32k118evb: More build fixes.
This commit is contained in:
@@ -36,8 +36,9 @@
|
|||||||
# Common ARM source files
|
# Common ARM source files
|
||||||
|
|
||||||
HEAD_ASRC =
|
HEAD_ASRC =
|
||||||
CMN_ASRCS = up_allocateheap.c up_exit.c up_initialize.c up_interruptcontext.c
|
CMN_ASRCS =
|
||||||
CMN_ASRCS += up_lowputs.c up_mdelay.c up_modifyreg8.c up_modifyreg16.c
|
CMN_CSRCS = up_allocateheap.c up_exit.c up_initialize.c up_interruptcontext.c
|
||||||
|
CMN_CSRCS += up_lowputs.c up_mdelay.c up_modifyreg8.c up_modifyreg16.c
|
||||||
CMN_CSRCS += up_modifyreg32.c up_puts.c up_releasestack.c up_stackframe.c
|
CMN_CSRCS += up_modifyreg32.c up_puts.c up_releasestack.c up_stackframe.c
|
||||||
CMN_CSRCS += up_task_start.c up_udelay.c up_usestack.c up_vfork.c
|
CMN_CSRCS += up_task_start.c up_udelay.c up_usestack.c up_vfork.c
|
||||||
|
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ void __start(void)
|
|||||||
{
|
{
|
||||||
const uint32_t *src;
|
const uint32_t *src;
|
||||||
uint32_t *dest;
|
uint32_t *dest;
|
||||||
uint32_t regval;
|
|
||||||
|
|
||||||
/* Make sure that interrupts are disabled */
|
/* Make sure that interrupts are disabled */
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ CONFIG_NUNGET_CHARS=0
|
|||||||
CONFIG_PREALLOC_TIMERS=0
|
CONFIG_PREALLOC_TIMERS=0
|
||||||
CONFIG_PREALLOC_WDOGS=4
|
CONFIG_PREALLOC_WDOGS=4
|
||||||
CONFIG_PTHREAD_STACK_DEFAULT=1536
|
CONFIG_PTHREAD_STACK_DEFAULT=1536
|
||||||
CONFIG_RAM_SIZE=16384
|
CONFIG_RAM_SIZE=23552
|
||||||
CONFIG_RAM_START=0x20000000
|
CONFIG_RAM_START=0x1ffffc00
|
||||||
CONFIG_RAW_BINARY=y
|
CONFIG_RAW_BINARY=y
|
||||||
CONFIG_RR_INTERVAL=200
|
CONFIG_RR_INTERVAL=200
|
||||||
CONFIG_S32K1XX_LPUART0=y
|
CONFIG_S32K1XX_LPUART0=y
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* The S32K118 has 256KB of FLASH beginning at address 0x0000:0000 and
|
/* The S32K118 has 256KB of FLASH beginning at address 0x0000:0000 and
|
||||||
* 25KB of SRAM beginning at address 0x1fff:fc00 (incl. 2Kb of FlexRAM)
|
* 23KB of SRAM beginning at address 0x1fff:fc00 (plus 2Kb of FlexRAM)
|
||||||
*
|
*
|
||||||
* The on-chip RAM is split in two regions: SRAM_L and SRAM_U. The RAM is
|
* The on-chip RAM is split in two regions: SRAM_L and SRAM_U. The RAM is
|
||||||
* implemented such that the SRAM_L and SRAM_U ranges form a contiguous
|
* implemented such that the SRAM_L and SRAM_U ranges form a contiguous
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
flash (rx) : ORIGIN = 0x00000000, LENGTH = 256K
|
flash (rx) : ORIGIN = 0x00000000, LENGTH = 256K
|
||||||
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 23K
|
sram (rwx) : ORIGIN = 0x1ffffc00, LENGTH = 23K
|
||||||
}
|
}
|
||||||
|
|
||||||
OUTPUT_ARCH(arm)
|
OUTPUT_ARCH(arm)
|
||||||
@@ -55,7 +55,8 @@ ENTRY(_stext)
|
|||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text : {
|
.text :
|
||||||
|
{
|
||||||
_stext = ABSOLUTE(.);
|
_stext = ABSOLUTE(.);
|
||||||
*(.vectors)
|
*(.vectors)
|
||||||
*(.text .text.*)
|
*(.text .text.*)
|
||||||
@@ -71,23 +72,27 @@ SECTIONS
|
|||||||
_etext = ABSOLUTE(.);
|
_etext = ABSOLUTE(.);
|
||||||
} > flash
|
} > flash
|
||||||
|
|
||||||
.init_section : {
|
.init_section :
|
||||||
|
{
|
||||||
_sinit = ABSOLUTE(.);
|
_sinit = ABSOLUTE(.);
|
||||||
*(.init_array .init_array.*)
|
*(.init_array .init_array.*)
|
||||||
_einit = ABSOLUTE(.);
|
_einit = ABSOLUTE(.);
|
||||||
} > flash
|
} > flash
|
||||||
|
|
||||||
.ARM.extab : {
|
.ARM.extab :
|
||||||
|
{
|
||||||
*(.ARM.extab*)
|
*(.ARM.extab*)
|
||||||
} >flash
|
} >flash
|
||||||
|
|
||||||
__exidx_start = ABSOLUTE(.);
|
__exidx_start = ABSOLUTE(.);
|
||||||
.ARM.exidx : {
|
.ARM.exidx :
|
||||||
|
{
|
||||||
*(.ARM.exidx*)
|
*(.ARM.exidx*)
|
||||||
} >flash
|
} >flash
|
||||||
__exidx_end = ABSOLUTE(.);
|
__exidx_end = ABSOLUTE(.);
|
||||||
|
|
||||||
.data : {
|
.data :
|
||||||
|
{
|
||||||
_sdata = ABSOLUTE(.);
|
_sdata = ABSOLUTE(.);
|
||||||
*(.data .data.*)
|
*(.data .data.*)
|
||||||
*(.gnu.linkonce.d.*)
|
*(.gnu.linkonce.d.*)
|
||||||
@@ -97,7 +102,8 @@ SECTIONS
|
|||||||
|
|
||||||
_eronly = LOADADDR(.data);
|
_eronly = LOADADDR(.data);
|
||||||
|
|
||||||
.ramfunc ALIGN(4): {
|
.ramfunc ALIGN(4):
|
||||||
|
{
|
||||||
_sramfuncs = ABSOLUTE(.);
|
_sramfuncs = ABSOLUTE(.);
|
||||||
*(.ramfunc .ramfunc.*)
|
*(.ramfunc .ramfunc.*)
|
||||||
_eramfuncs = ABSOLUTE(.);
|
_eramfuncs = ABSOLUTE(.);
|
||||||
@@ -105,7 +111,8 @@ SECTIONS
|
|||||||
|
|
||||||
_framfuncs = LOADADDR(.ramfunc);
|
_framfuncs = LOADADDR(.ramfunc);
|
||||||
|
|
||||||
.bss : {
|
.bss :
|
||||||
|
{
|
||||||
_sbss = ABSOLUTE(.);
|
_sbss = ABSOLUTE(.);
|
||||||
*(.bss .bss.*)
|
*(.bss .bss.*)
|
||||||
*(.gnu.linkonce.b.*)
|
*(.gnu.linkonce.b.*)
|
||||||
@@ -114,6 +121,7 @@ SECTIONS
|
|||||||
} > sram
|
} > sram
|
||||||
|
|
||||||
/* Stabs debugging sections. */
|
/* Stabs debugging sections. */
|
||||||
|
|
||||||
.stab 0 : { *(.stab) }
|
.stab 0 : { *(.stab) }
|
||||||
.stabstr 0 : { *(.stabstr) }
|
.stabstr 0 : { *(.stabstr) }
|
||||||
.stab.excl 0 : { *(.stab.excl) }
|
.stab.excl 0 : { *(.stab.excl) }
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
#include "up_arch.h"
|
#include "up_arch.h"
|
||||||
#include "up_internal.h"
|
#include "up_internal.h"
|
||||||
#include "stm32.h"
|
|
||||||
#include "s32k118evb.h"
|
#include "s32k118evb.h"
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user