1 of 1 people found this helpful
1. 01 03 0C 00 is the SPEC's HCI reset command. CYW207xx also support the SPEC's HCI command.
2. For read and write BD_ADDR, please try followed command:
Read BD ADDR: 01 09 10 00
Write BD_ADDR: 01 01 FC 06 BD_ADDR[5:0]
Thanks for the info.
I've tryied with the commands that you have written me and it seems to work fine.
The only problem is that if I power-off my device and I turn it on again when I read BD address I receive as respose the old one.
There is a way to let the device maintain the address that I write even after a power-off?
Thanks a lot
After further analysis I've seen that DB address is not maintained by BCM20737s even after a reset operation.
To better understand what I'm looking for I will explain what my code have to do:
I have a C code that have to program BCM20737s module through main CPU of my custom board via HCI UART (BTLE code and mimi driver .hex file are stored inside board internal memory).
After that operation I have to overwrite MAC address (DB address) of BCM20737s.
This is necessary because during programming phase the same .hex file (that contain DB address info) is downloaded on every board produced so I have to change MAC address assigning the one associated to the specific board after download operation.
What I'm doing now is to program the device, than I put it agian in programming mode and I send it the commands that you have written me (first I write correct DB address, than I read it back to verify that it have been correctly set).
After that I exit form programming mode resetting BMC20737s and taking TX low before release reset signal.
Than if I power off the device or I reset it when I try to read angin DB address, BCM20737s reply with the old address.
What I have to do to change DB address permanently?
Thanks in advance
"Write BD_ADDR: 01 01 FC 06 BD_ADDR[5:0]“ is used to write the BD_ADDR into ram, so after reset and power cycle, BD_ADDR will resume to NV_RAM's address.
If you want to change the BD_ADDR in nv_RAM for mass production, please refer to the followed link