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.

Help with host driver port to STM32

Other Parts Discussed in Thread: CC3100, CC3100MOD, UNIFLASH, CC31XXEMUBOOST, CC3100BOOST

Hi everyone.

I just started porting the driver for CC3100 to a custom STM32 board.

Looking at my logicanalyser the signals seem correct and I can do basic communication with the CC3100MOD on the board. The problem is that it asserts an error (-7) if I try to do WlanPolicySet (And if I'm not misstaken sl_WlanProfileDel gives the same result).

Anyone have any Ideas what could be wrong?

Also when is code for upgrading the CC3100MOD firmware from my CPU going to be released?
In dire need since the product is already late for release since it has been redesigned from using an CC3000.
(Don't know if it helps but we've already signed your NDA).

Kind regards

Jimmy

Here's my debug output:

HW init - Done!                                                                                                         
                                                                                                                        
                                                                                                                        
 Get time application - Version 1.1.0                                                                                   
----                                                                                                                    
(sl_Start)                                                                                                              
                                                                                                                        
WiFi HW init - Done!                                                                                                    
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBC,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x08,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0x11,0x11,0x11,0x11                                                                                       
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBD,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x78,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xB3,0x06,0x11,0x11                                                                                       
 [GENERAL EVENT] 0x1                                                                                                    
(Mode: 0)                                                                                                               
                                                                                                                        
(sl_DevGet:SL_DEVICE_GENERAL_VERSION)                                                                                   
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x66,0x84,0x08,0x00                                                                                       
Sending(  8): 0x7C,0x0C,0x01,0x00,0x0C,0x00,0x00,0x08                                                                   
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBE,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x78,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x37,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xB2,0x02,0x3E,0x3F                                                                                       
 [GENERAL EVENT] 0x1                                                                                                    
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBF,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x66,0x04,0x38,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  8): 0x00,0x00,0x01,0x00,0x0C,0x00,0x2C,0x00                                                                   
Recieve( 44): 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0
x05,0x03,0x03,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x33,0x7F,0x57       
CHIP 67108864                                                                                                           
MAC 0.0.4.1                                                                                                             
PHY 1.5.3.3                                                                                                             
NWP 2.0.7.0                                                                                                             
ROM 13107                                                                                                               
HOST 1.0.0.1                                                                                                            
                                                                                                                        
(sl_DevGet:SL_DEVICE_GENERAL_CONFIGURATION_DATE_TIME)                                                                   
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x66,0x84,0x08,0x00                                                                                       
Sending(  8): 0x7C,0x0C,0x01,0x00,0x0B,0x00,0x00,0x08                                                                   
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0xBF,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0xBC,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x66,0x04,0x38,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  8): 0x00,0x00,0x01,0x00,0x0B,0x00,0x2C,0x00                                                                   
Recieve( 44): 0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xDD,0
x07,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00       
Day 1,Mon 1,Year 2013,Hour 0,Min 0,Sec 5                                                                                
                                                                                                                        
(sl_WlanPolicySet)                                                                                                      
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x86,0x8C,0x04,0x00                                                                                       
Sending(  4): 0x10,0x00,0x00,0x00                                                                                       
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0xBC,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0xBD,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x86,0x0C,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xF9,0xFF,0x01,0x00                                                                                       
       

sl_WlanPolicySet

UPDATE:

Added delays in CC3100_disable (20 ms) and CC3100_enable(50ms) as suggested in other forum thread.

This didn't help.

I looped my code to ask for the internal clock and had it run at full speed (3900 requests/answers per second) no problem. I had my logicanalyser active at the same time and no interrupts were missed.

What I can see is that I get, what is enterpreted, an event just after calling sl_WlanProfileDel

Also if I enable the debug output of sent/recived bytes the code sometimes continues a bit further (On a few accations all the way to connecting to the network and to the NTP server), this seems to point to a timming problem.

Any Ideas?

Here is my latest debug output:

HW init - Done!                                                                                                         
                                                                                                                        
                                                                                                                        
 Get time application - Version 1.1.0                                                                                   
----                                                                                                                    
(sl_Start)                                                                                                              
                                                                                                                        
WiFi HW init - Done!                                                                                                    
(Mode: 0)                                                                                                               
                                                                                                                        
(sl_DevGet:SL_DEVICE_GENERAL_VERSION)                                                                                   
 [GENERAL EVENT] 0x1 (Status:-78, Sender:2)                                                                             
