How to modify PN code to adapt to customer board
INDUSTRIAL LCD DISPLAYS / IGBT MODULES DISTRIBUTOR

Infineon / Mitsubishi / Fuji / Semikron / Eupec / IXYS

How to modify PN code to adapt to customer board

Posted Date: 2024-01-19

RZ/N2L Starter Kit

Renesas RZ/N2L Starter Kit+ for evaluation or development using the RZ/N2L MPU.

With the onboard emulator, you just need to connect to your PC to start evaluation. The evaluation board is feature-rich, such as Gigabit Ethernet PHY and Octal Flash, allowing full evaluation of chip functionality without the need for expansion boards.

Click to view larger image

Click to view larger image

customer problem

When customers use N2L for PN communication products, the RSK board is adapted to the Gigabit PHY chip of the RGMII interface, but the industry currently uses 100M PHY, so customers will adapt the PHY of the MII interface according to their own needs. chip.

Since the PN code is relatively large and the on-chip RAM is not enough, SDRAM needs to be expanded as an extended running memory. Customers will modify the corresponding CS chip select and address area to adapt to the PN code according to their own needs. Otherwise, the customer's code will not run properly.

The specific modifications are as follows

The development board uses the RGMII Gigabit network port configuration. Customers generally use the MII interface, change the interface correspondence from RGMII to MII, and modify the r_ether_access_rzt2.c file. The left is the RGMII interface and the right is the MII interface:

Click to view larger image

Click to view larger image

It is necessary to modify the address configuration of the port according to the hardware address of the PHY used by the customer, and modify the definition in the common_data.c folder accordingly.

Click to view larger image

If you use N2L, the SDRAM used by the development board by default is the address corresponding to CS2. If the client uses CS3, in addition to modifying the address specified by icf, you also need to use part of the source code version of the PN protocol stack because the bottom layer uses absolute addresses. The address of CS2 is fixed in this way, and the following address should be modified to start with 0x5800000. The modified address is as follows.

On the contrary, if T2M defaults to CS3 and is modified to CS2, in addition to modifying icf, it is also necessary to modify the following base addresses of pnip.reg.h.

Click to view larger image

The following addresses need to be matched and modified in Icf:

Click to view larger image

Review Editor: Tang Zihong


#modify #code #adapt #customer #board