Skip to content

128 KB program in AVR128DB flash? #137

Discussion options

You must be logged in to vote

Okay, it looks like the answers are:

  • The program should be able to be the full 128 KB (Code Space: 0x00000 - 0x1FFFF), not just 32 KB. No banks needed, because the JMP instruction handles 22 bits of address (more than needed).
  • Z=RAMPZ:R31:R30 with the ELPM instruction gives 24 addressable bits, so PROGMEM should be able to be used from anywhere, and access anywhere in the flash.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by killerkalamari
Comment options

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

@SpenceKonde
Comment options

@SpenceKonde
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