Hi, I have a custom board with CC3100 and a supported sFlash and I've ported the simplelink driver to my environment.
One CC3100 will not initialize but will boot into the bootloader and ACK the format and disconnect commands. Another CC3100 will initialize, format, update, and re-init and works great all using the same code.
Can you help me identify possible reasons given this debug output?
See attached NWP debug log files that I collected from two failed runs.
�71q��� $Z`8 \ ; v"w"��x"� y" " " "c"c �! �! �!�!�W�A� � '(#B 72W71q��� $Z`8 \ ; v"w"��x"� y" " " "c"c �! �! �!�!�W�A� � ( '(#B 72W � -�-1{�@ � � � � � -�-1{�@�� �) �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � !'�/sys/servicepack.ucf�`� �� �!'�/sys/servicepack.ucf�`� �0�{�� � � � � � ǰ � -�-1{�@� �'�/sys/date_time.cfg >(� �'�/tmp/table.arpl�%� �'�/tmp/phy.cal]�!'�/sys/pmcfg.iniI�� \ a"<b � !'�/sys/servicepack.ucf�`� �[*� !'�/sys/ipcfg.ini��� !'�/sys/mode.cfg��I� ) ���� Q $ � � �7`� �t7`�l 97`? �7`� T7`�� 7`dI �7`,i 7w@� 0w `� � \ � � f � \ g� � \!'�/sys/devname.cfgc� ] ]�����.� c � _�!'�/sys/servicepack.ucf�`� � �!'�/tmp/phy.cal]� ���'�/sys/wlangen.ini�jN �P P P P P P P @P P S � `�� `�. 1!'�/sys/macadd.bin�q� 5V82$� a� � � �� � � ���� � ���.� } .9 } } � } �'�/sys/rxfltr.ini���N �'�/sys/rxfltr.ini���N �A�'�/sys/rxfltr.ini���N �A�A"�A�A�A�A�A�B�B!'�/sys/httpsrv.cfgF � � �P!'�/sys/macadd.bin�q� 5V82$�!'�/sys/mdns.cfg[\� B�B��B��A�A�A�B��A�A�� !'�/sys/macadd.bin�q� 5V82$��P:. !'�/sys/p2p.cfgo� .7. .C P�.4".`� � h!@'�/tmp/phy.cal] �� -]� -�]�- ]� �� �� .mQ R ==�( � mmmmm� !'�/sys/date_time.cfg >(� 3.'8.'8m... m.:.m.'. .?4....*, de,�*, ���*, ,-�. s*, �� �� s 6) . q �/sys/stacfg.iniTU� .0K L J#��/sys/pref.net�� 17RS{.2� 1n�� �~Z`8 \ ; v" w" x" y" " " "3 c" �! �! �!�!�W�A� � '(#B 72�)W$Vxe\B " � -�-1{�@ � � � � � -�-1{�@�� �( �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � �Ӣ �-�-1{�@� -�-1{�@� � )ָ �!'�/sys/servicepack.ucf�`� )ֵ)�,�� � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � tִ� �-�-1{�@� -�-1{�@� � )� �!'�/sys/servicepack.ucf�`� )�)ֽ� � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � tִ� �-�-1{�@� -�-1{�@� � )�j �!'�/sys/servicepack.ucf�`� )�g )�� �� � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � tִ� �-�-1{�@� -�-1{�@� � )ֺ �!'�/sys/servicepack.ucf�`� )ַ)�-�� � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � tִ� �-�-1{�@� -�-1{�@� � )ֿ �!'�/sys/servicepack.ucf�`� )ּ)�3�� � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � tֳ� �-�-1{�@� -�-1{�@� � )�� �!'�/sys/servicepack.ucf�`� )ֽ )�4�� � � � � � ǰ � -�-1{�@� �'�/sys/date_time.cfg >(� �'�/tmp/table.arpl�%� �'�/tmp/phy.cal]� !'�/sys/pmcfg.iniI�� \ a"<b � !'�/sys/servicepack.ucf�`� �*� !'�/� � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � tֳ� �-�-1{�@� -�-1{�@� � )֯ �!'�/sys/servicepack.ucf�`� )֬)�#�� � � � � � ǰ � -�-1{�@� �'�/sys/date_time.cfg >(� �'�/tmp/table.arpl�%� �'�/tmp/phy.cal]� !'�/sys/pmcfg.iniI�� \ a"<b � !'�/sys/servicepack.ucf�`� �*� !'�/s � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � sֳ� �-�-1{�@� -�-1{�@� � )�] �!'�/sys/servicepack.ucf�`� )�Z )�� �� � � � � � ǰ � -�-1{�@� �'�/sys/date_time.cfg >(� �'�/tmp/table.arpl�%� �'�/tmp/phy.cal]� !'�/sys/pmcfg.iniI�� \ a"<b � !'�/sys/servicepack.ucf�`� �*� !'�/s � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � sֳ� �-�-1{�@� -�-1{�@� � )�y �!'�/sys/servicepack.ucf�`� )�v)��� � � � � � ǰ � -�-1{�@� �'�/sys/date_time.cfg >(� �'�/tmp/table.arpl�%� �'�/tmp/phy.cal]� !'�/sys/pmcfg.iniI�� \ a"<b � !'�/sys/servicepack.ucf�`� �*� !'�/s � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � sֳ� �-�-1{�@� -�-1{�@� � )֥ �!'�/sys/servicepack.ucf�`� )֢)ֽ� � � � � � ǰ � -�-1{�@� �'�/sys/date_time.cfg >(� �'�/tmp/table.arpl�%� �'�/tmp/phy.cal]� !'�/sys/pmcfg.iniI�� \ a"<b � !'�/sys/servicepack.ucf�`� �*� !'�/s � -�-1{�@ � � � � � -�-1{�@�� �� �*�� � � �*� -�G7�v*�3308� �*� X��E# �� � � sֳ� �-�-1{�@
Here's the log of SPI traffic from a failed init:
CC3100 0 Starting 1692403191295: CC3100 SPI write complete (0): OK 0x810ef50 - 4: 0000: 65 87 78 56 1692403191303: CC3100 SPI read complete (0): OK 0x2000af68 - 8: 0000: 00 00 00 00 50 9e 00 20 1692403191312: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 00 00 00 00 1692403191320: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 00 00 00 00 1692403191327: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 00 00 00 00 1692403191335: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 00 00 00 00 1692403191343: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 00 00 00 00 1692403191351: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 00 00 00 00 CC3100 0 timeout sync pattern event. ID: 0, Sender: 0 Aug 18 23:59:51.364 CC3100 0 init/reinit 1 failed -100 (1440): Wifi aborted
And here's what it looks like on a a working device:
CC3100 0 Starting 1692402847679: CC3100 SPI write complete (0): OK 0x810ef50 - 4: 0000: 65 87 78 56 1692402847687: CC3100 SPI read complete (0): OK 0x2000af68 - 8: 0000: 00 00 00 00 50 9e 00 20 1692402847696: CC3100 SPI read complete (0): OK 0x2000af6c - 4: 0000: 08 00 08 00 1692402847704: CC3100 SPI read complete (0): OK 0x24004e9c - 4: 0000: 11 11 11 11 CC3100 0 STA mode CC3100 0 Init complete 1692402847716: CC3100 SPI write complete (0): OK 0x810e790 - 4: 0000: 21 43 34 12 1692402847724: CC3100 SPI write complete (0): OK 0x24004da0 - 4: 0000: 66 84 08 00 1692402847731: CC3100 SPI write complete (0): OK 0x2dd0 - 8: 0000: 00 00 01 00 0c 00 00 00 1692402847740: CC3100 SPI write complete (0): OK 0x810ef50 - 4: 0000: 65 87 78 56 1692402847752: CC3100 SPI read complete (0): OK 0x2d50 - 8: 0000: 08 00 00 00 8d 24 0f 08 1692402847761: CC3100 SPI read complete (0): OK 0x2d54 - 4: 0000: 66 04 38 00 1692402847768: CC3100 SPI read complete (0): OK 0x2dd0 - 8: 0000: 00 00 01 00 0c 00 00 00 1692402847777: CC3100 SPI read complete (0): OK 0x2e28 - 44: 0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0020: 00 00 00 00 00 00 00 00 00 00 00 00 Aug 18 23:54:07.797 CC3100 0 ID(67108864) FW(31.1.6.0.2) PHY(1.0.3.37) Aug 18 23:54:07.808 CC3100 0 NWP(2.14.0.0) ROM(13107) HostDrv(1.0.1.11)