I finally have the firmware programming code worked out to the point where I don't get any function call errors uploading the entire hex file from my BLE project into the 022001-00 module. Unfortunately, after programming I am running into the same problem I described above -- not being able to set the CPU clock to 48 MHz. I can successfully reprogram the module with the miniprog3 and then my firmware can again set the clock and program the device, so I really need to know how to recover from the error I described above.
Can you please provide the script you are using to program the module? When you get the error, which particular system call seems to be failing can you please let me know?
Please try adding some extra delays after erase row function call and see if it solves your issue.
I'm sorry Dheeraj,
I meant to reply over the weekend. I had taken part of my programming code from the incorrect programming document and that code was apparently causing the issue. Since updating it from the pertinent document, everything is working well. I was able to update the part several times without any problems. So, in the end, the problem was caused by not using the correct programming document for my part.
Thanks for you help on this.