CHIP 67108864                                                                                                           
MAC 0.0.4.1                                                                                                             
PHY 1.5.3.3                                                                                                             
NWP 2.0.7.0                                                                                                             
ROM 13107                                                                                                               
HOST 1.0.0.1                                                                                                            
                                                                                                                        
(sl_DevGet:SL_DEVICE_GENERAL_CONFIGURATION_DATE_TIME)                                                                   
Day 1,Mon 1,Year 2013,Hour 0,Min 0,Sec 0                                                                                
                                                                          
                                                                               
                                                                                                                        
(sl_WlanProfileDel)                                                                                                     
 [GENERAL EVENT] 0x1 (Status:-94, Sender:2)                                                                             
! Fail:-7 !

And with debug of SPI data (Makes us continue passed WlanProfileDel and instead hang on WlanPolicySet):

                                                                                                                       
 HW init - Done!                                                                                                         
                                                                                                                        
                                                                                                                        
 Get time application - Version 1.1.0                                                                                   
----                                                                                                                    
(sl_Start)                                                                                                              
                                                                                                                        
WiFi HW init - Done!                                                                                                    
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBC,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x08,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0x11,0x11,0x11,0x11                                                                                       
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBD,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x78,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xB3,0x06,0x11,0x11                                                                                       
 [GENERAL EVENT] 0x1 (Status:-77, Sender:6)                                                                             
(Mode: 0)                                                                                                               
                                                                                                                        
(sl_DevGet:SL_DEVICE_GENERAL_VERSION)                                                                                   
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x66,0x84,0x08,0x00                                                                                       
Sending(  8): 0x7C,0x0C,0x01,0x00,0x0C,0x00,0x00,0x08                                                                   
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBE,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x78,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xB2,0x02,0x3E,0x34                                                                                       
 [GENERAL EVENT] 0x1 (Status:-78, Sender:2)                                                                             
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x00,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBF,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x66,0x04,0x38,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  8): 0x00,0x00,0x01,0x00,0x0C,0x00,0x2C,0x00                                                                   
Recieve( 44): 0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0
x05,0x03,0x03,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x33,0x33,0x3B,0x57       
CHIP 67108864                                                                                                           
MAC 0.0.4.1                                                                                                             
PHY 1.5.3.3                                                                                                             
NWP 2.0.7.0                                                                                                             
ROM 13107                                                                                                               
HOST 1.0.0.1                                                                                                            
                                                                                                                        
(sl_DevGet:SL_DEVICE_GENERAL_CONFIGURATION_DATE_TIME)                                                                   
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x66,0x84,0x08,0x00                                                                                       
Sending(  8): 0x7C,0x0C,0x01,0x00,0x0B,0x00,0x00,0x08                                                                   
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0xBF,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0xBC,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x66,0x04,0x38,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  8): 0x00,0x00,0x01,0x00,0x0B,0x00,0x2C,0x00                                                                   
Recieve( 44): 0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0xDD,0
x07,0x00,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00       
Day 1,Mon 1,Year 2013,Hour 0,Min 0,Sec 4                                                                                
                                                                                                                        
(sl_WlanProfileDel)                                                                                                     
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x85,0x8C,0x04,0x00                                                                                       
Sending(  4): 0xFF,0x00,0x00,0x00                                                                                       
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0xBC,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0xBD,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x78,0x00,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xA2,0x02,0x01,0x00                                                                                       
 [GENERAL EVENT] 0x1 (Status:-94, Sender:2)                                                                             
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x0B,0x00,0x2C,0x00                                                                                       
Recieve(  4): 0xBE,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x85,0x0C,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0x00,0x00,0x3E,0x34                                                                                       
                                                                                                                        
