Commit ec1f0e75 authored by Daniel Campora's avatar Daniel Campora
Browse files

cc3200: Use MCU reset instead of SOC reset.

I have seen the CC3200 hanging a couple of times, and according to TI
itself the SOC reset is not reliable, which explains my observations.
parent 967f3230
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "inc/hw_ints.h" #include "inc/hw_ints.h"
#include "inc/hw_memmap.h" #include "inc/hw_memmap.h"
#include "inc/hw_uart.h" #include "inc/hw_uart.h"
#include "rom_map.h"
#include "prcm.h" #include "prcm.h"
#include "pyexec.h" #include "pyexec.h"
#include "pybuart.h" #include "pybuart.h"
...@@ -87,8 +88,8 @@ extern OsiTaskHandle xSimpleLinkSpawnTaskHndl; ...@@ -87,8 +88,8 @@ extern OsiTaskHandle xSimpleLinkSpawnTaskHndl;
STATIC mp_obj_t pyb_hard_reset(void) { STATIC mp_obj_t pyb_hard_reset(void) {
// disable wlan // disable wlan
wlan_stop(SL_STOP_TIMEOUT_LONG); wlan_stop(SL_STOP_TIMEOUT_LONG);
// perform a SoC reset // reset the cpu and it's peripherals
PRCMSOCReset(); MAP_PRCMMCUReset(true);
return mp_const_none; return mp_const_none;
} }
STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_hard_reset_obj, pyb_hard_reset); STATIC MP_DEFINE_CONST_FUN_OBJ_0(pyb_hard_reset_obj, pyb_hard_reset);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment