Hi
I am developing a new product with the Renesas R7AF6M4 100pin micro and I am having problems using the Ethernet peripheral.I have developed and tested the FW on the related EVB with the following configuration:IAR Development Tool 9.30.1FreeRTOS+TCPTrust Zone ON, Non secure
The code runs correctly, the link, ping of the peripheral and TCP/IP Server work as expected.
I brought the FW to our board, which unlike the evb mounts the micro version with 100 pins instead of 144, remapping the eth peripheral on port 4 instead of 7.
The HW was copied exactly from the evb.
In this configuration the eth connection no longer works (it does not perform the ping).
The code is completely identical, apart from the new pin configuration.
The debugger is the Segger J-Link, SWD mode
Do you have any suggestion?
Thank
Chiara
Hello Chiara,
Thanks for your request.
Here is the ethernet PHY used on EK-RA6M4 and the connections:
So as far I can understand you have used the same PHY chip as EK-RA6M4 but the only thing you changed is some pins? Is that correct?
In that case in the project you tested on the EK have you made the necessary changes on the pin configuration for your custom board design?
Can you please share your configuration.xml with us and also share your schematics?
I assume that the operation mode you selected is RMII, have you checked the frequency on the REF50CK pin? Is it 50 MHz as it should for RMII operation mode?
Also have you checked if the drive capacity in all of the pins that you have configured to the ethernet controller is High?
All the pins used from the ethernet controller should have drive capacity high.
Also I will share with you a sample project with a loopback test to make some basic test operations on your PHY in your custom board.
It might be for RA6M3, but you can easily make this for RA6M4 also.
fsp_ethernet_loopback_test_ra6m3 (2).zip
Best Regards,
IK_Renesas
Thank you for the answer.Yes, my projest was correct. I simply forget to set the properly IDAU registers.Now all is correctly running
Regards
hiChiara68
I have the same problem as yours. I checked with IDAU tool and got the result as below.Code Flash Secure 768 KBCode Flash NSC 0 KBData Flash Secure 8 KBSRAM Secure 240 KBSRAM NSC 0 KB
I want to ask why my SRAM NSC is 0. Is this true?
HiI set SRAM Secure as 2 and SRAM NSC as 6 and all is running ok
The Ethernet Direct Memory Access Controller (EDMAC), is designed to be a non- secure bus master, so the associated Ethernet RAM buffers must be placed in a non-secure RAM area. And they can be accessed from EDMAC.
www.renesas.com/.../configuration-issues-ra6-ethernet-controller
Sorry Chiara68 For me, EDMAC RA6M4 is new. Please let me know where to set that up.
I used the Renesas Flash Programmer V3.16 to set IDAU
Thank IK_Renesas . I know that and am following this guide. EDMAC operation issue possible on custom RA6E1/M4/M5 board | Renesas Customer Hubbut when i check with IDAU tool, I see SRAM NSC 0 KB. Is this wrong? What do I need to edit in the project?
Code Flash Secure 768 KBCode Flash NSC 0 KBData Flash Secure 8 KBSRAM Secure 240 KBSRAM NSC 0 KB
why my SRAM NSC is 0?
The RA6M4 has 256KB SRAM memory available. From what you have send to us it looks like you have reserved 240 KB as secure RAM .
As mentioned in the KB article you share the ethernet buffer should be place in memory section that is defined to keep the non-secure buffers there and they will be allocated in the non-secure RAM area.
You can set the IDAU registers and the TrustZone boundaries either from Renesas Device Partition Manager or Renesas Flash Programmer.
Please do not post your issues in older threads and post your issue into a new thread to receive further support from us.
IK