File tree Expand file tree Collapse file tree 3 files changed +32
-20
lines changed
boards/aithinker/ai_wb2_12f Expand file tree Collapse file tree 3 files changed +32
-20
lines changed Original file line number Diff line number Diff line change 6
6
7
7
/dts-v1/;
8
8
9
- #include <bflb/bl60x .dtsi>
9
+ #include <bflb/bl602 .dtsi>
10
10
#include "ai_wb2_12f-pinctrl.dtsi"
11
11
12
12
/ {
15
15
16
16
chosen {
17
17
zephyr,flash = &flash0;
18
+ zephyr,code-partition = &main_partition;
18
19
zephyr,itcm = &itcm;
19
20
zephyr,dtcm = &dtcm;
20
21
zephyr,sram = &sram0;
27
28
clock-frequency = <DT_FREQ_M(192)>;
28
29
};
29
30
30
- &spi1 {
31
- #address-cells = <1>;
32
- #size-cells = <0>;
33
- reg = <0x4000b000 0x1000 0x23000000 0x400000>;
34
-
35
- flash0: flash@0 {
36
- compatible = "zb,25vq32", "jedec,spi-nor";
37
- status = "disabled";
38
- size = <DT_SIZE_M(128)>;
39
- jedec-id = [5e 40 16];
40
- reg = <0>;
41
- spi-max-frequency = <DT_FREQ_M(133)>;
31
+ &flashctrl {
32
+ flash0: flash@23000000 {
33
+ compatible = "soc-nv-flash", "zb,25vq32";
34
+ reg = <0x23000000 (0x400000 - 0x2000)>;
35
+ write-block-size = <256>;
36
+ erase-block-size = <DT_SIZE_K(4)>;
37
+ /* jedec-id = [5e 40 16]; */
38
+
39
+ partitions {
40
+ compatible = "fixed-partitions";
41
+ #address-cells = <1>;
42
+ #size-cells = <1>;
43
+
44
+ main_partition: partition@0 {
45
+ label = "code";
46
+ reg = <0x00000000 0x00100000>;
47
+ read-only;
48
+ };
49
+
50
+ storage_partition: partition@100000 {
51
+ label = "storage";
52
+ reg = <0x00100000 (0x300000 - 0x2000)>;
53
+ };
54
+ };
42
55
};
43
56
};
44
57
Original file line number Diff line number Diff line change @@ -38,23 +38,22 @@ echo "Ready for Remote Connections"
38
38
39
39
$_TARGETNAME.0 configure -event reset-assert-pre {
40
40
echo " reset-assert-pre"
41
- adapter speed 100
41
+ adapter speed 400
42
42
}
43
43
44
44
$_TARGETNAME.0 configure -event reset-deassert-post {
45
45
echo " reset-deassert-post"
46
46
47
- adapter speed 100
47
+ adapter speed 400
48
48
49
- reg mstatus 0x7800
50
- reg mie 0x0
51
- # reg pc 0x23000000
49
+ reg mstatus 0x80000000
50
+ reg pc 0x21000000
52
51
}
53
52
54
53
$_TARGETNAME.0 configure -event reset-init {
55
54
echo " reset-init"
56
55
57
- adapter speed 3000
56
+ adapter speed 400
58
57
}
59
58
60
59
$_TARGETNAME.0 configure -event gdb-attach {
Original file line number Diff line number Diff line change 2
2
3
3
interface cmsis-dap
4
4
5
- adapter speed 1000
5
+ adapter speed 400
You can’t perform that action at this time.
0 commit comments