HI, I am trying to use cc3000patcher_TivaTM4C123GH6PM. This is an example from TI. I am having very hard time to debug this code. If somebody has already used the same example I would like to get in contact. Thanks for the help
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
HI, I am trying to use cc3000patcher_TivaTM4C123GH6PM. This is an example from TI. I am having very hard time to debug this code. If somebody has already used the same example I would like to get in contact. Thanks for the help
Hi Gianluca,
Can you please point me to the project that you are referring to? And where exactly are you getting stuck?
Thanks & Regards,
Raghavendra
Hi,
in CCS I go to the welcome page, I set Packages = TI-RTOS, then ARM/Tiva C Series/Tiva TM4C123GH6PM/Example Projects
Here you have CC3000 Patcher, TCP Echo for CC3000, UDM Echo for CC3000.
My idea is to start with CC3000 Patcher then move to the other examples.
CC3000patcher.c has a TASK: patchFxn
WiFi_Params_init(¶ms);
params.bitRate = 1000000;
handle = WiFi_open(Board_WIFI, Board_SPI_CC3000, NULL, ¶ms);
// Gianluca comment: Program Counter never reaches this point. There is not return from WiFi_open.
GPIO_write(Board_LED, Board_LED_ON);
/* Check service pack version */
nvmem_read_sp_version(spNum);
if ((spNum[0] == PACKAGEID) && (spNum[1] == PACKAGEBLDNUM)) {
System_printf("You are using service pack version %d.%d already. No "
"need to patch the CC3000.\n\n", spNum[0], spNum[1]);
GPIO_write(Board_LED, Board_LED_ON);
BIOS_exit(0);
}
Please let me know if you need other details.
Thanks
Gianluca
Are you using a Tiva launchpad? What model launchpad are you using?
Are you using TivaWare? I've never seen this program "Patcher" in the latest TivaWare.
Hi Gianluca,
By the look of it, it looks like the initialization fails for you. Initialization of SPI is descibed here:http://processors.wiki.ti.com/index.php/CC3000_Serial_Port_Interface_(SPI) .
Do you remember downloading any specific package that contained this program?
Thanks & Regards,
Raghavendra
...moreover , this is my printf_log:
593150,CORTEX_M4_0,WiFi: Object created.,Main Logger,,
600900,CORTEX_M4_0,WiFi: wlan_start() was called. IRQ interrupt is now enabled.,Main Logger,,
607025,CORTEX_M4_0,WiFi: 0x1 was written to the WLAN EN pin.,Main Logger,,
64383250,CORTEX_M4_0,WiFi: CC3000 is powered up and ready.,Main Logger,,
64394075,CORTEX_M4_0,WiFi: Performing first write to CC3000 after wlan_start().,Main Logger,,
64621175,CORTEX_M4_0,WiFi: Write transaction to CC3000 has completed.,Main Logger,,
953533225,CORTEX_M4_0,WiFi: Read transaction from CC3000 has completed. Calling receive handler.,Main Logger,,
IT seems the serial communication with between MCU and CC3000 was performed correctly...I do not see errors