- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to dowalod FW via HCI command. I do the steps as "WICED HCI UART Control Protocol".
Below is my test steps, I write the wrong data to ram on purpose. I think this steps should make device cannot run because I have downlaod new FW(though data is wrong) to RAM. But it still run normally with old FW. Below is my steps.
1. 01 03 0C 00--------04 0E 04 01 03 0C 00
2. 01 18 FC 06 00 00 00 C2 01 00-----04 0E 04 01 18 FC 00
3. 01 2E FC 00----04 0E 04 01 2E FC 00
4. 01 4C FC 07 38 7A 21 00 01 02 03----04 0E 04 01 03 0C 00(write wrong data to 0x00217A38 )
5. 01 4E FC 04 FF FF FF FF---04 0E 04 01 4E FC 00
Then device run normally with old FW. Why
- Tags:
- ram download test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi YaTr_3516311,
What do you mean by writing wrong data? In step 4, you are supposed to give RAM location of your application code & configuration data in HCI command. Your device is not getting programmed with new application if you are providing wrong RAM location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
1. What do you mean by writing wrong data?
.2. Unforunately, I do the steps as above said. Device can still run normally. So I think step 4) is useless. I checked RAM address in my ibeacon project of spar_ram_procld. It is 0x00217A38
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
New update here.
I change step 4's address and send 01 4C FC 07 00 00 00 FF 01 02 03 command. I find this address is the OK one(Device reboot then cannot run normally).I get this addresss 00 00 00 FF from iBeacon-CYBT_343026_EVAL-rom-ram-Wiced-release.hcd file. Is this my test correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The address in the app hcd file is the location where your application will start. So this new app data will be loaded in RAM using Write RAM command. Therefore, previous app/program will not run after successful Write RAM command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So addresss 00 00 00 FF is the correct one for Downloading the Application to RAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First can you tell me how are you reading the hcd file? Where the address is defined?
Also, try building some other project n see if you are still getting the same address. As per my understanding, it should change.
As I stated earlier, you have to write the starting RAM location of your application while using Write RAM command. This address might vary depending on the applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. First can you tell me how are you reading the hcd file? Where the address is defined?
2. try building some other project n see if you are still getting the same address. As per my understanding, it should change.
: I build other project such as hello sensor and others. The address is same which is 00 00 00 FF.
3. As I stated earlier, you have to write the starting RAM location of your application while using Write RAM command. This address might vary depending on the applications.