picotool icon indicating copy to clipboard operation
picotool copied to clipboard

Error saving all flash rom

Open mardini1974 opened this issue 1 year ago • 4 comments

Hello, When I try to save all flash from the pico, it disconnects from BOOTSEL mode and I get an error.

image

I have to disconnect the pico and set it back to BOOTSEL mode, while I can save a program (-p) without any problem. i'm working in Windows WSL2 ubuntu, using usbipd to connect USB device to ubuntu

mardini1974 avatar Feb 12 '24 11:02 mardini1974

This may not be relevant to your problem, but I think if your Pico is already in BOOTSEL mode, then there's no need to use the -F option of picotool?

lurch avatar Feb 12 '24 12:02 lurch

This may not be relevant to your problem, but I think if your Pico is already in BOOTSEL mode, then there's no need to use the -F option of picotool?

I tried both with Force and without force, both are the same.

mardini1974 avatar Feb 12 '24 14:02 mardini1974

I wonder if this is a problem peculiar to WSL with usbipd

  1. can you try using a windows build of picotool outside of WSL to see if that works and/or
  2. can you see what causes it to break; is it time/address... you can use e.g. picotool save -r 0x10000000 0x10100000 foo.bin to save the first 1M of flash; maybe try finding an address where it breaks etc.

kilograham avatar Feb 12 '24 14:02 kilograham

Hi Kilograham, I fried the first Raspberry Pi PICO due to a faulty connection, but I did the test on a new PICOs and it worked correctly I could copy the RAM from one to the other, So the problem maybe in WSL or USBipd, The challenge in installing the binary on my work computer give some issues with IT security!, I do prefer building the application on WSL.

mardini1974 avatar Feb 13 '24 21:02 mardini1974

I've tried this on the latest WSL2 version (2.2.4) with the latest usbipd (4.2.0) and am unable to reproduce this issue - could you try updating to the latest versions and check if it still occurs?

will-v-pi avatar Jul 29 '24 11:07 will-v-pi

Closing this for now, as I can't reproduce it - feel free to reopen if you're still having this issue

will-v-pi avatar Aug 28 '24 16:08 will-v-pi