Skip to content

Commit

Permalink
stm32/boards/STM32F429DISC: Fix SDRAM configuration.
Browse files Browse the repository at this point in the history
Define SDRAM frequency and refresh cycles.  This was missed in commit
17808e7.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
  • Loading branch information
iabdalkader authored and dpgeorge committed Dec 11, 2024
1 parent d4d1d47 commit 94343e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ports/stm32/boards/STM32F429DISC/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@

#define MICROPY_HW_SDRAM_BURST_LENGTH 2
#define MICROPY_HW_SDRAM_CAS_LATENCY 3
#define MICROPY_HW_SDRAM_FREQUENCY_KHZ (90000) // 90 MHz
#define MICROPY_HW_SDRAM_COLUMN_BITS_NUM 8
#define MICROPY_HW_SDRAM_ROW_BITS_NUM 12
#define MICROPY_HW_SDRAM_MEM_BUS_WIDTH 16
Expand All @@ -109,6 +110,7 @@
#define MICROPY_HW_SDRAM_RBURST (0)
#define MICROPY_HW_SDRAM_WRITE_PROTECTION (0)
#define MICROPY_HW_SDRAM_AUTOREFRESH_NUM (4)
#define MICROPY_HW_SDRAM_REFRESH_CYCLES 8192

#define MICROPY_HW_FMC_SDCKE1 (pin_B5)
#define MICROPY_HW_FMC_SDNE1 (pin_B6)
Expand Down

0 comments on commit 94343e2

Please sign in to comment.