Error code 2: Mode too long/not NULL terminated

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error code 2: Mode too long/not NULL terminated

1,301 Views
liujialu_2024
Contributor III

TFTP flashing SJA1110 on board S32G-VNP-RDB2 meets error:

Error code 2: Mode too long/not NULL terminated

according to "AN13185:Flashing Binaries to S32G-VNP-RDB2 Board"

3.2.4. Programming a binary into flash through TFTP

connect PC NIC with S32G-VNP-RDB2 P4, link ok:

bash-5.1$ ping -I eth0 192.168.0.200
PING 192.168.0.200 (192.168.0.200) from 192.168.0.100 eth0: 56(84) bytes of data.
64 bytes from 192.168.0.200: icmp_seq=1 ttl=255 time=0.308 ms
64 bytes from 192.168.0.200: icmp_seq=2 ttl=255 time=0.301 ms
64 bytes from 192.168.0.200: icmp_seq=3 ttl=255 time=0.534 ms
64 bytes from 192.168.0.200: icmp_seq=4 ttl=255 time=0.536 ms
64 bytes from 192.168.0.200: icmp_seq=5 ttl=255 time=0.406 ms
^C
--- 192.168.0.200 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4102ms
rtt min/avg/max/mdev = 0.301/0.417/0.536/0.103 ms

but TFTP can not work:

bash-5.1$ tftp 192.168.0.200 -c put ./flash_image.bin flash.bin

Error code 2: Mode too long/not NULL terminated

what's wrong with that?

0 Kudos
Reply
4 Replies

1,211 Views
chenyin_h
NXP Employee
NXP Employee

Hi, @liujialu_2024 

Thanks for the reply.

Sorry that I did not reproduce this issue from my board, I will continue checking it, would you please also share the size of your images that want to upload?

Also, I suggest checking the output of "tftp -v 192.168.0.200 -m binary -c put ./flash_image.bin flash.bin"

 

BR

Chenyin 

0 Kudos
Reply

1,272 Views
chenyin_h
NXP Employee
NXP Employee

Hi, @liujialu_2024 

Thanks for the post.

Sorry that I did not produced such issues from my end, may I know if you could try the following command:

tftp -v 192.168.0.200 -c put ./flash_image.bin flash.bin to generate more logs.

 

BR

Chenyin

 

0 Kudos
Reply

1,266 Views
liujialu_2024
Contributor III

Thanks for your reply. details like these:

bash-5.1$ tftp -v 192.168.0.200 -c put ./flash_image.bin flash.bin
Connected to 192.168.0.200 (192.168.0.200), port 69
putting ./flash_image.bin to 192.168.0.200:flash.bin [netascii]
Error code 2: Mode too long/not NULL terminated

Tags (2)
0 Kudos
Reply

1,298 Views
liujialu_2024
Contributor III
My TFTP version: tftp-hpa 5.2, with readline
0 Kudos
Reply