Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

Mongoose-os for CC3220 does seem a bit buggy

I have now tried to flash a number of firmwares to three different CC3220-based boards. The last firmware example I used was the demo-js.

  • Tried on the TI Launchpad with the CC3220MODASF module. This was a Rev A board with no SPI flash mounted.
  • Tried on the TI CC3220SF-LAUNCHXL Rev B. This has 4 MB SPI flash mounted.
  • Tried on our own custom board without any SPI flash.

Both the TI boards seem to be flashed ok, but after a reset (with the SOP jumper in the SOP0 position) nothing much seem to work.
I can use the mos console command and see the tick tick messages and the free RAM reports, but as soon as I issue any other command like mos ls or mos call Sys.GetInfo, etc. the LED stops blinking and the boards hang.

Our own custom board is stone dead after a flash and reboot :(

Comments

  • ulsoulso Stockholm

    Tried again today with all my three CC3220SF-based boards.

    This time I used the command mos flash cc3220 to flash the boards, just to make sure everything comes from Cesanta.

    After successfully flashing the boards and issuing the mos console command, they all say the following:

    cc32xx_start_nwp     NWP v3.6.0.3 started, host driver v2.0.1.26
    [Feb 23 11:44:30.033] cc32xx_init          seed: 27155820
    [Feb 23 11:44:30.037] mgos_vfs_dev_open    flash ({offset: 786432, size: 262144, image: "spiffs.img"}) -> 200062d8
    [Feb 23 11:44:30.048] cc3220_vfs_dev_flash Found device image spiffs.img, copying to 0xc0000
    [Feb 23 11:44:42.664] cc3220_vfs_dev_flash Copied 262144 bytes (75776 dup)
    [Feb 23 11:44:42.672] mgos_vfs_mount       Mount SPIFFS @ / (dev 200062d8, opts {bs: 4096, ps: 256, es: 2048}) -> 20005a00
    [Feb 23 11:44:42.722] mgos_vfs_mount       /: size 233681, used: 100149, free: 133532
    [Feb 23 11:44:42.728] mgos_vfs_mount       Mount SLFS @ /slfs (dev 0, opts ) -> 20006728
    [Feb 23 11:44:42.741] mgos_vfs_mount       /slfs: size 4194304, used: 1802240, free: 2392064
    [Feb 23 11:44:42.822] mgos_sys_config_init MAC: 50F14AD88DBA
    [Feb 23 11:44:42.825] mgos_sys_config_init WDT: 30 seconds
    [Feb 23 11:44:42.829] mgos_i2c_create      I2C initialized (SDA: 2, SCL: 1, freq 100000)
    [Feb 23 11:44:42.835] mgos_ota_shadow_init OTA over shadow initialised
    [Feb 23 11:44:42.840] mgos_wifi_setup      WiFi mode: AP
    [Feb 23 11:44:45.080] mgos_wifi_dev_ap_set AP Mongoose_D88DBA configured
    [Feb 23 11:44:45.088] mgos_http_server_ini HTTP server started on [80]
    [Feb 23 11:44:45.093] mgos_ota_http_client Init done, ota_lib=(null), ota handler 1
    [Feb 23 11:44:45.099] mg_rpc_channel_uart  20006f90 UART0
    [Feb 23 11:44:45.104] mgos_init            Init done, RAM: 251760 total, 230580 free, 230256 min free
    [Feb 23 11:44:46.468] LED GPIO: 64 button GPIO: 15 
    [Feb 23 11:44:46.508] mgos_aws_shadow_init AWS Device Shadow requires MQTT
    [Feb 23 11:44:46.520] mongoose_poll        New heap free LWM: 210056
    [Feb 23 11:44:47.537] Tick uptime: 4.781000 {"free_ram":214368,"total_ram":251760} 
    [Feb 23 11:44:48.513] Tock uptime: 5.772000 {"free_ram":214212,"total_ram":251760} 
    [Feb 23 11:44:49.515] Tick uptime: 6.777000 {"free_ram":214212,"total_ram":251760} 
    [Feb 23 11:44:50.514] Tock uptime: 7.776000 {"free_ram":214212,"total_ram":251760} 
    ...
    

    Then, whatever mos command I give, all the boards hang. I usually start with setting the WiFi STA config with the mos wifi ... command, but it also hangs.

  • ulsoulso Stockholm

    The problems I see with issuing mos commands via serial port may be a problem with the mos command itself, and not with mongoose-os on the CC3220.

    Now I see I can execute commands using the WiFi by adding the --port ws://ip-addr/rpc to the mos command line.

  • jonahseejonahsee Malaysia

    @ulso I'm facing the same problem here where my CC3220-LAUNCHPAD hangs after I input a new config via the mos tool. The system just keeps trying to initialize in an eternal loop. Have you found a solution to this issue? It hangs when I connect to mDash or GCP as well.

    [Jan 10 15:20:42.398] mgos_vfs_umount_all  Unmounting filesystems
    [Jan 10 15:20:42.398] mgos_system_restart  Restarting
    [Jan 10 15:20:42.398] 
    [Jan 10 15:20:42.398] mgos_init2           ti2 1.0 (20190110-063128)
    [Jan 10 15:20:42.398] mgos_init2           Mongoose OS 201901100631 (20190110-063120)
    [Jan 10 15:20:42.398] mgos_init2           CPU: 80 MHz, heap: 240660 total, 236444 free
    [Jan 10 15:20:42.398] cc32xx_start_nwp     NWP v3.7.0.1 started, host driver v2.0.1.27
    [Jan 10 15:20:42.398] mg_ssl_if_init       mbed TLS 2.13.1-cesanta3
    [Jan 10 15:20:42.398] mgos_vfs_mount_dev   /: SPIFFS @ , opts {bs: 4096, ps: 256, es: 2048}
    [Jan 10 15:20:42.398] mgos_vfs_print_fs_in /: size 233681, used: 113954, free: 119727
    [Jan 10 15:20:42.398] mgos_vfs_mount_dev   /slfs: SLFS @   , opts 
    [Jan 10 15:20:42.398] mgos_vfs_print_fs_in /slfs: size 4194304, used: 2195456, free: 1998848
    [Jan 10 15:20:42.398] mgos_sys_config_init MAC: F0C77F16C226
    [Jan 10 15:20:42.398] mgos_sys_config_init WDT: 30 seconds
    [Jan 10 15:20:42.398] mgos_i2c_create      I2C initialized (SDA: 2, SCL: 1, freq 100000)
    [Jan 10 15:21:07.450] 
    [Jan 10 15:21:07.471] mgos_init2           ti2 1.0 (20190110-063128)
    [Jan 10 15:21:07.471] mgos_init2           Mongoose OS 201901100631 (20190110-063120)
    [Jan 10 15:21:07.471] mgos_init2           CPU: 80 MHz, heap: 240660 total, 236444 free
    [Jan 10 15:21:07.859] cc32xx_start_nwp     NWP v3.7.0.1 started, host driver v2.0.1.27
    [Jan 10 15:21:07.859] mg_ssl_if_init       mbed TLS 2.13.1-cesanta3
    [Jan 10 15:21:07.870] mgos_vfs_mount_dev   /: SPIFFS @ , opts {bs: 4096, ps: 256, es: 2048}
    [Jan 10 15:21:07.972] mgos_vfs_print_fs_in /: size 233681, used: 113954, free: 119727
    [Jan 10 15:21:07.972] mgos_vfs_mount_dev   /slfs: SLFS @   , opts 
    [Jan 10 15:21:07.987] mgos_vfs_print_fs_in /slfs: size 4194304, used: 2195456, free: 1998848
    [Jan 10 15:21:08.085] mgos_sys_config_init MAC: F0C77F16C226
    [Jan 10 15:21:08.085] mgos_sys_config_init WDT: 30 seconds
    [Jan 10 15:21:08.085] mgos_i2c_create      I2C initialized (SDA: 2, SCL: 1, freq 100000)
Sign In or Register to comment.