Skip to content

SerialPIO jitter during Flash write? #1535

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

You must be logged in to vote

Are you doing multicore code? When you do a flash write the opposite core needs to be frozen in a tight RAM loop (since it can't fetch insns from flash during the flash operation) so that might be what's going on. You can do noInterrupts(); SerialPIO1.write(a); SerialPIO2.write(a); interrupts(); to make those 2 writes as atomic as possible. And the flash erase-write cycle can take many milliseconds so it's a non-trivial delay (will vary w/flash chip, age, etc.).

Moving everything to RAM is not readily possible w/the core now. You can rewrite the lib/memmap_default.ld file to do it, but it's not been done before to my knowledge and it's not something I myself have looked into (and it's not…

Replies: 1 comment 3 replies

Comment options

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

@earlephilhower
Comment options

Answer selected by myklemykle
@myklemykle
Comment options

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