Remora - ethernet NVEM / EC300 / EC500 cnc board

More
4 years 6 months ago #240501 by scotta

Uploading doesn't work I'm getting time-outs and now after a single movement I'm getting a following error:

Valid JSON config file, uploading to NVEM board
Config file length (words) = 1652
Config file length (bytes) = 6607
Remainder = 3
Padding added =  [0]
Config file length with padding (bytes) = 6608
CRC-32 = 0xc1997785
Timeout waiting for traffic, retrying...
Timed-out waiting for traffic
resending last packet
Resending packet WRQ packet: filename = config mode = octet on sessions <tftpy.TftpStates.TftpStateSentWRQ object at 0x7f931391c6a0>
Timeout waiting for traffic, retrying...
Timed-out waiting for traffic
resending last packet
Resending packet WRQ packet: filename = config mode = octet on sessions <tftpy.TftpStates.TftpStateSentWRQ object at 0x7f931391c6a0>
Timeout waiting for traffic, retrying...
Timed-out waiting for traffic
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/tftpy/TftpContexts.py", line 171, in cycle
    (buffer, (raddress, rport)) = self.sock.recvfrom(MAX_BLKSIZE)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "upload_config.py", line 72, in <module>
    client.upload("config", "/tmp/config.txt", timeout=60)
  File "/usr/local/lib/python3.7/dist-packages/tftpy/TftpClient.py", line 101, in upload
    self.context.start()
  File "/usr/local/lib/python3.7/dist-packages/tftpy/TftpContexts.py", line 325, in start
    self.cycle()
  File "/usr/local/lib/python3.7/dist-packages/tftpy/TftpContexts.py", line 174, in cycle
    raise TftpTimeout("Timed-out waiting for traffic")
tftpy.TftpShared.TftpTimeout: Timed-out waiting for traffic


 
Did you upload the new firmware from this location? [I'll correct the earlier post]

github.com/scottalford75/Remora-NVEM/tre...json_config/Firmware
 

Please Log in to join the conversation.

More
4 years 6 months ago #240502 by Domi
Need to change the address from 10.10.10.11 to 10.10.10.10? Or is it a card address?

Please Log in to join the conversation.

More
4 years 6 months ago #240503 by scotta

Need to change the address from 10.10.10.11 to 10.10.10.10? Or is it a card address?
The NVEM board IP address is hard coded to be 10.10.10.10 , Your computer can have any IP address on the same subnet.

Please Log in to join the conversation.

More
4 years 6 months ago #240504 by scotta

I downloaded it in windows. He then put it in Linuxcnc and then edited config.txt
python3: cannot open file 'upload_config.py': [Errno 2] No such file or directory
You need to be in the same directory as the python file and the config file before running the command.

Please Log in to join the conversation.

More
4 years 6 months ago #240505 by royka
Yes I did upload that firmware and checked if it uploaded correctly

Please Log in to join the conversation.

More
4 years 6 months ago #240506 by scotta
Hmm... ensure the ST-Link is disconnected and try pinging the NVEM at 10.10.10.10

Please Log in to join the conversation.

More
4 years 6 months ago #240507 by royka
Yes I could ping it, was thinking the same. Will try to upload the bin from the Release folder

Please Log in to join the conversation.

More
4 years 6 months ago #240508 by scotta
I'll look to merge the feature branch into main later today. Until then this is the firmware for testing

github.com/scottalford75/Remora-NVEM/tre...json_config/Firmware

Please Log in to join the conversation.

More
4 years 6 months ago #240509 by royka
Downloaded the whole folder so it has a new name so it could not be from the cahce or something, uploaded the firmware again, but still the same result. Time out when I try to upload the config and directly a following error after each movement. Ping is 0.090ms

Please Log in to join the conversation.

More
4 years 6 months ago #240510 by scotta
I've got a thought. Not sure why the upload is not working but when loading a fresh firmware there is no JSON config file in the Flash either, so when the board boots it's loading nothing, not even a stepgen. I'll need to include a default configuration in the firmware image somehow.

Really appreciate the testing guys. We'll get there.

Please Log in to join the conversation.

Time to create page: 0.816 seconds
Powered by Kunena Forum