• Working on my port to the nRF52 and trying to get Flash to work. I want to be able to save() and load() code etc...

    I've been having some problems and now that I'm using the Flash module I can kind of debug them. When I call Flash.erasePage(0x0); Espruino basically stalls out (but when I read flash memory through nrfjprog.exe it does look like the page was actually erased). It doesnt print anything else after that and the terminal looks like it just freezes. I can't even hard reset the board after it.

    I kind of have a theory: whenever you do a flash operation with nRF5x devices the non-volatile memory controller takes control and does it for you. (you just configure it for read or write, pass it the address (and value) and then wait for it to finish). However it halts the CPU while it is doing this. Could this be causing the problem I'm seeing? Any work arounds or other ideas about the issue? I think same issue happens when I try to save() and load() code. Espruino just freezes

About

Avatar for mjdietz @mjdietz started