Dear Expert,
I'm try to use MQTT with my nrf7002 DK.
But met Stack Overflow:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[00:00:07.648,925] <inf> MQTT_LED_BTN: Connected
[00:00:07.805,389] <inf> net_dhcpv4: Received: 192.168.0.104
[00:00:07.805,511] <inf> net_config: IPv4 address: 192.168.0.104
[00:00:07.805,541] <inf> net_config: Lease time: 7200 seconds
[00:00:07.805,572] <inf> net_config: Subnet: 255.255.255.0
[00:00:07.805,603] <inf> net_config: Router: 192.168.0.1
[00:00:07.806,945] <inf> MQTT_LED_BTN: DHCP IP address: 192.168.0.104
[00:00:07.814,910] <inf> MQTT_LED_BTN: ==================
[00:00:07.814,941] <inf> MQTT_LED_BTN: State: COMPLETED
[00:00:07.814,971] <inf> MQTT_LED_BTN: Interface Mode: STATION
[00:00:07.814,971] <inf> MQTT_LED_BTN: Link Mode: WIFI 4 (802.11n/HT)
[00:00:07.815,002] <inf> MQTT_LED_BTN: SSID: TP-LINK_168
[00:00:07.815,032] <inf> MQTT_LED_BTN: BSSID: 20:6B:E7:BB:8C:3B
[00:00:07.815,063] <inf> MQTT_LED_BTN: Band: 2.4GHz
[00:00:07.815,063] <inf> MQTT_LED_BTN: Channel: 6
[00:00:07.815,093] <inf> MQTT_LED_BTN: Security: WPA2-PSK
[00:00:07.815,093] <inf> MQTT_LED_BTN: MFP: Optional
[00:00:07.815,124] <inf> MQTT_LED_BTN: RSSI: -36
[00:00:13.815,185] <inf> MQTT_LED_BTN: Connecting to MQTT Broker...
[00:00:13.838,165] <inf> MQTT_LED_BTN: IPv4 Address found 3.73.145.44
[00:00:13.838,195] <inf> MQTT_LED_BTN: Hi MQTT: Main.c Line 351. Function client_init done
I notice the line:[00:00:14.486,053] <err> os: Faulting instruction address (r15/pc): 0x0003a68c, and then found this address points to: _svfprintf_r
I then refer to this post snprintf with float leads to hardfault but the issue still exist after CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y.
I also attached the whole freestanding folder from vscode. I use nrf sdk 2.4.0.
1452.wifi_station_try_mqtt.zip
Thanks,