Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to run coin cell demo switch on ESP32 (AEGHB-554) #109

Closed
albrownwood opened this issue Feb 12, 2024 · 4 comments
Closed

unable to run coin cell demo switch on ESP32 (AEGHB-554) #109

albrownwood opened this issue Feb 12, 2024 · 4 comments

Comments

@albrownwood
Copy link

albrownwood commented Feb 12, 2024

Using ESP-IDF v5.1.2, ESP32, compilation and flashing without issue, I get the following text on boot and nothing happens:

Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory /Users/aaa/dev/esp-now/examples/coin_cell_demo/switch
Executing "/Users/aaa/.espressif/python_env/idf5.1_py3.11_env/bin/python /Users/aaa/dev/esp-idf/tools/idf_monitor.py -p /dev/cu.usbserial-0001 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /Users/aaa/dev/esp-now/examples/coin_cell_demo/switch/build/switch.elf -m '/Users/aaa/.espressif/python_env/idf5.1_py3.11_env/bin/python' '/Users/aaa/dev/esp-idf/tools/idf.py'"...
--- esp-idf-monitor 1.3.4 on /dev/cu.usbserial-0001 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1264
load:0x40078000,len:15080
load:0x40080400,len:4
0x40080400: _init at ??:?

ho 8 tail 4 room 4
load:0x40080404,len:3164
entry 0x400805fc

The get-started and bulb examples execute correctly on the same prototype board (ESP devkit).

@github-actions github-actions bot changed the title unable to run coin cell demo switch on ESP32 unable to run coin cell demo switch on ESP32 (AEGHB-554) Feb 12, 2024
@lhespress
Copy link
Collaborator

@albrownwood Please see the switch's instructions. You need set Use coin cell button of example to N to simulate.

@albrownwood
Copy link
Author

@lhespress yes I did compile with Use coin cell button = N and the error mentioned was present.

@lhespress
Copy link
Collaborator

@albrownwood
The log level of switch use CONFIG_LOG_DEFAULT_LEVEL_NONE=y as default, so there isn't any LOG output. you can check the function by the LOG of bulb:

I (5161) app_bulb: bind, uuid: 08:f9:e0:1f:9d:34, initiator_type: 513
I (17901) app_bulb: app_bulb_ctrl_data_cb, initiator_attribute: 513, responder_attribute: 1, value: 1
I (19171) app_bulb: app_bulb_ctrl_data_cb, initiator_attribute: 513, responder_attribute: 1, value: 0
I (28411) app_bulb: app_bulb_ctrl_data_cb, initiator_attribute: 513, responder_attribute: 1, value: 1
I (29931) app_bulb: app_bulb_ctrl_data_cb, initiator_attribute: 513, responder_attribute: 1, value: 0
I (31281) app_bulb: app_bulb_ctrl_data_cb, initiator_attribute: 513, responder_attribute: 1, value: 1

Of course, please change it to CONFIG_LOG_DEFAULT_LEVEL_INFO=y if you want to show the LOG of switch, then you will see the LOG of switch as follows:

I (3981) app_switch: switch bind press
I (4000) espnow_ctrl: src_addr: 24:0a:c4:03:f5:14, espnow_ctrl_initiator_ack, channel: 1
I (6251) app_switch: switch send press
I (6289) espnow_ctrl: src_addr: 24:0a:c4:03:f5:14, espnow_ctrl_initiator_ack, channel: 1
I (9891) app_switch: switch send press
I (9911) espnow_ctrl: src_addr: 24:0a:c4:03:f5:14, espnow_ctrl_initiator_ack, channel: 1
I (12196) app_switch: switch send press
I (12267) espnow_ctrl: src_addr: 24:0a:c4:03:f5:14, espnow_ctrl_initiator_ack, channel: 1

@lhespress
Copy link
Collaborator

@albrownwood Closing this issue since there has been no update on this. Please feel free to reopen if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants