diff --git a/arch/arm/src/lpc54xx/chip/lpc54_syscon.h b/arch/arm/src/lpc54xx/chip/lpc54_syscon.h index 7365cd1fb6a..0893f72131c 100644 --- a/arch/arm/src/lpc54xx/chip/lpc54_syscon.h +++ b/arch/arm/src/lpc54xx/chip/lpc54_syscon.h @@ -617,9 +617,9 @@ /* EMC clock divider */ -#define SYSCON_EMCCLKDIV_DIV_SHIFT (9) /* Bits 0-7: Clock divider value */ +#define SYSCON_EMCCLKDIV_DIV_SHIFT (0) /* Bits 0-7: Clock divider value */ #define SYSCON_EMCCLKDIV_DIV_MASK (0xff < mw a0000000=55555555 - a0000000 = 0x00000000 -> 0x55555555 - nsh> mw a0000000 - a0000000 = 0x55555555 - - But does not pass the ramtest. These tests all pass: - - nsh> ramtest a0000000 16 - nsh> ramtest a0000000 32 - nsh> ramtest a0000000 64 - nsh> ramtest a0000000 126 - - But this fails the marching one's test (only): - - nsh> ramtest a0000000 128 - RAMTest: Marching ones: a0000000 128 - RAMTest: ERROR: Address a0000006 Found: 0002 Expected 0001 - RAMTest: ERROR: Address a0000008 Found: 0002 Expected 0001 - ... - RAMTest: ERROR: Address a000007e Found: d47e Expected 0001 - RAMTest: Marching zeroes: a0000000 128 - RAMTest: Pattern test: a0000000 128 55555555 aaaaaaaa - RAMTest: Pattern test: a0000000 128 66666666 99999999 - RAMTest: Pattern test: a0000000 128 33333333 cccccccc - RAMTest: Address-in-address test: a0000000 128 - - Additional test fail as the size of the test increases. + 2017-12-11: Fixed an error in board LEDs. SDRAM is partially functional + but not reliable. Added framework for future I2C and SPI flexcomm + drivers (mostly empty files for now) + 2017-12-12: The SDRAM is now functional passes the commplete RAM test. Configurations ============== @@ -156,4 +131,13 @@ Configurations 0xa0000000, the size of the memory is 128Mbits or 16Mb. So the DRAM may be tested with this command: + NuttShell (NSH) NuttX-7.23 nsh> ramtest a0000000 16777216 + RAMTest: Marching ones: a0000000 16777216 + RAMTest: Marching zeroes: a0000000 16777216 + RAMTest: Pattern test: a0000000 16777216 55555555 aaaaaaaa + RAMTest: Pattern test: a0000000 16777216 66666666 99999999 + RAMTest: Pattern test: a0000000 16777216 33333333 cccccccc + RAMTest: Address-in-address test: a0000000 16777216 + nsh> + diff --git a/configs/lpcxpresso-lpc54628/src/lpc54_sdram.c b/configs/lpcxpresso-lpc54628/src/lpc54_sdram.c index 8a64b55e0c1..febfbec82f9 100644 --- a/configs/lpcxpresso-lpc54628/src/lpc54_sdram.c +++ b/configs/lpcxpresso-lpc54628/src/lpc54_sdram.c @@ -111,7 +111,7 @@ static const struct emc_dynamic_timing_config_s g_emc_dynconfig = .rc = 60, .rfc = 60, .xsr = 67, - .rrd = 23, + .rrd = 12, .mrd = 2, };