Closed otwieracz closed 1 year ago
Hi, I see you are using the older firmware. The new C++ version is the actively developed version now.
https://github.com/scottalford75/Remora-RT1052-cpp
For flashing, CMSIS-DAP probes have proven to be the most reliable with pyOCD. CMSIS-DAP converted ST-Link or a PicoProbe is the way to go.
https://forum.linuxcnc.org/18-computer/44828-remora-ethernet-nvem-cnc-board?start=970#275842
$ pyocd flash remora-rt1052-1.1.0.bin --target mimxrt1050_quadspi
0000540 I Loading /Users/slawekgonet/Projects/cnc-router-eg/nvem/Remora-RT1052-cpp/Firmware/remora-rt1052-1.1.0.bin [load_cmd]
[==================================================] 100%
0082821 I Erased 327680 bytes (5 sectors), programmed 321536 bytes (1256 pages), skipped 0 bytes (0 pages) at 3.82 kB/s [loader]
Thank you!
@scottalford75 I managed to get my NVEM v5 (ethernet variant) flashed and got it talking to LinuxCNC machine.
Is there a HOWTO/quick start/documentation somewhere? I am lost a bit with various repositories, not sure where to start with my board.
./remora-eth.hal:13: Pin 'remora.SPI-enable' does not exist
.https://github.com/scottalford75/Remora-RT1052-cpp/tree/main/LinuxCNC/remora-rt1052-basic
seems to have only remora-ec500.ini
and it crashes after remora-nv: dlopen: /usr/lib/linuxcnc/modules/remora-nv.so: cannot open shared object file: No such file or directory
Unfortunately, after trying to follow: https://www.forum.linuxcnc.org/18-computer/44828-remora-ethernet-nvem-cnc-board?start=130#240435
linuxcnc@linuxcnc:~/Remora/LinuxCNC/ConfigSamples/remora-nvem$ python3 -m venv venv
(venv) linuxcnc@linuxcnc:~/Remora/LinuxCNC/ConfigSamples/remora-nvem$ sudo apt install python3-dev python3-wheel
(venv) linuxcnc@linuxcnc:~/Remora/LinuxCNC/ConfigSamples/remora-nvem$ pip install wheel
(venv) linuxcnc@linuxcnc:~/Remora/LinuxCNC/ConfigSamples/remora-nvem$ pip install tftpy
$ python3 upload_config.py config.txt
Valid JSON config file, uploading to NVEM board
Config file length (words) = 1775
Config file length (bytes) = 7099
Remainder = 3
Padding added = [0]
Config file length with padding (bytes) = 7100
CRC-32 = 0x95ee3542
My board is no longer responding on 10.10.10.10. Re-flashing the firmware also did not help:
(venv) slawekgonet@MacBook-Pro ~/Projects/cnc-router-eg/nvem/Remora-RT1052-cpp/Firmware (main?) $ pyocd flash remora-rt1052-1.1.0.bin --target mimxrt1050_quadspi
0000804 I Loading /Users/slawekgonet/Projects/cnc-router-eg/nvem/Remora-RT1052-cpp/Firmware/remora-rt1052-1.1.0.bin [load_cmd]
[==================================================] 100%
0031278 I Erased 0 bytes (0 sectors), programmed 0 bytes (0 pages), skipped 321536 bytes (1256 pages) at 10.30 kB/s [loader]
Is it dead? :)
Managed to clear it and re-flash:
$ pyocd erase --chip --target mimxrt1050_quadspi
0000628 I Erasing chip... [eraser]
0010539 I Chip erase complete [eraser]
0010546 E Error during board uninit: [session]
(venv) slawekgonet@MacBook-Pro ~/Projects/cnc-router-eg/nvem/Remora-RT1052-cpp/Firmware (main?) $ pyocd flash remora-rt1052-1.1.0.bin --target mimxrt1050_quadspi
0000551 I Loading /Users/slawekgonet/Projects/cnc-router-eg/nvem/Remora-RT1052-cpp/Firmware/remora-rt1052-1.1.0.bin [load_cmd]
[==================================================] 100%
0082812 I Erased 327680 bytes (5 sectors), programmed 321536 bytes (1256 pages), skipped 0 bytes (0 pages) at 3.82 kB/s [loader]
Then loaded nvem-rt1052.txt
config:
(venv) slawekgonet@MacBook-Pro ~/Projects/cnc-router-eg/nvem/Remora-RT1052-cpp/LinuxCNC (main?) $ python3 remora-rt1052-basic/upload_config.py nvem-rt1052.txt
Valid JSON config file, uploading to board
Config file length (words) = 1702
Config file length (bytes) = 6805
Remainder = 1
Padding added = [0, 0, 0]
Config file length with padding (bytes) = 6808
CRC-32 = 0xf73bb8c1
Now it is alive, haven't connected motors yet but quick check with oscilloscope shows some action on STEP pins. Issues I am facing immediately:
joint 2 following error
after one second or so.remora.NVMPGinput.*
HAL nodes are OFF).
Hey,
I recently purchased NVEM v5 with hopes of getting it to work with LinuxCNC via Remora. But after spending whole day going through LinuxCNC forum, trying every combination of hardware and software I was not able to achieve anything I am ready to give up.
But before I do, if possible, are you able to sum up:
So far I tried:
Flash NVEM v5 using ST-Link v2
st-info --probe
on Mac andST-Link Utility
on Windows, I was never able to get NVEM v5 MCU recognizedTry to flash ST-Link with CMSIS-DAP firmware
Try to flash ST-Link with now-removed-from-git DSP firmware
bl
part flashed (https://github.com/scottalford75/Remora-RT1052/blob/b21f8d0a756cab4ce4e7f61d03515d68f3da1c8c/DAPLink/stm32f103xb_bl.bin) flashed, but was not able to flash the second file onto DAP-Link (after reboot drive was still calledMAINTENANCE
with additional fileFAIL.TXT
:error: In application programming write failed. type: interface
)--
In any case - thank you for your work!