CMSIS-DSP: Improved boot code for IPSS in test framework.

pull/19/head
Christophe Favergeon 6 years ago
parent 49b06e1f2b
commit 1044e5b793

@ -13,17 +13,18 @@ LOAD_REGION 0x0
{ {
*.o (RESET, +First) *.o (RESET, +First)
* (InRoot$$$Sections) * (InRoot$$$Sections)
* (+RO) * (+RO-CODE)
} }
DATA 0x20000000 0x4000 DATA 0x20000000 0x7000
{ {
* (+RW,+ZI) * (+RO-DATA)
* (+RW,+ZI)
} }
ARM_LIB_STACK 0x20006000 ALIGN 64 EMPTY -0x00002000 ARM_LIB_STACK 0x2000C000 ALIGN 64 EMPTY -0x00002000
{} {}
ARM_LIB_HEAP 0x20006000 ALIGN 64 EMPTY 0x0050000 ARM_LIB_HEAP 0x2000C000 ALIGN 64 EMPTY 0x0050000
{} {}
} }

@ -70,7 +70,8 @@ void SystemInit (void)
int stdout_putchar(char txchar) int stdout_putchar(char txchar)
{ {
SERIAL_DATA = txchar; SERIAL_DATA = txchar;
return(txchar);
} }
int stderr_putchar(char txchar) int stderr_putchar(char txchar)

@ -12,20 +12,21 @@
LOAD_REGION 0x0 LOAD_REGION 0x0
{ {
CODE +0 0x0007ffff CODE +0 0x30000
{ {
*.o (RESET, +First) *.o (RESET, +First)
* (InRoot$$$Sections) * (InRoot$$$Sections)
* (+RO) * (+RO-CODE)
} }
DATA 0x20000000 0x4000 DATA 0x20000000 0x7000
{ {
* (+RO-DATA)
* (+RW,+ZI) * (+RW,+ZI)
} }
ARM_LIB_STACK 0x20006000 ALIGN 64 EMPTY -0x00002000 ARM_LIB_STACK 0x2000C000 ALIGN 64 EMPTY -0x00002000
{} {}
ARM_LIB_HEAP 0x20006000 ALIGN 64 EMPTY 0x0050000 ARM_LIB_HEAP 0x2000C000 ALIGN 64 EMPTY 0x00050000
{} {}
} }

@ -255,7 +255,8 @@ typedef struct
int stdout_putchar(char txchar) int stdout_putchar(char txchar)
{ {
SERIAL_DATA = txchar; SERIAL_DATA = txchar;
return(txchar);
} }
int stderr_putchar(char txchar) int stderr_putchar(char txchar)

@ -70,7 +70,8 @@ uint32_t SystemCoreClock = SYSTEM_CLOCK; /* System Core Clock Frequency */
int stdout_putchar(char txchar) int stdout_putchar(char txchar)
{ {
SERIAL_DATA = txchar; SERIAL_DATA = txchar;
return(txchar);
} }
int stderr_putchar(char txchar) int stderr_putchar(char txchar)

@ -22,9 +22,9 @@ LOAD_REGION 0x0
* (+RW,+ZI) * (+RW,+ZI)
} }
ARM_LIB_STACK 0x21000000 ALIGN 64 EMPTY 0x00002000 ARM_LIB_STACK 0x20100000 ALIGN 64 EMPTY -0x00002000
{} {}
ARM_LIB_HEAP 0x22000000 ALIGN 64 EMPTY 0x00100000 ARM_LIB_HEAP 0x20100000 ALIGN 64 EMPTY 0x00100000
{} {}
} }

@ -82,7 +82,8 @@ void SystemCoreClockUpdate (void)
int stdout_putchar(char txchar) int stdout_putchar(char txchar)
{ {
SERIAL_DATA = txchar; SERIAL_DATA = txchar;
return(txchar);
} }
int stderr_putchar(char txchar) int stderr_putchar(char txchar)

Loading…
Cancel
Save