BlueGiga provides a DOS command DFUTool to upload the HEX file on the USB dongle.
Does TI provides the same feature ?
If not how can we do it easily ?
You can use the SmartRF Flash Programmer together with e.g. a CC Debugger to program the flash on your device.
When you install the SmartRF Flash Programmer, a command line interface version of the utility is also provided. The command line interface executable is found in <install dir>\SmartRF Tools\Flash Programmer\bin\SmartRFProgConsole.exe. Run it without any input arguments to output the list of available commands.
--If this post answered your question, thank you for clicking Verify Answer
Tx a lot for this answer.
In my case I would like to test the SmartRFProgConsole to upload the keyfob demo on the USB dongle provided with the CC2540 Kit.
I have inserted the USB Keyfob on my PC and taped the following command: SmartRFProgConsole S EPV keyfob.hex
> Answer is: Could not locate any EBs
I do not see the USB dongle as a Windows peripherical as well :(
Can you please explain the procedure to upload the keyfob demo hex file on the USB dongle and explain if any USB relative code is required on the keyfob demo program.
Other additional question:
Can I reuse this executable for a commercial product to upgrade the firmware ?
Fred VisticotI have inserted the USB Keyfob on my PC and taped the following command: SmartRFProgConsole S EPV keyfob.hex
> Answer is: Could not locate any EBs
In general, to program a USB dongle, you need to do the following:
1) Connect the CC Debugger to the debug header on the USB dongle.2) Connect the USB dongle to the computer (to power the USB dongle)3) Connect the CC Debugger to the computer. The CC Debugger LED should be green (if not, try pressing the CC Debugger reset button)4) Program the CC Debugger using SmartRF Flash programmer (GUI or CLI version).
In your command line argument: When you simply specify the S argument, the flash programmer will take the first enumerated debugger it finds. You can specify which debugger you wish to use by writing the CC debugger's EB ID in brackets, e.g. S(1986). The following command should work: SmartRFProgConsole.exe S EPV F=keyfob.exe
Fred VisticotCan you please explain the procedure to upload the keyfob demo hex file on the USB dongle and explain if any USB relative code is required on the keyfob demo program.
I am no expert on BLE nor the BLE stack, but I doubt that downloading the keyfob hex image onto the USB dongle will work. If you install the BLE stack from the TI web, several hex images are loacted in <install dir>\Accessories\HexFiles\ .
Edit: Minor typo fixes
Tx ABO for your clear answser.
I'm looking for a solution for a commercial product (tag) who need to be "upgradable" by USB. I can not imagine to use CC debugger for this kind of solution :)
Bluegiga provides this kind of tool and I'm quite surprised that it is not possible with the TI solution...
I read a document in the TI 1.2 stack: Universal Boot Loader for SOC-8051 by USB-MSD Developer's Guide.pdf
...but it is difficult for me to understand how I can use this doc for my solution...
If you wish the ability to upgrade the USB stick simply by connecting it to the USB controller, you will need a bootloader + application solution.
If the UBL is entered, the USB dongle enumerates as a mass storage device. The USB dongle's application can be updated through drag-and-drop, or by using an application that copies the hex image to the mass storage device.
I cannot give you a more concrete answer than this right now, but I'll pass the question on about the UBL and hopefully I'll be able to give you a better answer shortly.
Tx a lot,
It is exactly what i try to do, upgrade the USB stick by connecting it to the USB controller.
If you can provide me a sample code or an easy procedure to be applied it would help me a lot !!!
The steps needed to use the UBL together with the GenericApp example is provided in the Universal Boot Loader for SOC-8051 by USB-MSD Developer's Guide document (included in the BLE stack download). It explains the changes needed for your application to work together with the bootloader.
I would recommend you try following the steps in the UBL user's guide together with the GenericApp to familiarize yourself with the UBL.
Tx for the info.
The TI_BLE_Sample_application_Guide.pdf provides a description of the USB Bootloader app... it is exactly what I need...
I wil test this ASAP and keep you posted...
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.