sketchy slow test with LEDs
[cortex-from-scratch] / start.asm
index e4ca237..f2c16bc 100644 (file)
--- a/start.asm
+++ b/start.asm
@@ -1,4 +1,15 @@
-       .equ STACK_TOP, 0x20008000 /* placed at 32kB, TODO: could place at top of SRAM? */
+/* (CC-BY-NC-SA) ROBIN KRENS - ROBIN @ ROBINKRENS.NL
+ * 
+ * $LOG$
+ * 2019/7/20 - ROBIN KRENS     
+ * Initial version 
+ * 
+ * $DESCRIPTION$
+ */
+
+/* _start sets up the stack and jumps to the reset vector */
+
+       .equ STACK_TOP, 0x20010000 /* placed at 64kB, top of SRAM */
        .text
        .global _start
        .global reset, nmi, hardfault
@@ -25,16 +36,6 @@ nmi:
 
 hardfault: 
        b hardfault
-.global stub
-stub:
-       mov r1, #'z'
-       ldr r0, [r1]
-       bx lr
-       /* ldr R0,=10
-       mov R1,#0
-       udiv.w R2, R0, R1 */
-
-       .data
-       .word 'x' 
+       
        .end