Skip to content
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

Update main.py #4

Merged
merged 1 commit into from
May 6, 2022
Merged

Update main.py #4

merged 1 commit into from
May 6, 2022

Conversation

dlbogdan
Copy link

because of the logic selecting elf or firm (bin), we need to default to no offset on normal firmware upload because we already defaulted to elf a few lines below if upload.offset_address is not user set so when no offset is needed.
programming fails otherwise
Unfortunately, my way of modifying the code probably sucks because I've never written anything in python but I assumed the second arg is the default n case the first is missing. Haven't had time to dig too much into it.

 because of the logic selecting elf or firm (bin), we need to default to no offset on normal firmware upload because we already defaulted to elf a few lines below if upload.offset_address is not user set so when no offset is needed. 
programming fails otherwise
Unfortunately, my way of modifying the code probably sucks because I've never written anything in python but I assumed the second arg is the default n case the first is missing. Haven't had time to dig too much into it.
@maxgerhardt
Copy link
Owner

maxgerhardt commented Apr 22, 2022

Hm that all sounds logical, I'm just stunned how I never noticed that when uploading to my Pico via the Picoprobe o_o. Definitely added it in c0653a3 a long time ago.

Will test with both variants to verify before merge.

@dlbogdan
Copy link
Author

dlbogdan commented May 1, 2022

Well?

@tkanarsky
Copy link

aha, this seems to be the root cause of earlephilhower/arduino-pico#571 which I ran into a few days back. +1 for this change, it works on my end

@maxgerhardt maxgerhardt merged commit 74a6e8a into maxgerhardt:develop May 6, 2022
@maxgerhardt
Copy link
Owner

maxgerhardt commented May 6, 2022

Thanks for the contribution, merged.

(Use pio platform update https:/maxgerhardt/platform-raspberrypi.git to update your local installation)

@tkanarsky
Copy link

awesome! thanks for the quick turnaround :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants