MicroPython on ESP32 with SPIRAM support

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MicroPython on ESP32 with SPIRAM support

Post by kevinkk525 » Sun Feb 04, 2018 5:40 pm

Thanks for the advice, here's the output:

Code: Select all

beacon timeout
Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC      : 0x40008544  PS      : 0x00060f34  A0      : 0x80094804  A1      : 0x3ffda4f0  
A2      : 0x000001e0  A3      : 0xf92561dc  A4      : 0x00000001  A5      : 0x3ffd0404  
A6      : 0x00000001  A7      : 0x3ffcc418  A8      : 0x80008547  A9      : 0x3ffda4e0  
A10     : 0x000000a3  A11     : 0x00000000  A12     : 0x00000078  A13     : 0x401530f0  
0x401530f0: ieee80211_rfid_locp_recv at ??:?

A14     : 0x40153d70  A15     : 0x3ffcc3a4  SAR     : 0x0000001e  EXCCAUSE: 0x00000005  
0x40153d70: scan_inter_channel_timeout_process at ??:?

EXCVADDR: 0x00000000  LBEG    : 0x4009e018  LEND    : 0x4009e046  LCOUNT  : 0xffffffff  
0x4009e018: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:168

0x4009e046: memcpy at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib/libc/machine/xtensa/memcpy.S:201


Backtrace: 0x40008544:0x3ffda4f0 0x40094801:0x3ffda510 0x40092af6:0x3ffda530 0x4009479d:0x3ffda550 0x40090b7d:0x3ffda570 0x40155ffb:0x3ffda590 0x4015603d:0x3ffda5c0 0x401560db:0x3ffda5e0 0x40153d09:0x3ffda600 0x40153d2b:0x3ffda640 0x40155c6f:0x3ffda660 0x40155d5e:0x3ffda680 0x40160a16:0x3ffda6a0
0x40094801: chip_sleep_prot_en at ??:?

0x40092af6: chip_v7_set_chan at ??:?

0x4009479d: set_chanfreq at ??:?

0x40090b7d: phy_change_channel at ??:?

0x40155ffb: chm_set_current_channel at ??:?

0x4015603d: chm_set_current_channel at ??:?

0x401560db: chm_start_op at ??:?

0x40153d09: free_bss_info at ??:?

0x40153d2b: scan_enter_oper_channel_process at ??:?

0x40155c6f: wifi_station_stop at ??:?

0x40155d5e: ieee80211_timer_do_process at ??:?

0x40160a16: ppTask at ??:?


Core 1 register dump:
PC      : 0x400d675e  PS      : 0x00060234  A0      : 0x8008dd08  A1      : 0x3ffd57e0  
0x400d675e: esp_vApplicationIdleHook at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/./freertos_hooks.c:85

A2      : 0x00000008  A3      : 0x00000001  A4      : 0x00000001  A5      : 0x3ffd5310  
A6      : 0x00000000  A7      : 0x00000001  A8      : 0x3ffca20c  A9      : 0x3ffca1d0  
A10     : 0x00000000  A11     : 0x00000001  A12     : 0x8008cc1b  A13     : 0x3ffd56f0  
A14     : 0x00000003  A15     : 0x00060023  SAR     : 0x00000000  EXCCAUSE: 0x00000005  
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000  

Backtrace: 0x400d675e:0x3ffd57e0 0x4008dd05:0x3ffd5800
0x400d675e: esp_vApplicationIdleHook at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/./freertos_hooks.c:85

0x4008dd05: prvIdleTask at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/./tasks.c:4702


CPU halted.
Last edited by kevinkk525 on Sun Feb 04, 2018 9:22 pm, edited 2 times in total.

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: MicroPython on ESP32 with SPIRAM support

Post by loboris » Sun Feb 04, 2018 7:56 pm

@kevinkk525

I'll try to analyze this, it looks that the error occurs somewhere in the wifi library (no sources), so it won't be easy...

Have you changed anything from the default configuration?

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MicroPython on ESP32 with SPIRAM support

Post by kevinkk525 » Sun Feb 04, 2018 8:04 pm

I changed some things but nothing that could be a problem here (but who knows...). Just components, psram heap..

I think putting sdkconfig here would be easier? I removed the parts that I definitely did not change (but left some unchanged in there as well, just in case).

Code: Select all

#
# MicroPython
#
CONFIG_MICROPY_USE_OTA=

#
# System settings
#
CONFIG_MICRO_PY_LOG_LEVEL=2
CONFIG_MICRO_PY_LOG_LEVEL0=
CONFIG_MICRO_PY_LOG_LEVEL1=
CONFIG_MICRO_PY_LOG_LEVEL2=y
CONFIG_MICRO_PY_LOG_LEVEL3=
CONFIG_MICRO_PY_LOG_LEVEL4=
CONFIG_MICRO_PY_LOG_LEVEL5=
CONFIG_MICROPY_RX_BUFFER_SIZE=1080
CONFIG_MICROPY_USE_TASK_WDT=y
CONFIG_MICROPY_USE_BOTH_CORES=y
CONFIG_MICROPY_TASK_PRIORITY=5
CONFIG_MICROPY_STACK_SIZE=20
CONFIG_MICROPY_HEAP_SIZE=3400
CONFIG_MICROPY_THREAD_MAX_THREADS=4
CONFIG_MICROPY_THREAD_STACK_SIZE=4
CONFIG_MICROPY_USE_TELNET=y
CONFIG_MICROPY_USE_WEBSERVER=
CONFIG_MICROPY_USE_FTPSERVER=y

#
# FTP Server Configuration
#
CONFIG_FTPSERVER_LOG_LEVEL=1
CONFIG_FTPSERVER_LOG_LEVEL0=
CONFIG_FTPSERVER_LOG_LEVEL1=y
CONFIG_FTPSERVER_LOG_LEVEL2=
CONFIG_FTPSERVER_LOG_LEVEL3=
CONFIG_FTPSERVER_LOG_LEVEL4=
CONFIG_MICROPY_FTPSERVER_TIMEOUT=300
CONFIG_MICROPY_FTPSERVER_BUFFER_SIZE=1024

#
# Modules
#
CONFIG_MICROPY_PY_FRAMEBUF=y
CONFIG_MICROPY_PY_USE_BTREE=
CONFIG_MICROPY_USE_WEBSOCKETS=y
CONFIG_MICROPY_USE_DISPLAY=y
CONFIG_MICROPY_USE_EVE=
CONFIG_MICROPY_USE_GSM=
CONFIG_MICROPY_USE_ETHERNET=
CONFIG_MICROPY_USE_MDNS=y
CONFIG_MICROPY_USE_CURL=
CONFIG_MICROPY_USE_SSH=
CONFIG_MICROPY_USE_MQTT=y

#
# File systems
#
CONFIG_MICROPY_FATFS_MAX_OPEN_FILES=6
CONFIG_MICROPY_USE_SPIFFS=y
CONFIG_MICROPY_SDMMC_SHOW_INFO=y

#
# SD Card configuration
#
CONFIG_SDCARD_MODE=3
CONFIG_SDCARD_MODE1=
CONFIG_SDCARD_MODE2=
CONFIG_SDCARD_MODE3=y
#
# Component config
#

#
# Bluetooth
#
CONFIG_BT_ENABLED=y
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE_0=y
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE_1=
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0
CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y
CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4=
CONFIG_BLUEDROID_ENABLED=y
CONFIG_BLUEDROID_PINNED_TO_CORE_0=y
CONFIG_BLUEDROID_PINNED_TO_CORE_1=
CONFIG_BLUEDROID_PINNED_TO_CORE=0
CONFIG_BTC_TASK_STACK_SIZE=3072
CONFIG_BLUEDROID_MEM_DEBUG=
CONFIG_CLASSIC_BT_ENABLED=
CONFIG_GATTS_ENABLE=y
CONFIG_GATTC_ENABLE=y
CONFIG_BLE_SMP_ENABLE=y
CONFIG_BT_STACK_NO_LOG=
CONFIG_BT_ACL_CONNECTIONS=4
CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=
CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=
CONFIG_SMP_ENABLE=y
CONFIG_BT_RESERVE_DRAM=0x10000

