diff --git a/software/memtest/main.c b/software/memtest/main.c index 8ac178bcb..a52ddbac2 100644 --- a/software/memtest/main.c +++ b/software/memtest/main.c @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -31,7 +32,7 @@ static void membw_service(void) static void memtest_service(void) { - static unsigned int test_buffer[64*1024*1024/4] __attribute__((aligned(16))); + static unsigned int test_buffer[(MAIN_RAM_SIZE/2)/4] __attribute__((aligned(16))); static unsigned char reading; static unsigned int err, total_err; #ifdef DEBUG