Skip to content
Discussion options

You must be logged in to vote

I've seen the Portenta H7 port, but it has too many features.

You just want the SDRAM config from mpconfigport.h. For a simpler example look at STM32F429DISC/mpconfigport.h. The point is that you define all the MICROPY_HW_SDRAM_* macros to configure it, and then override HEAP_START and HEAP_END so that the SDRAM gets used for the heap. Everything else happens automaticaly (main.c will call sdram_init() and sdram.c implements the driver).

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@4riceotter
Comment options

@saraverbeecke
Comment options

Answer selected by saraverbeecke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants