I opened the KeyFobDemo and have been trying to make edits to it (very basic ones) to get used to the process of debugging with the CC2540/1 kit. My first goal was to change the #define value for the MAX NUM BEEPS so that instead of the device beeping 10 times, it would beep 3 times. I changed the value, built the project without any errors, went to the SmartRF Flash Programmer and for the flash image selected the hex file found in the folder :
C:\Texas Instruments\BLE-CC254x-1.4.0(NEW)\Projects\ble\KeyFob\CC2541DB\CC2541DK-mini Keyfob Slave\Exe\CC2541MiniDkDemoSlave.hex
I then selected 'Erase, Program and Verify' to flash program the USB dongle. After a success message, I wanted to test the change I made. I figured if I opened BTool and wrote of value of 1 to 0x0028 I would hear the low pitch beeps (if I wrote a value of 2 i would get the high pitched beeps). I hoped that with this change instead of 10 beeps, only 3 would be produced.
However, the issue is that when I open BTool, I have to select which COM port the USB device has been associated with and since I changed the flash program, the device is no longer recognized. In order for the COM3 port to appear, I have to flash program the device with
HostTestReleaseCC2540Usb.hex.
However, it seems once I do this, my previous edits are overwritten and the KeyFob beeps 10 times.
Is there a way around this? Am I testing this properly?
Thanks so much!