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
Thank you for your reply. I have re-downloaded examples from the provided repository, compiled and executed the example following your suggestions, the result is the same as in my initial post, aws example does not work as advertised, stuck at user_app_thread_entry.c:175 waiting for a notification, while NetX examples operate as advertised.
I'm guessing there is a timeout value somewhere in your demo code which was determined experimentally to work for your particular setup, especially after reading this thread
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?
The specific thread is referring to FTP NetX Client and FTP NetX Server examples. These examples use different stacks and NetX Duo is used for ethernet connectivity.
The specific example you are mentioning on this post uses FreeRTOS+TCP stack.
I replicated the example again and I was able to connect and send data to server:
The only case that I see what you describe is if I do not remover jumper j61 to enable using ethernet B.
I have also tested the simple ethernet example from github repo and this example also run successfully.
The board successfully connected to network and obtained an IP address from DCHP server.
Test the example attached for simple ethernet connectivity. Also J61 needs to be removed on this example.
Also could you please specify which IDE are you using? Are you using e2studio? Or other IDE like IAR, Keil MDK etc?
In case you are using another IDE than e2studio it is possible that the ethernet is failing due to the fact that the TrustZone boundaries have not been set properly to the device.
ethernet_ek_ra8m1_ep.zip
Thanks and Regards,
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.
I'm using
Renesas e² studio
Version: 2024-10 (24.10.0)
Build Id: R20241003-1714
Ok thanks for the info. Could you please give a try to the simple ethernet project I have attached to see if the board connects successfully and gets an IP adress?
Many thanks for the example code, I've downloaded and tested it, unfortunately I still could not connect. I did modify user_app.h to suit my setup. Just to verify that I'm not imagining stuff I've connected my pc to the same ethernet port to verify:
Prior to plugging in ethernet port:
After plugging it in:
Apologies for coming back late to this. From the screenshots you have sent me it looks like the DHCP server is unable to resolve an IP adress and provide it to the specific device.
Could you please provide more information about the network you are testing the board connection?
Are you connecting the board directly to the ethernet port of a router in your home network or your office-work network.
Also you could maybe try to provide to the device a static IP address, by disabling DHCP settings in your project. And by adding hard-coded IP adress in your code that you know that it is available and free to be obtained by the board in your network.
Irini
https://drive.google.com/file/d/1ViHeHO1lDZuRFl6QuR5QSB8KvhEd8ceL/view?usp=sharing i have an issue in my example code project. i am using ra6m3 freertos.