Yes XinghaoZ_26 you are right. Meanwhile I got the module operative in standard HCI mode loading an "empty" application with WICED Studio instead of hello_sensor example. This is all I have added in my C-file:
But let me ask you this. The module is only available in standard HCI mode if I keep "recovery" button for SPI2_MOSI signal pressed during power cycle. Is this normal?
My expectation was if I load an empty application into flash then the module should automatically activate standard HCI mode? Is my understanding wrong?
I am asking because when we make a real design in of the module later in our product, then we need to connect SPI2_MOSI signal to Host processor in order to trigger it.
Per my test, in the recover mode, the device can only accept the HCI reset command once.
You need to pull the CTS pin to high during the power on reset, then it can accept all the standard HCI commands.
XinghaoZ_26 There is one last question: when we receive fresh CYBT-333047-02 modules from Cypress distributor, is then the on-board flash memory completely empty or is there any application already pre-loaded in flash-memory?
I am just thinking of the final production step with our end device when CYBT-333047-02 is soldered on PCBA. So we would connect the 4 UART pins to host processor, we would connect the SPI2_MOSI signal to Host processor and we would connect XRES to Host processor. I think with CYBT-333047-02 it is the signal SPI2_MOSI to switch to recovery mode and not signal CTS (which is for CYW20706 only). Please confirm again.
Then the following startup procedure will happen:
1.) we would apply SPI2_MOSI to GND by HOST processor
2.) we would apply XRES to GND to reset module and then we would release the XRES signal. Module is now in recovery mode.
3.) now we would download the "empty application" into CYBT-333047-02 flash memory via UART by Host processor using HCI commands
4.) now we again apply SPI2_MOSI to GND by HOST processor
5.) then we apply XRES and release XRES, now module should accept standard HCI commands
Is my understanding correct?
The CYBT-333047 is a CYW20706 based module. It is shipped with EZ-Serial FW.
I just tested on the 333047 kit board with cybluetool. If the device is in recover mode, it only receives the HCI reset command.
You need to pull the CTS to high then it can receive all the standard HCI command. So please pull CTS to high in step 4. You can double check it on your own kit board.