#
# ESP32-specific
#
CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
CONFIG_ESP32_DEFAULT_CPU_FREQ_160=
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=240
CONFIG_MEMMAP_SMP=y
CONFIG_SPIRAM_SUPPORT=y

#
# SPI RAM config
#
CONFIG_SPIRAM_BOOT_INIT=y
CONFIG_SPIRAM_USE_MEMMAP=
CONFIG_SPIRAM_USE_CAPS_ALLOC=y
CONFIG_SPIRAM_USE_MALLOC=
CONFIG_SPIRAM_TYPE_ESPPSRAM32=y
CONFIG_SPIRAM_SIZE=4194304
CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM_MEMTEST=y
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_WIFI_LWIP_ALLOCATION_FROM_SPIRAM_FIRST=
CONFIG_MEMMAP_TRACEMEM=
CONFIG_MEMMAP_TRACEMEM_TWOBANKS=
CONFIG_ESP32_TRAX=
CONFIG_TRACEMEM_RESERVE_DRAM=0x0
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=
CONFIG_ESP32_ENABLE_COREDUMP_TO_UART=
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=y
CONFIG_ESP32_ENABLE_COREDUMP=
CONFIG_TWO_UNIVERSAL_MAC_ADDRESS=
CONFIG_FOUR_UNIVERSAL_MAC_ADDRESS=y
CONFIG_NUMBER_OF_UNIVERSAL_MAC_ADDRESS=4
CONFIG_SYSTEM_EVENT_QUEUE_SIZE=32
CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=2048
CONFIG_MAIN_TASK_STACK_SIZE=3584
CONFIG_IPC_TASK_STACK_SIZE=1024
CONFIG_TIMER_TASK_STACK_SIZE=3584
CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y
CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF=
CONFIG_NEWLIB_STDOUT_LINE_ENDING_CR=
CONFIG_NEWLIB_STDIN_LINE_ENDING_CRLF=
CONFIG_NEWLIB_STDIN_LINE_ENDING_LF=
CONFIG_NEWLIB_STDIN_LINE_ENDING_CR=y
CONFIG_NEWLIB_NANO_FORMAT=
CONFIG_CONSOLE_UART_DEFAULT=y
CONFIG_CONSOLE_UART_CUSTOM=
CONFIG_CONSOLE_UART_NONE=
CONFIG_CONSOLE_UART_NUM=0
CONFIG_CONSOLE_UART_BAUDRATE=115200
CONFIG_ULP_COPROC_ENABLED=
CONFIG_ULP_COPROC_RESERVE_MEM=0
CONFIG_ESP32_PANIC_PRINT_HALT=y
CONFIG_ESP32_PANIC_PRINT_REBOOT=
CONFIG_ESP32_PANIC_SILENT_REBOOT=
CONFIG_ESP32_PANIC_GDBSTUB=
CONFIG_ESP32_DEBUG_OCDAWARE=y
CONFIG_INT_WDT=y
CONFIG_INT_WDT_TIMEOUT_MS=300
CONFIG_INT_WDT_CHECK_CPU1=y
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_PANIC=
CONFIG_TASK_WDT_TIMEOUT_S=15
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=y
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1=y
CONFIG_BROWNOUT_DET=
CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y
CONFIG_ESP32_TIME_SYSCALL_USE_RTC=
CONFIG_ESP32_TIME_SYSCALL_USE_FRC1=
CONFIG_ESP32_TIME_SYSCALL_USE_NONE=
CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y
CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL=
CONFIG_ESP32_RTC_CLK_CAL_CYCLES=1024
CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000
CONFIG_ESP32_XTAL_FREQ_40=
CONFIG_ESP32_XTAL_FREQ_26=
CONFIG_ESP32_XTAL_FREQ_AUTO=y
CONFIG_ESP32_XTAL_FREQ=0
CONFIG_DISABLE_BASIC_ROM_CONSOLE=
CONFIG_ESP_TIMER_PROFILING=
CONFIG_COMPATIBLE_PRE_V2_1_BOOTLOADERS=

