Closed adison closed 6 years ago
Why is the error message not valid? Is the address to write erased?
The address has to be erased (0xffffffff) for write If it had been written, it cannot be written twice.
correct
Are you saying that pynrfjprog write function should work as nrfjprog.exe --memwr option?
Ok, then, while I tried to write the "written area", nrfjprog will give error msg, but pynrfjprog didn't
$ ./nrfjprog -f nrf52 --memwr 0x1000108c --val 0x12345678
Parsing parameters.
ERROR: The area to write is not erased.
nrfjprog.exe and pynrfjprog.write are different abstraction layers. They work differently.
I can understand that, as well it is involved with libnrfjprogdll.dylib. But is it possible to submit a ticket to someone can improve libnrfjprogdll.dylib ?
I could try to improve the help and documentation to describe the behaviour better, but for reasons that will take too long to explain the behaviour of the functions is not going to change.
Said to hear that.. Any alternative solution to know if it failed to write?
readback the address written and compare.
Exactly what I did :p, I think that's it.
on OSX NRFJPROG lib won't pass "area is not erased error",