Hi,
I'm using EK RA8M1 to test out the aws_https_client_ek_ra8m1_ep example which fails to connect to internet, using fsp 5.7.0
Upon compiling and running the project, the following occurs (J61 jumper is removed)
00> -------------------------------------------------------------------------------- 00> Ethernet adapter Configuration for Renesas EK-RA8M1: Pre IP Init 00> -------------------------------------------------------------------------------- 00> ... 00> Ethernet adapter for Renesas EK-RA8M1: 00> Description : Renesas EK-RA8M1 Ethernet 00> Physical Address : 00-11-22-33-44-54 00> DHCP Enabled : No 00> IPv4 Address : 0.0.0.0 00> Subnet Mask : 255.255.255.0 00> Default Gateway : 0.0.0.0 00> DNS Servers : 0.0.0.0 00> Waiting for network link up...
But the link never comes up, no matter how long I wait. The same issue occured with fsp 5.6.0 btw.
Testing with NetX_https_client_ek_ra8m1_ep results i proper connection
00> INFO : ADC module initialization successful. 00> 00> 00> INFO : Checking for Ethernet link... 00> 00> 00> INFO : Acquired the IP address via DHCP successfully! 00> 00> 00> Successfully pinged DNS Server : 10.0.0.1 00> 00> 00> INFO : Getting IP from Adafruit Server... 00> 00> 00> DNS lookup is successful and the IP address of the Adafruit server is : 52.54.163.195 00> 00> 00> INFO : HTTPS Client is connected to the server successfully! 00> 00> 00> HTTP Client address is : 10.0.0.236 00> 00> 00> INFO : Adding an initial data on the feed... 00> 00> 00> INFO : Processing Post Request.... 00> 00> 00> INFO : Posted initial data on the feed successfully! 00> 00> 00> HTTPS Menu Options: 00> 1.POST Request 00> 2.PUT Request 00> 3.GET Request 00> User Input: 00>
Similarly NetX_dhcpv4_client_ek_ra8m1_ep also operates as expected
00> INFO : Network Initialization completed successfully. 00> 00> 00> INFO : Checking Ethernet Link... 00> 00> 00> INFO : Ethernet link is up. 00> 00> 00> INFO : DHCP client is running. 00> 00> 00> INFO : DHCP client is assigned an IP address. 00> 00> 00> DHCP Client address is : 10.0.0.236 00> 00> 00> DHCP Server address is : 10.0.0.1 00> 00> 00> INFO : Successfully Pinged DHCP Server. 00> 00> 00> Lease time(in ticks) : 4320000 00> 00> 00> INFO : DHCP Client is reinitializing... 00> 00> 00> INFO : DHCP client restarted. 00> 00> 00> INFO : DHCP client is assigned IP address lease for second time. 00> 00> 00> Successfully pinged DNS Server : 10.0.0.1 00> 00> 00> Successfully pinged DNS gateway : 10.0.0.1 00> 00> 00> INFO : Released IP address back to Server. 00> 00> 00> INFO : DHCPV4 Client EP completed. 00>
No modification to code was done, examples were just compiled and loaded onto the device J61 was not populated. Any idea what is wrong with aws_https_client_ek_ra8m1_ep example and how to fix it?
Hello asob ,
Let us apologize for the delayed response on your request due to the big amount of requests we receive per daily basis.
I replicated the specific example on FSP 5.7.0 and EK-RA8M1 and I was able to run it without any issues.
I used the example provided here in our github repo which has been updated 1 month ago and the example projects are now all in FSP 5.7.0.
https://github.com/renesas/ra-fsp-examples/tree/master/example_projects/ek_ra8m1/aws_https_client/aws_https_client_ek_ra8m1_ep
I was able as you can see to successfully connect to network.
Of course as you mentioned J61 need to be removed so that you use ethernet B:
And as you can see I was able to connect:
Also connected successfully to server Adafruit IO by generating my own certificated as descripted on aws_https_client_notes.md.
And also managed to perform GET,PUT and POST http requests.
And could see the data on my feed on Adafruit IO server:
Please test the example we provide on git.
And let us know if you also successfully run it!
Attaching my project also to check what changes you need to do in file user_app.h
As far it concern account key, certificates and the changes in the name of the APIs.
aws_https_client_ek_ra8m1_ep.zip
Hope it helps.
Best Regards,
IK
I was debug the project you provided and i am using RA6M3 also change the board in configuration but i had to get this error output can you guide me to get a proper output?
Vasanth ,
Thanks for your request.
However we would appreciate it if you could make a new post about your issue in order to help us organize better our work.
From the log messages on RTT you shared it looks like you missed the process about generating with OpenSSL the proper certificates and keys to provision and connect to the server succefully,
Please read carefully and follow the steps as mentioned on this markdown file:
https://github.com/renesas/ra-fsp-examples/blob/master/example_projects/ek_ra6m3/aws_https_client/aws_https_client_ek_ra6m3_ep/aws_https_client_notes.md
Check the project attached on this thread which has worked for me: RE: Ra6M3 Ethernet Code Issue
To see what modifications you should do in user_app.h file inside src folder.
Thanks and Regards,
https://drive.google.com/file/d/1ViHeHO1lDZuRFl6QuR5QSB8KvhEd8ceL/view?usp=sharing i have an issue in my example code project. i am using ra6m3 freertos.
In Azure RTOS, that example works fine and get an output using the same IP address but FreeRTOS i have DNS lookup failed as i said before and also Failed in vAlternateKeyProvisioning() function [ERR] In Function: user_app_thread_entry().I attached the output of AzureRTOS and the issue in FreeRTOS screenshot given below. And also attached the project files of AzureRTOS and FreeRTOS.drive.google.com/.../1N7Cce5RNPBEP3Qd78xZblxl4qoQqMNK_
Please prioritize addressing my request regarding the "DNS lookup failed" issue first before moving on to the next issue.