Initializing MQTT helper library takes system into MPU fault #77865
-
Hi, I am using nrf9160 with aws_iot library with zephyr and ncs v2.6.1 Now the issue is when aws is initalized I get mpu fault, I have tracked down that issue is coming from mqtt helper library, the way I tracked it down is I ditch aws library and directly started using mqtt helper library and the issue persists and to further track down the issue from where it was coming, I then used simple mqtt library, now simple mqtt library works fine the issue arrives when I try to find ip address for the broker links here the sample code. This piece of code takes the controller into MPU fault. I could be wrong but as I went to issolate the code the issue comes from here.
Now getting back to aws library which in the backend using mqtt helper library which runs this specific code to find brokers ip address. Here is my aws file code
here is my main.c code
here is my .conf file
And my output
now output shows that main thread failed but in my .conf file you can see I have allocated alot of space for heap and main thread as well and it still fails. I am lost at this part. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was able to solve the issue of MPU fault by removing CONFIG_NET_SOCKETS_OFFLOAD=y this. This caused the issue for some reason. |
Beta Was this translation helpful? Give feedback.
I was able to solve the issue of MPU fault by removing CONFIG_NET_SOCKETS_OFFLOAD=y this. This caused the issue for some reason.