mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 23:24:15 +01:00
5b85b0f661
* [SC64][SW] Added board bring-up via UART header * [SC64][SW] Made I2C in primer stable * [SC64][SW] LCMXO2 primer fixes * [SC64][SW] SC64 primer PC software * [SC64][SW] Added primer.py to release package * [SC64][SW] Fixed FPGA refresh * [SC64][SW] Changed release package contents
54 lines
894 B
ArmAsm
54 lines
894 B
ArmAsm
.syntax unified
|
|
.cpu cortex-m0plus
|
|
.fpu softvfp
|
|
.thumb
|
|
|
|
|
|
.section .text.Reset_Handler
|
|
.type Reset_Handler, %function
|
|
Reset_Handler:
|
|
.global Reset_Handler
|
|
ldr r0, =_estack
|
|
msr msp, r0
|
|
|
|
init_bss:
|
|
ldr r2, =_sbss
|
|
ldr r4, =_ebss
|
|
movs r3, #0
|
|
b 2f
|
|
1:
|
|
str r3, [r2]
|
|
adds r2, r2, #4
|
|
2:
|
|
cmp r2, r4
|
|
bcc 1b
|
|
|
|
run:
|
|
ldr r0, =_header
|
|
bl hw_set_vector_table
|
|
bl primer
|
|
|
|
loop:
|
|
b loop
|
|
|
|
|
|
.section .text.Default_Handler, "ax", %progbits
|
|
Default_Handler:
|
|
.global Default_Handler
|
|
b Default_Handler
|
|
|
|
|
|
.section .isr_vector, "a", %progbits
|
|
.type g_pfnVectors, %object
|
|
g_pfnVectors:
|
|
.global g_pfnVectors
|
|
.word _estack
|
|
.word Reset_Handler
|
|
.word NMI_Handler
|
|
.word HardFault_Handler
|
|
|
|
.weak NMI_Handler
|
|
.thumb_set NMI_Handler, Default_Handler
|
|
.weak HardFault_Handler
|
|
.thumb_set HardFault_Handler, Default_Handler
|