Skip to content

Commit c8c37ca

Browse files
jimmodpgeorge
authored andcommitted
stm32/boards/STM32F769DISC: Fix number of SDRAM row bits.
According to the schematic, the SDRAM part on this board is a MT48LC4M32B2B5-6A, with "Row addressing 4K A[11:0]" (per datasheet). This commit updates mpconfigboard.h from 13 to 12 to match.
1 parent bd1d27f commit c8c37ca

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

ports/stm32/boards/STM32F769DISC/mpconfigboard.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,14 @@ void board_early_init(void);
100100
#define MICROPY_HW_ETH_RMII_TXD1 (pin_G14)
101101

102102
#if 0
103-
// Optional SDRAM configuration; requires SYSCLK <= 200MHz
103+
// Optional SDRAM configuration.
104+
105+
// Note: This requires SYSCLK <= 200MHz. 192MHz example below:
106+
// #define MICROPY_HW_CLK_PLLM (25)
107+
// #define MICROPY_HW_CLK_PLLN (384)
108+
// #define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
109+
// #define MICROPY_HW_CLK_PLLQ (8)
110+
104111
#define MICROPY_HW_SDRAM_SIZE (128 * 1024 * 1024 / 8) // 128 Mbit
105112
#define MICROPY_HW_SDRAM_STARTUP_TEST (0)
106113
#define MICROPY_HEAP_START sdram_start()
@@ -119,7 +126,7 @@ void board_early_init(void);
119126
#define MICROPY_HW_SDRAM_BURST_LENGTH 1
120127
#define MICROPY_HW_SDRAM_CAS_LATENCY 2
121128
#define MICROPY_HW_SDRAM_COLUMN_BITS_NUM 8
122-
#define MICROPY_HW_SDRAM_ROW_BITS_NUM 13
129+
#define MICROPY_HW_SDRAM_ROW_BITS_NUM 12
123130
#define MICROPY_HW_SDRAM_MEM_BUS_WIDTH 32
124131
#define MICROPY_HW_SDRAM_INTERN_BANKS_NUM 4
125132
#define MICROPY_HW_SDRAM_CLOCK_PERIOD 2

0 commit comments

Comments
 (0)