mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-11 01:38:26 +02:00
Add partitions to RP2350.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
38
config/rp2350/pt.json
Normal file
38
config/rp2350/pt.json
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"version": [1, 0],
|
||||||
|
"unpartitioned": {
|
||||||
|
"families": ["absolute"],
|
||||||
|
"permissions": {
|
||||||
|
"secure": "rw",
|
||||||
|
"nonsecure": "rw",
|
||||||
|
"bootloader": "rw"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"partitions": [
|
||||||
|
{
|
||||||
|
"name": "Pico Keys Firmware",
|
||||||
|
"id": 0,
|
||||||
|
"size": "1024K",
|
||||||
|
"families": ["rp2350-arm-s", "rp2350-riscv"],
|
||||||
|
"permissions": {
|
||||||
|
"secure": "rw",
|
||||||
|
"nonsecure": "rw",
|
||||||
|
"bootloader": "rw"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Pico Keys Data",
|
||||||
|
"id": 1,
|
||||||
|
"size": "3072K",
|
||||||
|
"families": ["data"],
|
||||||
|
"permissions": {
|
||||||
|
"secure": "rw",
|
||||||
|
"nonsecure": "rw",
|
||||||
|
"bootloader": "rw"
|
||||||
|
},
|
||||||
|
"link": ["owner", 0],
|
||||||
|
"ignored_during_arm_boot": true,
|
||||||
|
"ignored_during_riscv_boot": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -202,7 +202,6 @@ set(LIBRARIES
|
|||||||
hardware_sync
|
hardware_sync
|
||||||
hardware_adc
|
hardware_adc
|
||||||
pico_unique_id
|
pico_unique_id
|
||||||
hardware_rtc
|
|
||||||
tinyusb_device
|
tinyusb_device
|
||||||
tinyusb_board
|
tinyusb_board
|
||||||
hardware_pio
|
hardware_pio
|
||||||
@@ -282,6 +281,10 @@ set(
|
|||||||
COMPILE_FLAGS " -W3 -wd4242 -wd4065"
|
COMPILE_FLAGS " -W3 -wd4242 -wd4065"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
if (PICO_RP2350)
|
||||||
|
pico_set_uf2_family(${CMAKE_PROJECT_NAME} "rp2350-arm-s")
|
||||||
|
pico_embed_pt_in_binary(${CMAKE_PROJECT_NAME} "${CMAKE_CURRENT_LIST_DIR}/config/rp2350/pt.json")
|
||||||
|
endif()
|
||||||
set(INTERNAL_SOURCES ${SOURCES})
|
set(INTERNAL_SOURCES ${SOURCES})
|
||||||
set(SOURCES ${SOURCES} ${EXTERNAL_SOURCES})
|
set(SOURCES ${SOURCES} ${EXTERNAL_SOURCES})
|
||||||
if (NOT TARGET pico_keys_sdk)
|
if (NOT TARGET pico_keys_sdk)
|
||||||
@@ -289,6 +292,8 @@ if (NOT TARGET pico_keys_sdk)
|
|||||||
add_impl_library(pico_keys_sdk)
|
add_impl_library(pico_keys_sdk)
|
||||||
else()
|
else()
|
||||||
pico_add_library(pico_keys_sdk)
|
pico_add_library(pico_keys_sdk)
|
||||||
|
|
||||||
|
pico_add_extra_outputs(${CMAKE_PROJECT_NAME})
|
||||||
endif()
|
endif()
|
||||||
target_sources(pico_keys_sdk INTERFACE
|
target_sources(pico_keys_sdk INTERFACE
|
||||||
${SOURCES}
|
${SOURCES}
|
||||||
|
|||||||
Reference in New Issue
Block a user