I followed the instructions in order to get the esp32 working (in my case esp32-wroom-32s). I can discover it and onboard it using the "Just works method". However, once I try the PKI, the app crashes and FreeRTOS restarts the app.
Apparently it crashes with the following backtrace (as outputted by addr2line tool): x400e98de: oc_send_response at /home/david/iot-lite/iotivity-lite/api/oc_server_api.c:82 0x400ef18b: get_csr at /home/david/iot-lite/iotivity-lite/security/oc_csr.c:49 0x400e8f6d: oc_ri_invoke_coap_entity_handler at /home/david/iot-lite/iotivity-lite/api/oc_ri.c:953 0x400eb6e1: coap_receive at /home/david/iot-lite/iotivity-lite/messaging/coap/engine.c:529 >From the espressif troubleshooting guide, looking at EXCVADDR and the error >name (LoadProhibited) you can get an idea of what happened. In my case >EXCVADDR: 0x00000004, so probably we're trying to access a pointer to a >structure that is null. I'm worried it might have to do with memory issues I'm >not sure but not sure. After some testing it looks likeĀ request->response is null, thus when trying to access request->response->response_buffer->content_format the app crashes. Any idea if I'm doing anything wrong? Or is this something that needs to be fixed in the esp32 port? Thank you -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#10433): https://iotivity.groups.io/g/iotivity-dev/message/10433 Mute This Topic: https://groups.io/mt/81351248/21656 Group Owner: [email protected] Unsubscribe: https://iotivity.groups.io/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