#
# Wi-Fi
#
CONFIG_SW_COEXIST_ENABLE=
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=8
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=16
CONFIG_ESP32_WIFI_STATIC_TX_BUFFER=
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=1
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=16
CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP32_WIFI_TX_BA_WIN=6
CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP32_WIFI_RX_BA_WIN=6
CONFIG_ESP32_WIFI_NVS_ENABLED=y

#
# PHY
#
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=y
CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
CONFIG_ESP32_PHY_MAX_TX_POWER=20


#
# Ethernet
#
CONFIG_DMA_RX_BUF_NUM=10
CONFIG_DMA_TX_BUF_NUM=10
CONFIG_EMAC_L2_TO_L3_RX_BUF_MODE=
CONFIG_EMAC_TASK_PRIORITY=20

#
# FreeRTOS
#
CONFIG_FREERTOS_UNICORE=
CONFIG_FREERTOS_CORETIMER_0=y
CONFIG_FREERTOS_CORETIMER_1=
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE=
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL=
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=y
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=
CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=4
CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE=
CONFIG_FREERTOS_ASSERT_DISABLE=
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
CONFIG_FREERTOS_ISR_STACKSIZE=4096
CONFIG_FREERTOS_LEGACY_HOOKS=
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
CONFIG_SUPPORT_STATIC_ALLOCATION=y
CONFIG_ENABLE_STATIC_TASK_CLEAN_UP_HOOK=y
CONFIG_TIMER_TASK_PRIORITY=1
CONFIG_TIMER_TASK_STACK_DEPTH=2048
CONFIG_TIMER_QUEUE_LENGTH=10
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0
CONFIG_FREERTOS_USE_TRACE_FACILITY=
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=
CONFIG_FREERTOS_DEBUG_INTERNALS=

#
# Heap memory debugging
#
CONFIG_HEAP_POISONING_DISABLED=y
CONFIG_HEAP_POISONING_LIGHT=
CONFIG_HEAP_POISONING_COMPREHENSIVE=
CONFIG_HEAP_TRACING=

#
# libsodium
#

#
# Log output
#
CONFIG_LOG_DEFAULT_LEVEL_NONE=
CONFIG_LOG_DEFAULT_LEVEL_ERROR=
CONFIG_LOG_DEFAULT_LEVEL_WARN=y
CONFIG_LOG_DEFAULT_LEVEL_INFO=
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=
CONFIG_LOG_DEFAULT_LEVEL_VERBOSE=
CONFIG_LOG_DEFAULT_LEVEL=2
CONFIG_LOG_COLORS=y

#
# LWIP
#
CONFIG_L2_TO_L3_COPY=
CONFIG_LWIP_MAX_SOCKETS=8
CONFIG_LWIP_SO_REUSE=y
CONFIG_LWIP_SO_REUSE_RXTOALL=y
CONFIG_LWIP_SO_RCVBUF=
CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1
CONFIG_LWIP_IP_FRAG=
CONFIG_LWIP_IP_REASSEMBLY=
CONFIG_LWIP_STATS=
CONFIG_LWIP_ETHARP_TRUST_IP_MAC=y
CONFIG_TCPIP_RECVMBOX_SIZE=32
CONFIG_LWIP_DHCP_DOES_ARP_CHECK=y

#
# DHCP server
#
CONFIG_LWIP_DHCPS_LEASE_UNIT=60
CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
CONFIG_LWIP_AUTOIP=
CONFIG_LWIP_NETIF_LOOPBACK=y
CONFIG_LWIP_LOOPBACK_MAX_PBUFS=8

