When I am trying to write a data to ROM, I always encountered error -70063 which is "The buffer has not been configured properly. Buffer type cannot be changed. The buffer might exist in ROM, but has not been configured since the last power cycle."
It was all right at the first run, but got error after that.
The simple program is attached.
Could you find anything wrong?
Thanks.