Remora - ethernet NVEM / EC300 / EC500 cnc board

  • Spyderbreath
  • Spyderbreath's Avatar
  • Away
  • New Member
  • New Member
More
01 May 2025 16:42 #327439 by Spyderbreath
Replied by Spyderbreath on topic Remora - ethernet NVEM / EC300 / EC500 cnc board

Attis92 post=327432 userid=41888Yes, correct!
But I’m still having some issues with the config upload, which I’m currently investigating on the EC500 board.
If you're unable to change the config, you may need to erase the entire chip first:

sudo pyocd erase -c --target mimxrt1050_quadspi


Then flash the firmware again and upload the new config.


[code]sudo pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi


This worked for me, but it's definitely not an ideal solution.
[/code]

[code]OK, now for the most current question, just how were you able to determine you had trouble, was there an error at the point of issuing the flash command or did that seem to work and then you discovered the problem some other way? When I did this, it seemed to flash without error, or at least none were reported.

I have gotten past the point of running the upload script - python3 linuxcnc/configs/remora-rt1052-basic/upload_config.py configs/remora-rt1052-basic/nvem-rt1052.txt - and that reported back ...
[/code]
Valid JSON config file, uploading to board
Config file length (words) = 1701
Config file length (bytes) = 6804
Remainder = 0
Config file length with padding (bytes) = 6804
CRC-32 = 0x9fd7ecb
[code]Now I need to get a hal config into the mix if I am not mistaken as to my next steps. I have found this on github - 
[/code]github.com/scottalford75/Remora-NVEM/tree/main/LinuxCNC - and now I am going to have to try and sort all that out with no real clue or set of directions. That is provided I did everything as I was suppose to and it all actually worked. I don't know how to test it other than try to get LinuxCNC configured and run it. At this point I will be happy just to see the Estop trip when the terminals are shorted on that input.

wish me luck
 
The following user(s) said Thank You: DarkPhoinix

Please Log in or Create an account to join the conversation.

  • Spyderbreath
  • Spyderbreath's Avatar
  • Away
  • New Member
  • New Member
More
01 May 2025 16:47 #327442 by Spyderbreath
Replied by Spyderbreath on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Sorry, hope you can read that mess above ^

No clue what happened and attempting to edit any of it looks to put the entire thing in quotes. As if I don't have enough problems.....

Please Log in or Create an account to join the conversation.

More
01 May 2025 20:17 #327466 by Attis92
The problem is a bit tricky to explain.

The Python upload script doesn’t show any issues — the problem only becomes visible when connecting to the board via serial port (RS232). On page 215, I described the core issue: the board rejects the new config with the message “JSON Config file CRC incorrect”, even though the CRC is actually correct.

When I initially prepared the board, I uploaded the “basic” EC500 config. This version uses the stepgen module on the BaseThread, which runs at 40kHz. That frequency was too low for my AC servo setup — I could only reach about 2400 mm/min feedrate.
So I tried uploading the DMA-accelerated stepgen config, which supports ~500kHz and lets me reach 6000–8000 mm/min. However, I couldn’t upload this new config due to the CRC issue.
Eventually, I erased the entire chip, re-flashed the firmware, and uploaded the DMA-based config again — and it worked without errors.
But when I tried to modify the config afterwards, the issue came back.

My theory:
The firmware stores the received config on the external NOR flash. After writing, it checks the validity (CRC) — and if it’s OK, it copies the config to another flash region and marks it as "Saved". It also erases the previous area (which is necessary for NOR flash writes).
However, if for some reason this copy/erase process doesn't happen correctly, then the new config can't be written to flash.
There’s no visible error, since the flash still contains data, but the system ends up checking and using the old (cached) config instead.
I’m not sure if I’m right, but it would explain the behavior. 

Please Log in or Create an account to join the conversation.

More
02 May 2025 11:07 - 02 May 2025 11:57 #327492 by DarkPhoinix
Replied by DarkPhoinix on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
I have never converted my st-link v2 to DAP for flash rt1052. I have read almost all the posts in this discussion (I take this opportunity to thank Scott and all those who brought the work to this point) Scott in some posts says that the DAP does more harm than good, not only that it is better to use a picoprobe as a device, I initially failed and did not want to modify the only st-link I had so I ordered a dap and a picoprobe as per tuxcnc link (I take this opportunity to thank tuxcnc who solved the problem with his posts) but before their arrival I solved the flash. I can't understand why it didn't work initially. Will the SDK software for rt1052 be the solution?

forum.linuxcnc.org/18-computer/55914-nve...rmware-solved#327493
Last edit: 02 May 2025 11:57 by DarkPhoinix.

Please Log in or Create an account to join the conversation.

More
02 May 2025 12:39 - 02 May 2025 16:16 #327495 by DarkPhoinix
Replied by DarkPhoinix on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
I would like, while waiting for the final hardware, to try nvem v5 and remora with this TB6560 JP-1635A driver installed on Y.
This driver has an EN input that I leave disconnected, as I was advised, I also tried to connect to COM + but without results.
I read these:
remora-docs.readthedocs.io/en/latest/har...thernet/rt1052.html#

remora-docs.readthedocs.io/en/latest/software/hal-examples.html

linuxcnc.org/docs/html/integrator/stepper-timing.html

the problem is this stepper movement is not smooth and the movements are too short:
youtube.com/shorts/Hnpl1kUg8-o

If someone is so kind to take a look at my configuration mess and help me solve it I would be grateful, even if I am thinking that the problem is the connections of this obsolete driver.

I also tried on mach 3 with its original controller and the stepper moves correctly(But have all 4 pin connected)
 
Last edit: 02 May 2025 16:16 by DarkPhoinix.

Please Log in or Create an account to join the conversation.

More
03 May 2025 02:53 #327578 by cakeslob
did you run that through an AI to generate stuff?

Please Log in or Create an account to join the conversation.

More
03 May 2025 15:55 - 03 May 2025 21:34 #327605 by jjdege

Hi guys

I couldn't resist and bought a new board, this time I opted for a 3-axis EC500,
it has LEDs that indicate the I/O status, I think it's more complete.

I tested it with Mach3 to make sure it was working well, given the previous ones,
and it worked on all three axes.

When loading the firmware, it got to 29% and timed out and everything froze,
the DAP wasn't receiving signals.
I reread page 115 of the thread that talks about how to unlock and after having
bridged BOOT_MO and 3V3 I managed to delete and write the new firmware!!

Now all 6 axes work.

Thanks again to Scott and to whoever made all this possible.

Hi
I connected to a small laser gantry structure the EC500 with Remora
and a small demo video .
I have to say it works great!!!
Thanks!
Last edit: 03 May 2025 21:34 by jjdege.

Please Log in or Create an account to join the conversation.

  • Spyderbreath
  • Spyderbreath's Avatar
  • Away
  • New Member
  • New Member
More
03 May 2025 17:09 #327610 by Spyderbreath
Replied by Spyderbreath on topic Remora - ethernet NVEM / EC300 / EC500 cnc board
Would anyone have valid Remora NVEM v5 config samples available anywhere? I do not have an EC500. I do not have an EC300. I have an NVEM v5 and so far no examples will work at all. Attempting to use the hal and ini files from github.com/scottalford75/Remora-RT1052-c.../remora-rt1052-basic do not seem to work as they all seem to be for the EC500. Any attempt  to use the config samples from github.com/scottalford75/Remora-NVEM results in compounding errors and will not run axis at all. Perhaps all I need to do is edit the EC500 hal and ini files? Is there any guide that will instruct me as to WHAT in those files I need to edit to get it to work? When I run the axis ec500 config and toggle the Estop and power on I can see the activity lights on the ethernet port start blinking so I know there is at least an attempt to communicate with the controller, but I am pretty sure that most else is different in the configs between the EC units and the NVEM units.

Honestly at this point I am sure I have an acute case of information overload and have wiped out and reinstalled remora more than a few times.

Please Log in or Create an account to join the conversation.

More
03 May 2025 17:33 #327613 by cakeslob
github.com/scottalford75/Remora-RT1052-c...xCNC/nvem-rt1052.txt

this is your config.txt and it loads on the board via tfpt, hence the NVEM in the title. It is board specific, and is the only thing board specific.

github.com/scottalford75/Remora-RT1052-c.../remora-rt1052-basic
this is the hal/ini file. it is not board specific. the same hal/ini file will work with the ec300 ec500 and nvem.

load the config.txt to the board, and load the remora-rt1052-basic in linuxcnc
dont go to any other github repos. dont run the file through AI. you configure your machine in the ini file.

Please Log in or Create an account to join the conversation.

More
03 May 2025 18:03 #327617 by cakeslob
darkpheonix try with this and go from there. if you are trying to set up a rotational axis, that is different than a linear axis in setup
[AXIS_Y]
MAX_VELOCITY = 5
MAX_ACCELERATION = 20.0
MIN_LIMIT = -0.01
MAX_LIMIT = 300.0

[JOINT_1]
TYPE = LINEAR
HOME = 0.0
MIN_LIMIT = -5.0
MAX_LIMIT = 300.0
MAX_VELOCITY = 5
MAX_ACCELERATION = 20.0
STEPGEN_MAXACCEL = 2200.0
SCALE = 1600
FERROR = 1.0
MIN_FERROR = 0.5
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0
HOME_LATCH_VEL = 0
HOME_SEQUENCE = 0
P_GAIN = 300
FF1_GAIN = 0.1
DEADBAND = 0.001

these options are not real, and im unsure where you got them from.
STEPPER_TYPE = external
STEP_PIN = ystep       
DIR_PIN = ydir         
#ENABLE_PIN = yen       
STEP_INVERT = no       
DIR_INVERT = no        
ENABLE_INVERT = no     

[DRIVERS]
# Generali impostazioni dei driver passo-passo
STEP_SPACE = 100000
STEP_TIME = 100000
DIR_SETUP = 50000
DIR_HOLD = 50000

Please Log in or Create an account to join the conversation.

Time to create page: 0.269 seconds
Powered by Kunena Forum