I tried this and it says =undefined after uploading it so I assume it was succesful.
More verbose check:
var success = true;
for (var i=48;i<64;i++) {
console.log("checking:",i);
for (var j=0; j < 1024; j+=4) {
var dataPointer = i * 1024 + j;
poke32(0x20000000+dataPointer, 0xAAAAAAAA);
var v = peek32(0x20000000+dataPointer);
if (v != 0xAAAAAAAA) {
console.log("Got "+v+" not 0xAAAAAAAA");
success = false;
}
poke32(0x20000000+dataPointer, 0x55555555);
var v = peek32(0x20000000+dataPointer);
if (v != 0x55555555) {
console.log("Got "+v+" not 0x55555555");
success = false;
}
}
}
if (success == true) {
console.log("check was successful");
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I tried this and it says =undefined after uploading it so I assume it was succesful.
More verbose check: