软件包修改

This commit is contained in:
sc committed 2025-12-07 14:37:00 +08:00
1 parent 425aec3576
commit 2fd0bf135d
27 files changed
+1367 -1090

No files matched your search

+2 -1
View File
@@ -83,6 +83,7 @@ static void SDRAM_Initialization_Sequence(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM
/* Set the device refresh counter */
HAL_SDRAM_ProgramRefreshRate(hsdram, SDRAM_REFRESH_COUNT);
}
static int SDRAM_Init(void)
{
int result = RT_EOK;
@@ -235,7 +236,7 @@ MSH_CMD_EXPORT(sdram_test, sdram test)
/* 从片内 RAM 和 片外 SDRAM 顺序申请测试 */
void malloc_test(void)
{
int size = 50 * 1024; // 50KBytes
int size = 1024 * 1024; // 50KBytes
rt_uint8_t * ptr = RT_NULL;
ptr = rt_malloc(size);
if(ptr != RT_NULL)
+8 -4
View File
@@ -30,18 +30,22 @@
#define SDCLOCK_PERIOD 2
/* refresh rate counter */
//#define SDRAM_REFRESH_COUNT ((uint32_t)0x02AB)
#define SDRAM_REFRESH_COUNT ((uint32_t)0x1000)
//#define SDRAM_REFRESH_COUNT ((uint32_t)0x1000)
#define SDRAM_REFRESH_COUNT ((uint32_t)0x0396)
#define SDRAM_SIZE ((uint32_t)0x2000000)
/* Timing configuration for W9825G6KH-6 */
/* 90 MHz of SD clock frequency (180MHz/2) */
/* TMRD: 2 Clock cycles */
#define LOADTOACTIVEDELAY 2
/* TXSR: 7x11.90ns */
#define EXITSELFREFRESHDELAY 12
//#define EXITSELFREFRESHDELAY 12
#define EXITSELFREFRESHDELAY 7
/* TRAS: 4x11.90ns */
#define SELFREFRESHTIME 12
//#define SELFREFRESHTIME 12
#define SELFREFRESHTIME 5
/* TRC: 7x11.90ns */
#define ROWCYCLEDELAY 10
//#define ROWCYCLEDELAY 10
#define ROWCYCLEDELAY 7
/* TWR: 2 Clock cycles */
#define WRITERECOVERYTIME 2
/* TRP: 2x11.90ns */