A/B partition table, embed in both firmware targets
This commit is contained in:
@@ -35,6 +35,7 @@ math(EXPR VERSION_MAJOR "${BUILD_EPOCH} >> 16")
|
|||||||
math(EXPR VERSION_MINOR "${BUILD_EPOCH} & 65535")
|
math(EXPR VERSION_MINOR "${BUILD_EPOCH} & 65535")
|
||||||
pico_set_binary_version(picomap MAJOR ${VERSION_MAJOR} MINOR ${VERSION_MINOR})
|
pico_set_binary_version(picomap MAJOR ${VERSION_MAJOR} MINOR ${VERSION_MINOR})
|
||||||
target_compile_definitions(picomap PRIVATE BUILD_EPOCH=${BUILD_EPOCH})
|
target_compile_definitions(picomap PRIVATE BUILD_EPOCH=${BUILD_EPOCH})
|
||||||
|
pico_embed_pt_in_binary(picomap ${CMAKE_CURRENT_LIST_DIR}/partition_table.json)
|
||||||
pico_add_extra_outputs(picomap)
|
pico_add_extra_outputs(picomap)
|
||||||
target_link_libraries(picomap ${LIB_DEPS})
|
target_link_libraries(picomap ${LIB_DEPS})
|
||||||
|
|
||||||
@@ -47,5 +48,6 @@ pico_enable_stdio_uart(picomap_test 0)
|
|||||||
pico_set_binary_type(picomap_test copy_to_ram)
|
pico_set_binary_type(picomap_test copy_to_ram)
|
||||||
pico_set_binary_version(picomap_test MAJOR ${VERSION_MAJOR} MINOR ${VERSION_MINOR})
|
pico_set_binary_version(picomap_test MAJOR ${VERSION_MAJOR} MINOR ${VERSION_MINOR})
|
||||||
target_compile_definitions(picomap_test PRIVATE BUILD_EPOCH=${BUILD_EPOCH})
|
target_compile_definitions(picomap_test PRIVATE BUILD_EPOCH=${BUILD_EPOCH})
|
||||||
|
pico_embed_pt_in_binary(picomap_test ${CMAKE_CURRENT_LIST_DIR}/partition_table.json)
|
||||||
pico_add_extra_outputs(picomap_test)
|
pico_add_extra_outputs(picomap_test)
|
||||||
target_link_libraries(picomap_test ${LIB_DEPS})
|
target_link_libraries(picomap_test ${LIB_DEPS})
|
||||||
|
|||||||
37
firmware/partition_table.json
Normal file
37
firmware/partition_table.json
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"version": [1, 0],
|
||||||
|
"unpartitioned": {
|
||||||
|
"families": ["absolute"],
|
||||||
|
"permissions": {
|
||||||
|
"secure": "rw",
|
||||||
|
"nonsecure": "rw",
|
||||||
|
"bootloader": "rw"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"partitions": [
|
||||||
|
{
|
||||||
|
"name": "A",
|
||||||
|
"id": 0,
|
||||||
|
"start": "0K",
|
||||||
|
"size": "512K",
|
||||||
|
"families": ["rp2350-arm-s"],
|
||||||
|
"permissions": {
|
||||||
|
"secure": "rw",
|
||||||
|
"nonsecure": "rw",
|
||||||
|
"bootloader": "rw"
|
||||||
|
},
|
||||||
|
"link": ["a", 1]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "B",
|
||||||
|
"start": "512K",
|
||||||
|
"size": "512K",
|
||||||
|
"families": ["rp2350-arm-s"],
|
||||||
|
"permissions": {
|
||||||
|
"secure": "rw",
|
||||||
|
"nonsecure": "rw",
|
||||||
|
"bootloader": "rw"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user