mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Basic memory test
This commit is contained in:
parent
6878c5210f
commit
0ded19d04a
4 changed files with 286 additions and 0 deletions
11
apps/memtest/memtest.c
Normal file
11
apps/memtest/memtest.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "uvm32_target.h"
|
||||
#include "barr_memtest.h"
|
||||
|
||||
void main(void) {
|
||||
datum * base = (datum *)UVM32_EXTRAM_BASE;
|
||||
if ((memTestDataBus(base) != 0) || (memTestAddressBus(base, HEAP_SIZE) != NULL) || (memTestDevice(base, HEAP_SIZE) != NULL)) {
|
||||
println("Memory error!");
|
||||
} else {
|
||||
println("Memory ok");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue