I think this needs to be
```C++
ram1 = (uint32_t*) malloc(VMERAMSIZE);
```
since `VMERAMSIZE` is already `512 * sizeof(uint32_t)`. Same with `ram2`.