commit 2e6bba9e3ddfab249ac2d82abdcd2b56e12965b4
parent 418e95a78d9756b32d9b67d27edaa0a44c798edc
Author: Matsuda Kenji <info@mtkn.jp>
Date: Sat, 29 Apr 2023 08:30:16 +0900
set rosc freq too high
Diffstat:
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/ex2/main.s b/ex2/main.s
@@ -33,7 +33,7 @@ unreset_chk:
mov r0, #3
lsl r0, r0, #24 // gpio25 | gpio24
str r0, [r3, #0x24] // SIO: GPIO_OE
-
+/*
// setup xosc
ldr r3, xosc_base
mov r0, #47 // start up delay for 12MHz xosc
@@ -49,6 +49,11 @@ wait_xosc:
ldr r3, clocks_base
ldr r0, =(0x3 << 5 | 0x1)
str r0, [r3, #0x3c] // CLOCKS: CLK_SYS_CTRL
+*/
+ // setup rosc
+ ldr r3, rosc_base
+ ldr r0, =(0xfab << 12 | 0xfa6)
+ str r0, [r3, #0x0] // ROSC: CTRL
// blink led on gpio25
loop:
@@ -120,13 +125,15 @@ literals:
.ltorg
atomic_clr:
.word 0x00003000
+clocks_base:
+ .word 0x40008000
resets_base:
.word 0x4000c000
io_bank0_base:
.word 0x40014000
xosc_base:
.word 0x40024000
-clocks_base:
- .word 0x40008000
+rosc_base:
+ .word 0x40060000
sio_base:
.word 0xd0000000