summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/stm3210e-eval')
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/README.txt38
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/bigfatstub.c23
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld14
-rwxr-xr-xnuttx/configs/stm3210e-eval/RIDE/nuttx.rdbbin66560 -> 113664 bytes
4 files changed, 68 insertions, 7 deletions
diff --git a/nuttx/configs/stm3210e-eval/RIDE/README.txt b/nuttx/configs/stm3210e-eval/RIDE/README.txt
new file mode 100755
index 000000000..8da1c38c9
--- /dev/null
+++ b/nuttx/configs/stm3210e-eval/RIDE/README.txt
@@ -0,0 +1,38 @@
+README
+------
+
+This directory contains a simple RIDE7 project used to bring up the
+STM3210E-EVAL board. This project includes only the STM32 boot-up
+code under arch/arm/src and configs/stm3210e-eval/src plus as little
+additional environmental support as necessary.
+
+bigfatstub.c
+
+ The NuttX OS is not included in this project. This file contains
+ stubs for all of the NuttX entry points and this replaces NuttX
+
+Make.defs, defconfig, setenv.h
+
+ The first step to using this RIDE project is to build a compatible
+ cygwin project. This will set up of the directories and produce
+ all of the necessary autogenerated files.
+
+ cd tools
+ ./configure.sh stm3210e-eva/RIDE
+ cd ..
+ . ./setenv.sh
+ make
+
+nuttx.*
+
+ RIDE7 project files
+
+stm32-nuttx.ld
+
+ This is the linker script that replaces the RIDE7 linker script.
+
+stm32-ld.sh
+
+ This is a shell script that will use the RIDE7 tools to relink the
+ NuttX binaries. Useful because RIDE7 does not provide much linker
+ output to see what is going on.
diff --git a/nuttx/configs/stm3210e-eval/RIDE/bigfatstub.c b/nuttx/configs/stm3210e-eval/RIDE/bigfatstub.c
index 68fba6ad6..63150f58f 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/bigfatstub.c
+++ b/nuttx/configs/stm3210e-eval/RIDE/bigfatstub.c
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+#include <nuttx/irq.h>
#include "up_internal.h"
void os_start(void)
@@ -5,4 +7,25 @@ void os_start(void)
up_lowputc('X');
up_lowputc('\n');
for (;;);
+}
+
+void up_assert_code(const ubyte *filename, int lineno, int errorcode)
+{
+ up_lowputc('?');
+ up_lowputc('\n');
+ for (;;);
+}
+
+int irq_attach(int irq, xcpt_t isr)
+{
+ up_lowputc('A');
+ up_lowputc('\n');
+ for (;;);
+}
+
+uint32 *up_doirq(int irq, uint32 *regs)
+{
+ up_lowputc('I');
+ up_lowputc('\n');
+ for (;;);
} \ No newline at end of file
diff --git a/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld b/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld
index f3cbabde7..4015d6339 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld
+++ b/nuttx/configs/stm3210e-eval/RIDE/nuttx.elf.ld
@@ -2,17 +2,17 @@
SEARCH_DIR(".")
SEARCH_DIR("C:\Program Files\Raisonance\Ride\Lib\ARM")
STARTUP("C:\cygwin\home\Owner\projects\nuttx\nuttx\arch\arm\src\stm32_vectors.o")
-INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_timerisr.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_gpio.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_irq.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_lowputc.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_rcc.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_serial.o")
INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32_start.o")
-EXTERN( __io_putchar )
-EXTERN( _write )
-INPUT("STM32x_io_putchar_thumb.a")
-INPUT("e_stdio_thumb.a")
-INPUT("STM32F10x_thumb.lib")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\bigfatstub.o")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_svcall.o")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_hardfault.o")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_leds.o")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\up_boot.o")
+INPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\irq_unexpectedisr.o")
OUTPUT("C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\nuttx.elf")
-INCLUDE "C:\Program Files\Raisonance\Ride\lib\ARM\STM32F101_32K_32K_FLASH.ld"
+INCLUDE "C:\cygwin\home\Owner\projects\nuttx\nuttx\configs\stm3210e-eval\RIDE\stm32-nuttx.ld"
diff --git a/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb b/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb
index 1bea5c43d..34b78940b 100755
--- a/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb
+++ b/nuttx/configs/stm3210e-eval/RIDE/nuttx.rdb
Binary files differ