#define key2 GET_PIN(H, 3)
/* 按 键2引 脚 为 输 入 模 式 */
rt_pin_mode(key2, PIN_MODE_INPUT_PULLUP);
/* 绑 定 中 断, 下 降 沿 模 式, 回 调 函 数 名 为beep_on */
rt_pin_attach_irq(key2, PIN_IRQ_MODE_FALLING, key_2, RT_NULL);
/* 使 能 中 断 */
rt_pin_irq_enable(key2, PIN_IRQ_ENABLE);
h3脚绑定中断,板载WiFi初始化就失败,,,
___
___ ______ _____ ______ _ ______ _____ _____ _____
/ _ \ | ___ \|_ _| | ___ \(_) | ___ \/ _ \/ _ \|_ _|
/ /_\ \| |_/ / | | ______ | |_/ / _ | |_/ /| | | || | | | | |
| _ || / | | |______|| __/ | | | ___ \| | | || | | | | |
| | | || |\ \ | | | | | | | |_/ /\ \_/ /\ \_/ / | |
\_| |_/\_| \_| \_/ \_| |_| \____/ \___/ \___/ \_/
Powered by RT-Thread.
msh >
\ | /
- RT - Thread Operating System
/ | \ 4.0.3 build Jan 28 2021
2006 - 2020 Copyright by rt-thread team
lwIP-2.0.2 initialized!
[I/sal.skt] Socket Abstraction Layer initialize success.
[I/SFUD] Find a Winbond flash chip. Size is 16777216 bytes.
[I/SFUD] norflash0 flash device is initialize success.
[I/SFUD] Probe SPI flash norflash0 by SPI device spi10 success.
[D/FAL] (fal_flash_init:63) Flash device | norflash0 | addr: 0x00000000 | len: 0x01000000 | blk_size: 0x00001000 |initialized finish.
[I/FAL] ==================== FAL partition table ====================
[I/FAL] | name | flash_dev | offset | length |
[I/FAL] -------------------------------------------------------------
[I/FAL] | wifi_image | norflash0 | 0x00000000 | 0x00080000 |
[I/FAL] | bt_image | norflash0 | 0x00080000 | 0x00080000 |
[I/FAL] | download | norflash0 | 0x00100000 | 0x00200000 |
[I/FAL] | easyflash | norflash0 | 0x00300000 | 0x00100000 |
[I/FAL] | filesystem | norflash0 | 0x00400000 | 0x00c00000 |
[I/FAL] =============================================================
[I/FAL] RT-Thread Flash Abstraction Layer (V0.5.0) initialize success.
[Flash] (../packages/EasyFlash-v4.1.0/src/ef_env.c:1818) ENV start address is 0x00000000, size is 8192 bytes.
[Flash] EasyFlash V4.1.0 is initialize success.
[Flash] You can get the latest version on https://github.com/armink/EasyFlash .
[I/OTA] RT-Thread OTA package(V0.2.3) initialize success.
[I/OTA] Verify 'wifi_image' partition(fw ver: 1.0, timestamp: 1592464902) success.
msh />[W/DBG] poke wlan timeout! sn=1
[W/DBG] poke wlan timeout! sn=1
[W/DBG] poke wlan timeout! sn=1
Could not turn off TX glomming
[E/WWD] wifi library initialize failed: -8!
[I/WLAN.dev] wla[W/DBG] poke wlan timeout! sn=1
e wlan timeou
To initialize device:wlan0 failed. The error code is -8
[E/WLAN.dev] L:75 wlan init failed
[E/WLAN.mgnt] F:rt_wlan_set_mode L:882 F:rt_wlan_set_mode L:882 wlan init failed
[W/DBG] poke wlan timeout! sn=1
[W/DBG] poke wlan timeout! sn=1
[W/DBG] poke wlan timeout! sn=1
[W/DBG] poke wlan timeout! sn=1
我也有相同的问题, 你的解决了吗