Hello TI community. What I am trying to achieve is to program CC2640 on launch-pad via serial bootloader interface (see this for reference: http://www.ti.com/lit/an/swra466a/swra466a.pdf).
I download an example, where everything is included (source and binaries), anyway when I try to write a hex image with the provided binaries to the launch pad it fails while erasing flash with "eraseFlashRange" function. This is the source from the example:
//
// Erasing as much flash needed to program firmware.
//
cout << "Erasing flash ...\n";
getTime();
if(pDevice->eraseFlashRange(devFlashBase, byteCount) != SBL_SUCCESS)
{
goto error;
}
I get this error in the output:
66% Flash erase failed. (Status 0x43 = 'INVALID_ADR'). Flash pages may be locked.
I also build my own project with the provided source and updated everything up and I still get the same error. Parameters are: devFlashBase = 0x00000000 and byteCount = size of my hex file.
I am able to program my image to the launch-pad just fine using the SmartFlashProgrammer 2 (version 1.7.5)
Is there anything I should be aware of or anything that I missed?
Thanks for all the answers!
PS: If you need a full code, let me know.
Best regards.