(sl_WlanPolicySet)                                                                                                      
Sending(  4): 0x21,0x43,0x34,0x12                                                                                       
Sending(  4): 0x86,0x8C,0x04,0x00                                                                                       
Sending(  4): 0x10,0x00,0x00,0x00                                                                                       
Sending(  4): 0x65,0x87,0x78,0x56                                                                                       
Recieve(  4): 0x01,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xBF,0xDC,0xCD,0xAB                                                                                       
Recieve(  4): 0x86,0x0C,0x08,0x00                                                                                       
Recieve(  4): 0x38,0x00,0x00,0x00                                                                                       
Recieve(  4): 0xF9,0xFF,0x3E,0x34                                                                                       
! Fail:-7 !                                                                                                             
 

  • Hi Jimmy,

    -7 error is sFlash error, all of your API involving the sFlash read or write are failing.

    You can try formatting the the device and updating the service pack using uniflash. Please refer to uniflash quick start guide for details 

    http://processors.wiki.ti.com/index.php/CC31xx_%26_CC32xx_UniFlash_Quick_Start_Guide

    Updating the service pack from MCU is supported. Please refer to below post for details

    http://e2e.ti.com/support/wireless_connectivity/f/968/p/381016/1347739.aspx#1347739

    Regards,

    Ankur

  • Hi Ankur1

    Thanks for the info.

    How is this supposed to work in a production environment where I would need to format all units (1000 units+) flash? Or is this because I have an early module and they will be formatted when I purchase for production later from TI?

    A format command issuable from host CPU would be handy.

    Kind regards

    Jimmy

  • Hi again

    Skipping the clearing of profiles and other flash dependent commands I can now connect to a NTP server on the internet. That great, but now I have to fix the flash problem.

    So I'm trying to format the flash on my board.

    To learn how this works I first did it with an CC3100BOOST mounted on a CC31XXEMUBOOST and that worked flawlessly.

    But when trying the same with a FTDI USB<->serial cable I only get part of the way. It tells me to restart the device and then I get  "connection succeeded"after recieving

    00 CC

    unflasher sends

    00 03 27 27
    ..''

    I'm then supposed to get something like

    00 CC 86
    .̆

    but I'm not.

    I only seeing a lot of 0x00 and then some 0x80 packets from the CC3100MOD to uniflasher (That hangs waiting for better answer or something).

    What signals are in relevant when flashing? Rx,TX,CTS,RTS and reset oviously. Any other?

    I've connected these to the CC31XXEMUBOOST but still no luck (Similar results to when using external USB-Serial converter. IE. I can see that CC3100 sends CC when starting up and UNIFlash sends info for version but gets no reply).

    What size of flash is there in the CC3100MOD?

    What could I be doing wrong?

    Kind regards
    Jimmy

    I've attached dumps of working:
    3482.Format -success.htm

    and failing serial dump:

    8838.Format - Failed.htm
    <html><head>
    <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"/>
    <meta name="DESCRIPTION" CONTENT="HHD Software Free Device Monitoring Studio HTML file"/>
    <meta name="GENERATOR" CONTENT="HHD Software Free Device Monitoring Studio"/>
    <meta name="COPYRIGHT" content="HHD Software"/>
    <meta name="Author" CONTENT="HHD Software Free Device Monitoring Studio"/>
    <title>HHD Software Free Device Monitoring Studio HTML Export</title>
    <style>
      .st00 { font-family: "Verdana"; font-style: normal; font-weight: 700; color: #000000; background-color: #ffffff; font-size: 11pt}
      .st01 { font-family: "Verdana"; font-style: normal; font-weight: 400; color: #000000; background-color: #ffffff; font-size: 11pt}
      .st02 { font-family: "Courier New"; font-style: normal; font-weight: 400; color: #000000; background-color: #ffffff; font-size: 11pt}
      .st03 { font-family: "Verdana"; font-style: normal; font-weight: 700; color: #800000; background-color: #ffffff; font-size: 11pt}
      .st04 { font-family: "Verdana"; font-style: normal; font-weight: 400; color: #800000; background-color: #ffffff; font-size: 11pt}
      .st05 { font-family: "Courier New"; font-style: normal; font-weight: 400; color: #ff0000; background-color: #ffffff; font-size: 11pt}
      .st06 { font-family: "Verdana"; font-style: normal; font-weight: 700; color: #000080; background-color: #ffffff; font-size: 11pt}
      .st07 { font-family: "Verdana"; font-style: normal; font-weight: 400; color: #000080; background-color: #ffffff; font-size: 11pt}
      .st08 { font-family: "Courier New"; font-style: normal; font-weight: 400; color: #2020ff; background-color: #ffffff; font-size: 11pt}
    </style></head>
    <body>
    <!--StartFragment -->
    <pre>
    <p class="st01"><span class="st00">000001: PnP Event (DOWN), 01.12.2014 16:22:51.787 (1. Device: USB Serial Port (COM29))
    </span>The device has just been connected to the system.</p>
    <p class="st01"><span class="st00">000002: Create Request (DOWN), 01.12.2014 16:25:27.810 +156.022 (1. Device: USB Serial Port (COM29))
    </span>Process 0x3608 (uniflash.exe) attempted to open the device</p>
    <p class="st01"><span class="st00">000003: Create Request (UP), 01.12.2014 16:25:27.824 +0.014 (1. Device: USB Serial Port (COM29))
    </span>Process 0x3608 (uniflash.exe) create request status: 0x00000000</p>
    <p class="st01"><span class="st00">000005: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_BAUD_RATE: Retrieve Baud Rate
      Baud Rate=921600</p>
    <p class="st01"><span class="st00">000007: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_LINE_CONTROL: Retrieve line control
      WordLength=8
      StopBits=1 stop bit
      Parity=No parity</p>
    <p class="st01"><span class="st00">000009: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_CHARS: Retrieve special characters
      EofChar=0x0
      ErrorChar=0x0
      BreakChar=0x0
      EventChar=0x0
      XonChar=0x11
      XoffChar=0x13</p>
    <p class="st01"><span class="st00">000011: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_HANDFLOW: Retrieve handshake information
      ControlHandShake=1
      FlowReplace=64
      XonLimit=2048
      XoffLimit=512</p>
    <p class="st01"><span class="st00">000013: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_BAUD_RATE: Retrieve Baud Rate
      Baud Rate=921600</p>
    <p class="st01"><span class="st00">000015: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_LINE_CONTROL: Retrieve line control
      WordLength=8
      StopBits=1 stop bit
      Parity=No parity</p>
    <p class="st01"><span class="st00">000017: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_CHARS: Retrieve special characters
      EofChar=0x0
      ErrorChar=0x0
      BreakChar=0x0
      EventChar=0x0
      XonChar=0x11
      XoffChar=0x13</p>
    <p class="st01"><span class="st00">000019: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_HANDFLOW: Retrieve handshake information
      ControlHandShake=1
      FlowReplace=64
      XonLimit=2048
      XoffLimit=512</p>
    <p class="st01"><span class="st00">000020: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate
      Baud Rate=921600</p>
    <p class="st01"><span class="st00">000022: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_RTS: Set RTS</p>
    <p class="st01"><span class="st00">000024: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_DTR: Set DTR</p>
    <p class="st01"><span class="st00">000026: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_LINE_CONTROL: Set line control
      WordLength=8
      StopBits=1 stop bit
      Parity=No parity</p>
    <p class="st01"><span class="st00">000028: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_CHARS: Set special characters
      EofChar=0x0
      ErrorChar=0x0
      BreakChar=0x0
      EventChar=0x0
      XonChar=0x11
      XoffChar=0x13</p>
    <p class="st01"><span class="st00">000030: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_HANDFLOW: Set handshake information
      ControlHandShake=1
      FlowReplace=64
      XonLimit=2048
      XoffLimit=512</p>
    <p class="st01"><span class="st00">000033: I/O Request (UP), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_GET_TIMEOUTS: Retrieve timeouts
      ReadIntervalTimeout=0
      ReadTotalTimeoutMultiplier=1
      ReadTotalTimeoutConstant=15000
      WriteTotalTimeoutMultiplier=1
      WriteTotalTimeoutConstant=2000</p>
    <p class="st01"><span class="st00">000034: I/O Request (DOWN), 01.12.2014 16:25:27.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_TIMEOUTS: Set timeouts
      ReadIntervalTimeout=0
      ReadTotalTimeoutMultiplier=1
      ReadTotalTimeoutConstant=15000
      WriteTotalTimeoutMultiplier=1
      WriteTotalTimeoutConstant=2000</p>
    <p class="st01"><span class="st00">000036: I/O Request (DOWN), 01.12.2014 16:25:29.824 +2.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_PURGE: Purge requests
      Purge mask=TXABORT: Read requests, RXABORT: Receive buffer, TXCLEAR: Write requests, RXCLEAR: Write buffer</p>
    <p class="st01"><span class="st00">000038: I/O Request (DOWN), 01.12.2014 16:25:29.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_PURGE: Purge requests
      Purge mask=RXABORT: Receive buffer, RXCLEAR: Write buffer</p>
    <p class="st01"><span class="st00">000040: I/O Request (DOWN), 01.12.2014 16:25:29.824 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_BREAK_ON: Switch on line control break</p>
    <p class="st04"><span class="st03">000043: Read Request (UP), 01.12.2014 16:25:29.868 +0.034 (1. Device: USB Serial Port (COM29))
    </span>Buffer size: 0x37 bytes
    Status: 0x00000000</p>
    <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" class="st05"><pre> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 CC</pre></td>
    <td valign="top" class="st05"><pre>................
    ................
    ................
    ......Ì</pre></td></tr></table>
    <p class="st01"><span class="st00">000152: I/O Request (DOWN), 01.12.2014 16:25:32.254 +0.0 (1. Device: USB Serial Port (COM29))
    </span>IOCTL_SERIAL_SET_BREAK_OFF: Switch off line control break</p>
    <p class="st05"></p>
    <p class="st07"><span class="st06">000154: Write Request (DOWN), 01.12.2014 16:25:32.254 +0.0 (1. Device: USB Serial Port (COM29))
    </span>Buffer size: 0x4 bytes</p>
    <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" class="st08"><pre> 00 03 27 27</pre></td>
    <td valign="top" class="st08"><pre>..''</pre></td></tr></table>
    <p class="st04"><span class="st03">000161: Read Request (UP), 01.12.2014 16:25:32.355 +0.0 (1. Device: USB Serial Port (COM29))
    </span>Buffer size: 0x6a1 bytes
    Status: 0x00000000</p>
    <table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" class="st05"><pre> 00 02 06 06 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 80 80 00
     80 80 80 00 80 80 80 80 00 00 00 00 00 00 80 00
     80 80 80 00 80 80 80 00 80 80 00 00 80 00 00 80
     00 00 80 00 00 00 80 80 00 80 80 80 00 80 80 80
     80 00 80 00 00 00 00 00 00 00 00 00 80 00 80 00
     00 80 00 00 80 00 00 00 80 80 00 80 80 80 00 80
     80 80 80 00 80 00 00 00 00 00 00 00 00 00 00 00
     80 00 00 00 00 80 80 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     00</pre></td>
    <td valign="top" class="st05"><pre>................
    ................
    ................
    ................
    ................
    ................
    ................
    .............€€.
    €€€.€€€€......€.
    €€€.€€€.€€..€..€
    ..€...€€.€€€.€€€
    €.€.........€.€.
    .€..€...€€.€€€.€
    €€€.€...........
    €....€€.........
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    ................
    .</pre></td></tr></table>
    </pre><!--EndFragment-->
    </body>
    </html>
    

  • Hi Jimmy,

    The modules are shipped with pre formatted serial flash (with updated service pack) so you don't need to format them.

    Regards,

    Ankur

  • Hi Ankur

    This sound very good, is it because I got early modules it's not formatted?

    Could you please answer my other questions, in the last post, too, since I still need to fix these modules to continue my evaluation.

    Kind regards

    Jimmy

  • Hi Jimmy,

    You need RX, TX lines of CC3100 module to work with uniflash. RTS and CTS lines can be tied together.

    CC3100 module has 1 MB (8 Mb) serial flash.

    Jimmy

    is it because I got early modules it's not formatted?

    The module you got should be formatted. It looks like the serial flash got corrupted somehow. 

    Regards,

    Ankur

  • Hi again

    I've verified all signals and compared them to the levels of an CC3100boost while programming.

    As far as I can see the levels are correct. CS & HIB are both high while programming and nReset only goes low when pressing the button.

    I've implemented the same setting on my board (I don't have a reset button so I configure the pins and then do a 50ms low pulse on the CC3100MOD nReset line.

    I get the first 0xCC byte and UNIFLASH says connection succeded but then the communications stops waiting for ack after sending get storage list

    Are you 100% sure there isn't a difference between the CC3100 chips and the CC3100 module I have(CC3100 ES 1.2.1 I think)?

    Kind regards

    Jimmy

    Ps. Except for the flash not working this module is SO much better than the CC3000. I've got very fast and stable communications with my PC. My next task is to make the module connect to our cloud server and see how that works.

  • Hi Jimmy,

    Can you please share the marking on the CC3100 Module (part no.)?

    Regards,
    Ankur
  • M/N: XC3100MODR11MAMOB
    T77H533.00
    2205001023-04S4
  • Any more info?
    Suggestions/reasons why the flash isn't/wasn't formated and/or why I still can't format it?
    Kind regards
    Jimmy
  • Hi Jimmy,

    It looks like you have pre production CC3100MOD samples.
    May we contact you at email address you provided in your E2E profile?

    Regards,
    Ankur
  • Hi Ankur
    You are very welcome to contact me on my email, thanks for looking into this.
    Kind regards
    Jimmy
  • Hi Jimmy,

    I am closing this thread, if the issue is not resolved with the new modules also please open a new thread with a link to this one for reference.

    Regards,
    Ankur
  • Hi Jimmy Pedersen,
    I am also trying to port the CC3100 to STM32.
    Have you tried the SPI-DMA part ??

    Regards,
    Abhishek.