Remora - ethernet NVEM / EC300 / EC500 cnc board

More
01 Sep 2024 00:14 #309120 by scotta

cakeslob post=308763 userid=25269

I've also had no luck with an out of the box STLinkV2. But ColdTurkey has got it to work

pyocd.io/docs/debug_probes.html

"Recent STLink firmware versions will only allow access to STM32 targets. If you are using a target from a silicon vendor other than ST Micro, please use a different debug probe."

If you have a couple of probes you can always flash one with the following firmware.

github.com/scottalford75/Remora-RT1052/tree/main/CMSIS-DAP


ok, so pyocd, CMSIS-DAP firmware, stlink
give me some more notes, im trying to do a docs thing
github.com/cakeslob/Remora-docs/blob/mas.../Ethernet/rt1052.rst
 
I'm a bit confused about the pins for the encoder. PE pins were for the STM, as far as I know the pins on the RT1052 are labeled differently.

Hi, the following example config has the pin information that you are looking for.

github.com/scottalford75/Remora-RT1052-c...0-rt1052-DMA-ENC.txt
 

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

More
01 Sep 2024 00:18 #309121 by scotta

  Thx for your answer. I tried the linked version...still the same error, no ping possible.
but I am on the stm32nvem... i tried the rt version because i wasn't sure, if you are going do build it for both. It is my fault, but it's a bit confusing with all the different models.
I flashed the stm Version1.0.0 again...this works fine.

I have a gantry machine and need two Y axes and an additional b axis..but with the basic config of the nvem, i always get machine errors. So i need to the full config, or i am wrong.

I tried to connect via ftp to upload manually, but no luck(on 10.10.10.10 via port 69)...host is not listening. and the upload script times out everytime.
When i connect I can move my basic axes without problems. Maybe you can compile a Version with full config on github.


 

Hi, yes you will need the full config.

You cannot manually upload the config file. You need to use the python script "upload_config.py" as the script inserts metadata and pads the JSON file to 4 byte boundaries.

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

More
01 Sep 2024 12:24 - 01 Sep 2024 13:24 #309144 by qaywsxedc
Hi,
i finally could upload it...i did it this time all in windows. I erased the chip and flashed the 1.0.0. And maybe the older python version did the trick. I don't know... No timeout and works like a charme. Thank you!
Last edit: 01 Sep 2024 13:24 by qaywsxedc.

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

More
04 Sep 2024 16:27 - 04 Sep 2024 19:09 #309367 by aDm1N
Does anyone have a tip as to what I'm doing wrong?

cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd list
  #   Probe/Board               Unique ID   Target  
----------------------------------------------------
  0   Segger J-Link (unknown)   123456      n/a     
cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi
0004519 C Memory transfer fault (Unspecified error.) [__main__]
nc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd list
  #   Probe/Board             Unique ID                                          Target         
------------------------------------------------------------------------------------------------
  0   ARM DAPLink CMSIS-DAP   070000811a5a5bb50000000001ef41eca5a5a5a597969908   ✖︎ stm32f103rb  
      NUCLEO-F103RB                                                                             
cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi
0002174 C No ACK received [__main__]
cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd list
  #   Probe/Board    Unique ID                  Target  
--------------------------------------------------------
  0   STM32 STLink   14001B00172D363637365744   n/a     
cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi
0001768 C STLink error (9): Get IDCODE error [__main__]


I still have an ST-link to test. I'll install the other firmware later. Unfortunately another ST-Link broke during the attempt.

 
[code]pyocd pack install stm32f103rb
0001542 I No pack index present, downloading now... [pack_cmd]
Downloading packs (press Control-C to cancel):
    Keil.STM32F1xx_DFP.2.4.1
Downloading descriptors (001/001)
cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd list
  #   Probe/Board             Unique ID                                          Target         
------------------------------------------------------------------------------------------------
  0   ARM DAPLink CMSIS-DAP   070000811a5a5bb50000000001ef41eca5a5a5a597969908   ✔︎ stm32f103rb  
      NUCLEO-F103RB
cnc@MiniDrehbank:~/linuxcnc/Remora-RT1052-cpp/Firmware$ pyocd flash remora-rt1052-3.1.3.bin --target mimxrt1050_quadspi
0002174 C No ACK received [__main__]


still no luck
[/code]
Last edit: 04 Sep 2024 19:09 by aDm1N.

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

More
04 Sep 2024 19:42 #309376 by jjdege
Sorry
I don't know if the question is relevant to the thread.
I have a Leafboy EDG 381 with STM32F407V

 

and I was asking for the transformation with REMORA
is it a possible way

thanks
Attachments:

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

More
04 Sep 2024 21:03 #309380 by scotta
Remora is running on STM32F4 boards, but the Leafboy board uses a DP83848 Ethernet PHY chip. The ethernet version of Remora for the STM32 uses a different PHY chip so cannot be used directly.
The following user(s) said Thank You: jjdege

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

More
06 Sep 2024 14:46 #309502 by aDm1N
Does anyone else have a tip as to what I'm doing wrong? I haven't found anything on the net until now. STLink with the instructions here from the thread didn't work, stlink with the hex file here from the thread flashed successfully, according to the display. NVEM v5 - Flashing not possible. I tried with DAP-link, J-Link, ST-Link v2 standard, firmware update and firmware from github. The result was the same every time, regardless of whether it was from the Raspberry Pi or with Windows 10. Either the board is fundamentally different, which I don't believe since it was recognized, or the programmers from AliExpress are all unusable.

the error messages are:
C STLink error (9): Get IDCODE error [__main__]
C Unexpected ACK value (0) returned by probe [__main__]
C Memory transfer fault (Unspecified error.) [__main__]
 

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

More
17 Sep 2024 13:33 #310310 by xaxexa
Hello everyone, please help me configure the pin index, on the NVEM v2, RT1052, I need speed feedback from the spindle driver - this is one pulse input, I can't figure out which encoder modules to choose and what's the difference anyway


txt

"Thread": "Base",
"Type": "QDC",
"Comment": "SPINDEL ENCODER",
"PV": 0,
"Data Bit": 24,
"ChA Pin": "P3_22",
"ENC No": 1,
"Filter PER": 10,
"Filter CNT": 4

Hal file
loadrt PRUencoder names=SPencoder
addf PRUencoder.capture-position servo-thread
setp SPencoder.position-scale 6
net encoder-count <= remora.PV.0 => SPencoder.raw_count

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

More
17 Sep 2024 20:36 #310346 by scotta
Hi, the encoder module is for a quadrature encoder, ie A and B channels required.

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

More
17 Sep 2024 21:23 #310347 by xaxexa
as I understand it, the documentation suggests using QEI Encoder, but I didn't find this module anywhere in the rt1052 cpp sources, is there a non-quadrature encoder in rt1052 cpp? and if possible an example of a txt file

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

Time to create page: 0.596 seconds
Powered by Kunena Forum