#
# TCP
#
CONFIG_LWIP_MAX_ACTIVE_TCP=16
CONFIG_LWIP_MAX_LISTENING_TCP=16
CONFIG_TCP_MAXRTX=12
CONFIG_TCP_SYNMAXRTX=6
CONFIG_TCP_MSS=1436
CONFIG_TCP_MSL=60000
CONFIG_TCP_SND_BUF_DEFAULT=5744
CONFIG_TCP_WND_DEFAULT=5744
CONFIG_TCP_RECVMBOX_SIZE=6
CONFIG_TCP_QUEUE_OOSEQ=y
CONFIG_TCP_OVERSIZE_MSS=y
CONFIG_TCP_OVERSIZE_QUARTER_MSS=
CONFIG_TCP_OVERSIZE_DISABLE=

#
# UDP
#
CONFIG_LWIP_MAX_UDP_PCBS=16
CONFIG_UDP_RECVMBOX_SIZE=6
CONFIG_TCPIP_TASK_STACK_SIZE=4096
CONFIG_PPP_SUPPORT=y
CONFIG_PPP_PAP_SUPPORT=y
CONFIG_PPP_CHAP_SUPPORT=
CONFIG_PPP_MSCHAP_SUPPORT=
CONFIG_PPP_MPPE_SUPPORT=
CONFIG_PPP_DEBUG_ON=

#
# ICMP
#
CONFIG_LWIP_MULTICAST_PING=
CONFIG_LWIP_BROADCAST_PING=

#
# LWIP RAW API
#
CONFIG_LWIP_MAX_RAW_PCBS=16

#
# mbedTLS
#
CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=16384
CONFIG_MBEDTLS_DEBUG=
CONFIG_MBEDTLS_HARDWARE_AES=y
CONFIG_MBEDTLS_HARDWARE_MPI=y
CONFIG_MBEDTLS_MPI_USE_INTERRUPT=y
CONFIG_MBEDTLS_HARDWARE_SHA=y
CONFIG_MBEDTLS_HAVE_TIME=y
CONFIG_MBEDTLS_HAVE_TIME_DATE=
CONFIG_MBEDTLS_TLS_SERVER_AND_CLIENT=y
CONFIG_MBEDTLS_TLS_SERVER_ONLY=
CONFIG_MBEDTLS_TLS_CLIENT_ONLY=
CONFIG_MBEDTLS_TLS_DISABLED=
CONFIG_MBEDTLS_TLS_SERVER=y
CONFIG_MBEDTLS_TLS_CLIENT=y
CONFIG_MBEDTLS_TLS_ENABLED=y

#
# PThreads
#
CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT=5
CONFIG_ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072

#
# SPI Flash driver
#
CONFIG_SPI_FLASH_VERIFY_WRITE=
CONFIG_SPI_FLASH_ENABLE_COUNTERS=
CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=y
CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS=y
CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS=
CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED=

#
# SPIFFS Configuration
#
CONFIG_SPIFFS_MAX_PARTITIONS=1

#
# SPIFFS Cache Configuration
#
CONFIG_SPIFFS_CACHE=y
CONFIG_SPIFFS_CACHE_WR=y
CONFIG_SPIFFS_CACHE_STATS=
CONFIG_SPIFFS_PAGE_CHECK=y
CONFIG_SPIFFS_GC_MAX_RUNS=10
CONFIG_SPIFFS_GC_STATS=
CONFIG_SPIFFS_OBJ_NAME_LEN=64
CONFIG_SPIFFS_USE_MAGIC=y
CONFIG_SPIFFS_USE_MAGIC_LENGTH=y
CONFIG_SPIFFS_META_LENGTH=5
CONFIG_SPIFFS_USE_MTIME=y
CONFIG_SPIFFS_USE_DIR=y

#
# tcpip adapter
#
CONFIG_IP_LOST_TIMER_INTERVAL=120

Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: MicroPython on ESP32 with SPIRAM support

Post by loboris » Sun Feb 04, 2018 8:14 pm

