Flash functions in PICO_NO_FLASH binaries#2759
Conversation
|
Needed for this raspberrypi/pico-examples#653 |
|
Probably would be nicer if It would also need a |
Then you would be able to remove these functions by setting PICO_INCLUDE_FLASH_UTILS=0 in flash builds. Which will cause odd behaviour? |
e3779f5 to
59aa1e7
Compare
59aa1e7 to
e3087dd
Compare
|
I've ended up adding the first bit to allow |
|
can we revisit this now with @will-v-pi referenced changes |
We assume that PICO_NO_FLASH binaries means the device does not have a flash chip. But it's possible that you want a ram binary AND want to use the unique flash id functionality. Add PICO_INCLUDE_FLASH_ID_FUNCTIONS to force the inclusion of these flash functions in ram binaries. Fixes raspberrypi#2796
e3087dd to
24869d5
Compare
|
I've updated this. |
kilograham
left a comment
There was a problem hiding this comment.
i will come back to this - need to think of a better name i think
To PICO_ALWAYS_INCLUDE_FLASH_ID_FUNCTIONS.
We assume that PICO_NO_FLASH binaries means the device does not have a flash chip. But it's possible that you want a ram binary AND want to mess about with flash, e.g. something that uses the unique flash id.
Add PICO_INCLUDE_FLASH_FUNCTIONS which forces some flash functions to be included.