Hi,I use US159-DA16200MEVZ with AT Command.When I tried acceess to AWS s3 use on AT+NWHTC(with presigned URL), DA16200 put "Hard Fault Exception".Presigned URL is long(over 1500 character) URL Data.
AT Command
AT+NWHTC=https://xxxxxxxx....xxxxxxx,get
Debug Message
And, I confirmed same issue with dummy long URL.AT Command
AT+NWHTC=https://aaaaaaa...aaaaaaa,get
When I used dummy short long URL, Hard Fault is not occured.
AT+NWHTC=https://aaaaa,get OK +NWHTCSTATUS:3
Read CA(length = 0) Read Cert(length = 0) Read Privkey(length = 0) [httpc_cb_result_fn:674]httpc_result: 3, received: 0 byte, err: -16
so, I think maybe over DA16200's URL limit size.I want to solve this problem.I would greatly appreciate any feedback, guidance, or suggestions that the Renesas community can provide.
My SDK Information is...
Wakeup source is 0x4 [dpm_init_retmemory] DPM INIT CONFIGURATION(1) ****************************************************** * DA16200 SDK Information * --------------------------------------------------- * * - CPU Type : Cortex-M4 (120MHz) * - OS Type : FreeRTOS 10.4.3 * - Serial Flash : 4 MB * - SDK Version : V3.2.3.0 GEN-ATCMD * - F/W Version : FRTOS-GEN01-01-56c232799-004158 * - F/W Build Time : Jun 3 2022 16:56:46 * - Boot Index : 0 * ****************************************************** System Mode : Station Only (0)
Best Regarts.
Hi There,Thank you for posting your question online.From the logs you have shared I can see that you are using a quite old SDK version (v3.2.3). Is there a reason you are not using the latest SDK version?We highly recommend to use the latest SDK version v3.2.6 which you can find here:https://www.renesas.com/eu/en/document/sws/da16200-da16600-freertos-sdk-v3260?r=1600096You can find the pre-compiled images here: https://www.renesas.com/eu/en/document/sws/da16200-da16600-freertos-sdk-image-v3260?r=1600096Regarding the issue you are facing with AT+NWHTC:The maximum url string length is 256 bytes. That is why you were facing a Hard Fault Exception.
You should search on the user_http_client.h file and change:
#define HTTPC_MAX_PATH_LEN 256
#define HTTPC_MAX_PATH_LEN (1024 * 2)
// Max size of HTTP Client's request data #define HTTPC_MAX_REQ_DATA (1024 * 4)
// Stack size of HTTP Client #define HTTPC_STACK_SZ (1024 * 6) // Max 10KB
#define TX_PAYLOAD_MAX_SIZE (1024 * 8) // Max 8KB
Hi OV_Renesas,
Thanks for your answer.
I want to try this suggestions but now I'm facing bellow same problem and I can not build SDK version v3.2.6 on windows.
https://community.renesas.com/wireles-connectivity/f/wi-fi/29990/da16200-sdk-3-2-6-unable-to-build
for now, I wait this issue is solved.
Hi There,Thank you for the reply.I will update you here as well when this issue is fixed.Kind Regards,OV_Renesas
Hi There,Apologies for the delay.The issue on SDK v3.2.6 has been fixed.Please refer here: DA16200 SDK 3.2.6 unable to build - Wi-Fi - Wireless Connectivity - Renesas CommunityKind Regards,OV_Renesas
Thanks for your support.
The build now works for me on Windows 11 ver.21H2 and Eclipse 2023-03 (4.27.0)
And I tried to up url string length, so, Hard Fault with url string length is gone.
Thanks a lot!!
and... now I'm facing bellow new 2 issue.
1. ERROR -682 Occured.
When I send AT+NWHTC Continuously, somtimes AT+NWHTC respond ERROR -682.
(maybe this error -> AT_CMD_ERR_NW_HTC_TASK_CREATE_FAIL = -682,)
When this error is responded, do I retry command until "OK HTTP/1.1 200 OK"?
Or, Do I wait any STATUS?
e.g.
AT+NWHTC=https://xxxxx,put,Message1 OK HTTP/1.1 200 OK AT+NWHTC=https://xxxxx,put,Message2 ERROR:-682 +NWHTCSTATUS:0 AT+NWHTC=https://xxxxx,put,Message3 OK HTTP/1.1 200 OK
2. Hard Fault Exception
Maybe, related to the "1. ERROR -682 Occured"
When I send bellow AT+NWHTC, DA16200 put "Hard Fault Exception".
Is there a way to avoid Hard Fault?
AT+NWHTC=https://xxxxxx,put,Message1 OK HTTP/1.1 200 OK AT+NWHTC=https://xxxxxx,get ERROR:-682 +NWHTCSTATUS:0 AT+NWHTC=https://xxxxxx,get OK HTTP/1.1 200 OK [Hard Fault] +NWHTCSTATUS:0 +INIT:DONE,0
I confirmed this issue too with bellow version.
DA16200_IMG_FreeRTOS_ATCMD_QFN_v3.2.6.0_4MB
I would greatly appreciate any feedback, guidance, or suggestions that the Renesas community can provide.
Hi There,Thank you for the reply.Glad you were able to build SDK v3.2.6 and for being able to get rid off the Hard Fault error for the URL string.Regarding the new 2 errors you are facing, let me check on this and I will get back to you as soon as possible.Kind Regards,OV_Renesas