File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 37
37
pll: pll {
38
38
#clock-cells = <0>;
39
39
compatible = "wch,ch32v20x_30x-pll-clock";
40
- mul = <18 >;
40
+ mul = <15 >;
41
41
status = "disabled";
42
42
};
43
43
};
54
54
#address-cells = <1>;
55
55
#size-cells = <1>;
56
56
57
- flash0: flash@0 {
57
+ flash0: flash@8000000 {
58
58
compatible = "soc-nv-flash";
59
- reg = <0 DT_SIZE_K(128 )>;
59
+ reg = <0x08000000 DT_SIZE_K(480 )>;
60
60
};
61
61
};
62
62
153
153
};
154
154
155
155
&cpu0 {
156
- clock-frequency = <DT_FREQ_M(144 )>;
156
+ clock-frequency = <DT_FREQ_M(120 )>;
157
157
};
Original file line number Diff line number Diff line change @@ -18,12 +18,15 @@ GTEXT(__initialize)
18
18
19
19
SECTION_FUNC(vectors, ivt)
20
20
.option norvc
21
+ /* Jump to 0x08000008, into the main flash zone where j __start is */
22
+ lui x5, 0x8000
23
+ jr 0x8 (x5)
21
24
j __start
22
25
.rept CONFIG_VECTOR_TABLE_SIZE
23
26
.word _isr_wrapper
24
27
.endr
25
28
26
29
SECTION_FUNC(vectors, __start)
27
- li a0, 3
30
+ li a0, 0xf
28
31
csrw mtvec, a0
29
32
j __initialize
You can’t perform that action at this time.
0 commit comments