Hello everyone, for some context, im trying to use a raspberry pico as a probe to upload a firmware into another pico, i have a blink code to test this, but im getting the error
[log]:
target halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00
target halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00
** Programming Started **
Warn : no flash bank found for address 0x10000000
Warn : no flash bank found for address 0x10011968
** Programming Finished **
** Verify Started **
target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x000017c4 msp: 0x20041ec8
Error: checksum mismatch - attempting binary compare
embedded:startup.tcl:530: Error: ** Verify Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 591
at file "embedded:startup.tcl", line 530
*** [upload] Error 1
[platformio.init]:
[env]
platform = raspberrypi
framework = arduino
[env:pico]
board = pico
framework = arduino
build_flags =
-DTARGET_RP2040
-O2
upload_protocol = cmsis-dap
upload_port = cmsis-dap
debug_speed = 5000
debug_tool = cmsis-dap
platform_packages =
tool-openocd@~2.1000.0
[code]:
#include <Arduino.h>
void setup() {
pinMode(PICO_DEFAULT_LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(PICO_DEFAULT_LED_PIN, HIGH);
delay(100);
digitalWrite(PICO_DEFAULT_LED_PIN, LOW);
delay(100);
if someone knows anything, please help