Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4495

General • RP2350 partition table erased when reflashed

$
0
0
I am playing with partitions and I defined two (code & data) in my partition table. When I flash the board with the packed UF2 for the first time, everything works as expected. `picotool` reports 2 partitions (that's OK). But when I reflash the board again, the partition table is erased and the board is reboot to BOOTSEL mode. `picootol` displays it has no partitions. Then, I have to reflash again to work as expected.

It's a flip-flop behavior: the first time the partition table is int, the second time the partition table is erased, the third time appears again, and so on. Always I use the same UF2.

So, to summarize, I have to reflash the board twice to work normally.

Is this behavior normally expected?

CMake lines I used for partitions:

Code:

pico_set_uf2_family(${CMAKE_PROJECT_NAME} "rp2350-arm-s")pico_embed_pt_in_binary(${CMAKE_PROJECT_NAME} "${CMAKE_CURRENT_LIST_DIR}/pt.json")
pt.json

Code:

{  "version": [1, 0],  "unpartitioned": {    "families": ["absolute"],    "permissions": {      "secure": "rw",      "nonsecure": "rw",      "bootloader": "rw"    }  },  "partitions": [    {      "name": "Test Firmware",      "id": 0,      "size": "1024K",      "families": ["rp2350-arm-s", "rp2350-riscv"],      "permissions": {        "secure": "rw",        "nonsecure": "rw",        "bootloader": "rw"      }    },    {      "name": "Test 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    }  ]}

Statistics: Posted by polhenarejos — Wed Aug 28, 2024 1:05 pm — Replies 1 — Views 37



Viewing all articles
Browse latest Browse all 4495

Trending Articles