-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picoprobe upload issues through platformio #571
Comments
Okay, so I've been tweaking the openocd command and it seems the following works: (I've changed my cwd to the package's bin dir, and copied over the firmware file to test locally)
I removed the |
Looks like the platform wants the firmware image to start at 0x10000000.
Why is that? It runs just fine when uploading to the default offset. |
ahh, maybe the offset is necessary only if uploading a raw binary? looks like the comment says the offset is not necessary when flashing an ELF |
Root cause not in this repo, closing |
Glad I could help. |
For future reference: here is a minimal working platformio project with Picoprobe upload and debug: https://github.com/tkanarsky/pico-arduino-platformio-debug-template |
Hi! Trying to setup my platformio workflow: target Pico connected via USB for power, other Pico flashed with latest Picoprobe firmware connected to SWD headers on target Pico.
I'm having issues with uploading via picoprobe, so I haven't gotten to testing the debugging part.
My platformio.ini is as follows:
The other parts of the platformio.ini, other than the line
platformio/tool-openocd-raspberrypi@https://gitee.com/flyboard2040/pio-openocd-picoprobe-linux.git
anddebug_tool/upload_protocol
, work fine and result in properly uploaded firmware. I wanted to bite the bullet and set up a proper debugger because printf'ing everything was driving me mad.I get the following output when starting an upload (verbose):
It seems like it's having issues finding the proper offset to write the firmware to, which causes the checksum to fail
I'm not well-versed in this toolchain, so apologies in advance if the error is completely unrelated to your efforts. If so, could you point me in the right direction?
Thanks in advance!
The text was updated successfully, but these errors were encountered: