This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: Enabling ESM function security resulted in Ethernet IP setting successfully but ping not working.

Part Number: TDA4VM

Hi,

After enabling the ESM function security in the MCU, we found a probability of setting the Ethernet IP successfully but not being pinged.

We set the IP and MAC addresses through a script, print out the log of MCU 2, and perform a ping operation.

1、The following is the script:

SOC1

#!/bin/sh

echo "[Setup APP]Start Test ..."
echo "[Setup APP]Set net config ..."

ifconfig eth0 0.0.0.0 down
sleep 1
ifconfig eth0 hw ether AA:BB:CC:DD:EE:DD
ifconfig eth0 up
ifconfig eth0 192.168.0.6
ip link add link eth0 name eth0.3 type vlan id 3

ifconfig eth0.3 192.168.3.6 netmask 255.255.255.0
route add -host 239.255.3.1 dev eth0
route add -host 239.0.1.1 dev eth0

sync

sleep 2

ping 192.168.0.7 &

sleep 2
source /opt/vision_apps/./vision_apps_init.sh

sleep 15
cat /var/log/demo.log > /dev/ttyS2

SOC2

#!/bin/sh

echo "[Setup APP]Start Test ..."
echo "[Setup APP]Set net config ..."
ifconfig eth0 0.0.0.0 down
sleep 1
ifconfig eth0 hw ether AA:BB:CC:DD:EE:1D
ifconfig eth0 up
ifconfig eth0 192.168.0.7
ip link add link eth0 name eth0.3 type vlan id 3

ifconfig eth0.3 192.168.3.7 netmask 255.255.255.0
route add -host 239.255.3.1 dev eth0
route add -host 239.0.1.1 dev eth0

sync

sleep 2

ping 192.168.0.6 &

sleep 2
source /opt/vision_apps/./vision_apps_init.sh

sleep 15

cat /var/log/demo.log > /dev/ttyS2

2、The following is success log:

SOC1
SOC1.txt

SOC2

SOC2.txt

The following is fault log:

SOC1

SOC1.txt

SOC2

SOC2.txt