diff --git a/firmware/CMakeLists.txt b/firmware/CMakeLists.txt index fa4b055..c8ba148 100644 --- a/firmware/CMakeLists.txt +++ b/firmware/CMakeLists.txt @@ -35,6 +35,7 @@ math(EXPR VERSION_MAJOR "${BUILD_EPOCH} >> 16") math(EXPR VERSION_MINOR "${BUILD_EPOCH} & 65535") pico_set_binary_version(picomap MAJOR ${VERSION_MAJOR} MINOR ${VERSION_MINOR}) 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) 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_version(picomap_test MAJOR ${VERSION_MAJOR} MINOR ${VERSION_MINOR}) 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) target_link_libraries(picomap_test ${LIB_DEPS}) diff --git a/firmware/partition_table.json b/firmware/partition_table.json new file mode 100644 index 0000000..24e3928 --- /dev/null +++ b/firmware/partition_table.json @@ -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" + } + } + ] +}