aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rp2040_flash/main.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: fix rp2040_flash (#6760)BIGTREETECH2024-12-061-1/+1
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* lib: Update rp2040_flash code to support rp2350 rebootKevin O'Connor2024-11-141-5/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lib: Update rp2040_flash to upstream picotool.git v2.0.0Kevin O'Connor2024-11-141-3/+4
| | | | | | This is in preparation for adding rp2350 flash support. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* rp2040_flash: Fix the type when printing num_blocks (#6279)Martin Botka2023-07-271-1/+1
| | | | | | | | | image->num_blocks is of type unsigned size_t thus unsigned int or unsigned long int. %lu specifies a type of long unsigned int. Thus resulting in compiler warning about type mismatch on some systems. Fix this by printing the value with length modified z. Signed-off-by: Martin Botka <martin.botka@somainline.org>
* rp2040: add make flash supportLasse Dalegaard2022-01-061-0/+246
This adds `make flash` support for the rp2040 target. Flashing is performed using a custom `rp2040_flash` tool that uses the PICOBOOT protocol. Root is not required. The user specifies the serial device of the rp2040 they wish to flash as the device. This device is reset into bootsel mode and `rp2040_flash` is invoked on the original USB device path. If the device is already in bootloader mode, the user can specify 'first' as `FLASH_DEVICE` which will simply invoke `rp2040_flash` with no bus/address options. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>