Github Boards Devices Community Docs Blog

M5Stack not working in low power mode 2

Having had delivery of a new M5Stack (never used one before) I thought I would try OMG 0.9.5 as BLE gateway on that instead of my ESP32 Dev board.

It seems to work fine in low power mode 0 but (not sure about low power mode 1 as I never got any readings from my LYWSD03MMC) and in low power mode 2 it just doesn’t behave at all - after building the 0.9.5 master with LOG_LEVEL_LCD set to LOG_LEVEL_NOTICE and LOG_TO_LCD false - this is what I see on the USB serial

/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c:1442 (xQueueGenericReceive)- assert failed!
abort() was called at PC 0x4008e6f9 on core 1

Backtrace: 0x4009261c:0x3ffcca50 0x4009284d:0x3ffcca70 0x4008e6f9:0x3ffcca90 0x400f4643:0x3ffccad0 0x400dafb0:0x3ffccaf0 0x400d27b8:0x3ffccb10 0x400d7b23:0x3ffccb30 0x400d82b4:0x3ffccb50 0x400d85d0:0x3ffccb90 0x400d8748:0x3ffccbc0 0x400d8794:0x3ffccbe0 0x400d880b:0x3ffcce30 0x401853ff:0x3ffcce50 0x400d9246:0x3ffcce70 0x400d8a2a:0x3ffcceb0 0x400f513d:0x3ffcced0 0x4008ea0d:0x3ffccef0

Rebooting…
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee

I had to erase and refalsh to recover.

I have also noticed that my TP Link router sees both the ESP32 Dev board and the M5Stack as ‘espressif’ in the list of connected devices where my RPi and Windows and most other devices show a hostname - although Windows and my RPI resolve the .local hostnames of them both correctly.

Hello,

I got it working with the development branch and the following environment for info:

[env:esp32-m5stack-ble]
platform = ${com.esp32_platform}
board = m5stack-core-esp32
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.m5stack}
  ${libraries.ble}
build_flags =
  ${com-esp.build_flags}
  '-DZgatewayBT="BT"'
  '-DZsensorGPIOInput="GPIOInput"'
  '-DZboardM5STACK="M5Stack"'
  '-DLOW_POWER_LED=15'
  '-DTRIGGER_GPIO=37'
  '-DSLEEP_BUTTON=38'
  '-DINPUT_GPIO=39'
  '-DGateway_Name="OpenMQTTGateway_ESP32_M5STACK_BLE"'
  '-DMQTT_USER="m5stack-esp32"'
  '-DMQTT_PASS="8888"'
  '-DMQTT_SERVER="192.168.1.17"'
  '-DDEFAULT_LOW_POWER_MODE=2'
  '-DTimeBtwRead=55000'
  '-DScan_duration=10000'
  '-DAttemptBLECOnnect=false'
  '-DActiveBLEScan=true'

#define LOG_TO_LCD false