Skip to content

Pico crash/reboot on EEPROM.put() #1479

Closed Answered by earlephilhower
myklemykle asked this question in Q&A
Discussion options

You must be logged in to vote

No, the exact opposite. As a user you can run your own setup1/loop1 and never ever call rp2040.idle/resumeOtherCore and write to flash via EEPROM or LittleFS. The Arduino core plumbing here does all that for you. In fact, I'd say 99.999% of users should never call rp2040.idle/resumeOtherCore.

If you try and freeze the other core while it's already frozen (i.e. if you called rp2040.idleOtherCore in your setup() and then tried to do an EEPROM.commit(), then the commit would wait forever since core1 will never respond to the interrupt...).

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@myklemykle
Comment options

@earlephilhower
Comment options

@myklemykle
Comment options

@earlephilhower
Comment options

Answer selected by myklemykle
@myklemykle
Comment options

@myklemykle
Comment options

@earlephilhower
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@earlephilhower
Comment options

@myklemykle
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants