Remora - ethernet NVEM / EC300 / EC500 cnc board

More
2 years 7 months ago #296591 by Wiretap
Thanks for the great work on Remora,

But I seem to have found a slightly strange bug. Using purely the example configs (as attached) I have an interesting behaviour.

If I move an axis (only tested with X so far as my 'machine' is currently just electronics, no motion assembly) beyond a certain point in either direction from 'home' (whatever it was at poweron), the axis completes its movement, stops for ~1s, then begins endlessly 'walking' in the negative direction.

I have verified this isn't noise. It is full-depth pulses on the step/dir pins. Scope capture attached for both.

The 'walking' stops if the 'machine power' button is off, or if in e-stop. However it will resume on reactivation of the machine. It only stops if you bring the axis back close to zero in LinuxCNC.

During this behaviour, the DRO in LinuxCNC is not moving, this is definitely happening within Remora rather than LCNC itself.
 

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

More
2 years 7 months ago - 2 years 7 months ago #296735 by nicnucan
Hi, i have a new EC500 board (see attached picture from chip) and trying to use it with linuxcnc and remora.

After some troubles to flash it with a converted ST-Link-V2, it seems to be that i successfully flashed it to remora with the raspberry pico under windows. See output below: (Under Linux (standard LinuxCNC build), I cannot establish a connection with the Pico CMSIS-DAP und linux.

PS C:\Users\...\Desktop> pyocd flash ./remora-rt1052-3.1.2.bin --target mimxrt1050_quadspi -v
0000693 I Target type is mimxrt1050_quadspi [board]
0000726 I DP IDR = 0x0bd11477 (v1 MINDP rev0) [dap]
0000749 I AHB-AP#0 IDR = 0x04770041 (AHB-AP var4 rev0) [discovery]
0000760 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00fd000 (designer=00e:NXP part=88c) [rom_table]
0000766 I [0]<e00fe000:ROM class=1 designer=43b:Arm part=4c8> [rom_table]
0000766 I   AHB-AP#0 Class 0x1 ROM table #1 @ 0xe00fe000 (designer=43b:Arm part=4c8) [rom_table]
0000771 I   [0]<e00ff000:ROM class=1 designer=43b:Arm part=4c7> [rom_table]
0000772 I     AHB-AP#0 Class 0x1 ROM table #2 @ 0xe00ff000 (designer=43b:Arm part=4c7) [rom_table]
0000780 I     [0]<e000e000:SCS v7-M class=14 designer=43b:Arm part=00c> [rom_table]
0000784 I     [1]<e0001000:DWT v7-M class=14 designer=43b:Arm part=002> [rom_table]
0000787 I     [2]<e0002000:FPB v7-M class=14 designer=43b:Arm part=00e> [rom_table]
0000790 I     [3]<e0000000:ITM v7-M class=14 designer=43b:Arm part=001> [rom_table]
0000794 I   [1]<e0041000:ETM M7 class=9 designer=43b:Arm part=975 devtype=13 archid=4a13 devid=0:0:0> [rom_table]
0000801 I   [2]<e0042000:CTI CS-400 class=9 designer=43b:Arm part=906 devtype=14 archid=0000 devid=40800:0:0> [rom_table]
0000805 I [1]<e0040000:TPIU M7 class=9 designer=43b:Arm part=9a9 devtype=11 archid=0000 devid=ca1:0:0> [rom_table]
0000807 I [2]<e0043000:TSGEN class=15 designer=43b:Arm part=101> [rom_table]
0000811 I IMXRT Boot Mode: Internal Boot [target_imxrt]
0000818 I CPU core #0: Cortex-M7 r1p1, v7.0-M architecture [cortex_m]
0000819 I   Extensions: [DSP, FPU, FPU_DP, FPU_V5, MPU] [cortex_m]
0000819 I   FPU present: FPv5-D16-M [cortex_m]
0000827 I 4 hardware watchpoints [dwt]
0000831 I 8 hardware breakpoints, 1 literal comparators [fpb]
0000846 I Loading C:\Users\...\Desktop\remora-rt1052-3.1.2.bin [load_cmd]
0000982 I IMXRT Boot Mode: Internal Boot [target_imxrt]
0001028 I IMXRT Boot Device: 0 [target_imxrt]
100%
0031426 I IMXRT Boot Mode: Internal Boot [target_imxrt]
0031428 I IMXRT Boot Device: 0 [target_imxrt]
0031545 I Erased 196608 bytes (3 sectors), programmed 147968 bytes (578 pages), skipped 0 bytes (0 pages) at 4.72 kB/s [loader]
PS C:\Users\...\Desktop>

My problem is that although it looks like the flashing worked, I can't establish a connection over the network. Ping 10.10.10.10, no response. I have already tried different ways to configure the manual IP on the linuxCNC pc.Can you please help me? What else can I do? Thank you in advance.    
Last edit: 2 years 7 months ago by nicnucan.

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

More
2 years 7 months ago - 2 years 7 months ago #296755 by nicnucan
I think it will not work because it is a MIMXRT1052CVL5B board, right? Is there a way that i can flash it correctly? With "pyocd list --targets" i can only find "MIMXRT1052xxxxB_quadspi", but this will not work.

Now I tried to flash the NON-CPP version "remora-rt1052-EC500-beta.bin" and now I get an network connection. Why is it then not possible to flash the newer C++ version? 
Last edit: 2 years 7 months ago by nicnucan.

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

More
2 years 7 months ago #296776 by Cold Turkey
Not too sure why you can't establish connection with the CPP version. I haven't had issues with that before.

When I did have issues with the board I found doing a full chip erase and then reflash solved my problems.
Using pyocd in linux

pyocd erase --chip --target mimxrt1050_quadspi

If you want to use your pico probe in linux there is a step in the guide I wrote to get it working. I have tested Pico CMSIS-DAP and had no issues.

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

More
2 years 7 months ago - 2 years 7 months ago #296777 by nicnucan
I also did a full chip erase before. Where can I find your guide? Thanks a lot in advance.
Last edit: 2 years 7 months ago by nicnucan.

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

More
2 years 7 months ago #296778 by Cold Turkey

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

Time to create page: 0.444 seconds
Powered by Kunena Forum