kevinkk525 wrote:
Sun Feb 04, 2018 8:04 pm
I changed some things but nothing that could be a problem here (but who knows...). Just components, psram heap..
Why have you enabled the Bluetooth ? It is not supported (yet) and could potentially cause the problem.

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MicroPython on ESP32 with SPIRAM support

Post by kevinkk525 » Sun Feb 04, 2018 8:36 pm

oh ok. i'll turn it off and try again.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: MicroPython on ESP32 with SPIRAM support

Post by kevinkk525 » Sun Feb 04, 2018 10:18 pm

It occured even without bluetooth included but this time the trace has more information.

Code: Select all

/home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/./queue.c:718 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x4008c3a7 on core 1
0x4008c3a7: xQueueGenericSend at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/./queue.c:2037


Backtrace: 0x40090648:0x3ffcf9c0 0x4009080f:0x3ffcf9e0 0x4008c3a7:0x3ffcfa00 0x401309b9:0x3ffcfa40 0x40131ba2:0x3ffcfa60 0x401304c5:0x3ffcfaa0 0x40130664:0x3ffcfb70 0x40137275:0x3ffcfba0 0x400e070b:0x3ffcfbc0 0x400e13b5:0x3ffcfbe0 0x400d8d26:0x3ffcfc10
0x40090648: invoke_abort at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/./panic.c:648

0x4009080f: abort at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/./panic.c:648

0x4008c3a7: xQueueGenericSend at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/./queue.c:2037

0x401309b9: spiffs_api_unlock at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/spiffs/./esp_spiffs.c:434

0x40131ba2: SPIFFS_readdir at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/spiffs/spiffs/src/spiffs_hydrogen.c:1125

0x401304c5: vfs_spiffs_readdir_r at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/spiffs/./esp_spiffs.c:434

0x40130664: vfs_spiffs_readdir at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/spiffs/./esp_spiffs.c:434

0x40137275: readdir at /home/kevin/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/vfs/./vfs.c:464

0x400e070b: ftp_list_dir at /home/kevin/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD/components/micropython/esp32/libs/ftp.c:1265

0x400e13b5: ftp_run at /home/kevin/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD/components/micropython/esp32/libs/ftp.c:1265

0x400d8d26: ftp_task at /home/kevin/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD/components/micropython/esp32/mpthreadport.c:512


CPU halted.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

cartere
Posts: 25
Joined: Sat Feb 04, 2017 9:26 pm

EVE display module

Post by cartere » Tue Feb 06, 2018 2:44 am

loboris, status of the driver?
Any chance of a 'hello world' quick example, recently backed Gameduino 3 kickstarter would love to put Micropython on it.

ttmetro
Posts: 104
Joined: Mon Jul 31, 2017 12:44 am

Re: MicroPython on ESP32 with SPIRAM support

Post by ttmetro » Tue Feb 06, 2018 3:17 am

@OutoftheBOTS_ https://github.com/bboser/iot-plot shows one approach to plot from an ESP32. Not tied to any particular (Micro)Python implementation.
Bernhard Boser

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: MicroPython on ESP32 with SPIRAM support

Post by OutoftheBOTS_ » Tue Feb 06, 2018 10:41 am

@ttmetro thanks for your response :)

I have been chipping away at it and have been using a webserver wrote by Jczic that is embedded in frozen byte code in laboris firmware see wiki https://github.com/loboris/MicroPython_ ... icroWebSrv

I have also found an easy to use open source Java Script plotter that I feed the data to live via websockets see http://smoothiecharts.org/

I have it all working but my html is very basic and my JavaScript is non existent so making it all pretty with fully featured of what I would like will take me awhile to nut out :)

loboris
Posts: 344
Joined: Fri Oct 02, 2015 6:19 pm

Re: EVE display module

Post by loboris » Tue Feb 06, 2018 11:01 am

cartere wrote:
Tue Feb 06, 2018 2:44 am
loboris, status of the driver?
Any chance of a 'hello world' quick example, recently backed Gameduino 3 kickstarter would love to put Micropython on it.
Status of which driver exactly ?

Gameduino 3 is based on esp8266, isn't it ?

Post Reply