Created
November 4, 2017 14:25
-
-
Save SebastianBoe/257268e697768a804341b2e1ca05cf07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/sebo/zephyr/scripts/dts/flatten.py", line 203, in <module> | |
sys.exit(main()) | |
File "/home/sebo/zephyr/scripts/dts/flatten.py", line 200, in main | |
args.boot_cpu, args.include_path) | |
File "/home/sebo/zephyr/scripts/dts/flatten.py", line 172, in flatten | |
tree = devicetree.parse_file(input, include_path=include_path) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 271, in parse_file | |
new_node = parse_node(line, fd) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 206, in parse_node | |
new_node = parse_node(line, fd) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 206, in parse_node | |
new_node = parse_node(line, fd) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 209, in parse_node | |
key, value = parse_property(line, fd) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 165, in parse_property | |
return key.strip(), parse_value(value[:-1]) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 141, in parse_value | |
return parse_values(value, '<', '>', ' ') | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 127, in parse_values | |
out = parse_values_internal(value, start, end, separator) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 122, in parse_values_internal | |
return parse_value(out[0]) | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 137, in parse_value | |
out = [parse_value(v) for v in value] | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 137, in <listcomp> | |
out = [parse_value(v) for v in value] | |
File "/home/sebo/zephyr/scripts/dts/devicetree.py", line 155, in parse_value | |
return int(value, 10) | |
ValueError: invalid literal for int() with base 10: '1024)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/python3 $ZEPHYR_BASE/scripts/dts/flatten.py -i test.dts.pre.tmp -o flatten_output.dts_compiled --include-path $PWD --boot-cpu 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/dts-v1/; | |
/ { | |
#address-cells = <1>; | |
#size-cells = <1>; | |
chosen { }; | |
aliases { }; | |
}; | |
/ { | |
soc { | |
#address-cells = <1>; | |
#size-cells = <1>; | |
compatible = "simple-bus"; | |
interrupt-parent = <&nvic>; | |
ranges; | |
nvic: interrupt-controller@e000e100 { | |
compatible = "arm,v7m-nvic"; | |
reg = <0xe000e100 0xc00>; | |
interrupt-controller; | |
#interrupt-cells = <2>; | |
}; | |
systick: timer@e000e010 { | |
compatible = "arm,armv7m-systick"; | |
reg = <0xe000e010 0x10>; | |
status = "disabled"; | |
}; | |
}; | |
}; | |
/ { | |
cpus { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
cpu@0 { | |
device_type = "cpu"; | |
compatible = "arm,cortex-m4f"; | |
reg = <0>; | |
}; | |
}; | |
flash-controller@4001E000 { | |
compatible = "nrf,nrf52-flash-controller"; | |
reg = <0x4001E000 0x550>; | |
#address-cells = <1>; | |
#size-cells = <1>; | |
flash0: flash@0 { | |
compatible = "soc-nv-flash"; | |
reg = <0x00000000 (512 * 1024)>; | |
write-block-size = <4>; | |
}; | |
}; | |
sram0: memory@20000000 { | |
device_type = "memory"; | |
compatible = "mmio-sram"; | |
reg = <0x20000000 (64 * 1024)>; | |
}; | |
soc { | |
uart0: uart@40002000 { | |
compatible = "nordic,nrf-uarte", "nordic,nrf-uart"; | |
reg = <0x40002000 0x1000>; | |
interrupts = <2 1>; | |
status = "disabled"; | |
label = "UART_0"; | |
}; | |
}; | |
}; | |
&nvic { | |
arm,num-irq-priority-bits = <3>; | |
}; | |
/ { | |
model = "Seeed Studio Nitrogen 96board"; | |
compatible = "seeed,nitrogen", "nordic,nrf52832-qfaa", | |
"nordic,nrf52832"; | |
chosen { | |
zephyr,console = &uart0; | |
zephyr,sram = &sram0; | |
zephyr,flash = &flash0; | |
}; | |
}; | |
&uart0 { | |
compatible = "nordic,nrf-uart"; | |
current-speed = <115200>; | |
status = "ok"; | |
}; | |
&flash0 { | |
partitions { | |
compatible = "fixed-partitions"; | |
#address-cells = <1>; | |
#size-cells = <1>; | |
boot_partition: partition@0 { | |
label = "mcuboot"; | |
reg = <0x00000000 0x8000>; | |
}; | |
slot0_partition: partition@8000 { | |
label = "image-0"; | |
reg = <0x00008000 0x34000>; | |
}; | |
slot1_partition: partition@3c000 { | |
label = "image-1"; | |
reg = <0x0003c000 0x34000>; | |
}; | |
scratch_partition: partition@70000 { | |
label = "image-scratch"; | |
reg = <0x00070000 0xD000>; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment