Remora - ethernet NVEM / EC300 / EC500 cnc board

More
28 Aug 2023 19:03 #279196 by zmrdko
Are you using steppers with no feedback?

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

More
28 Aug 2023 19:37 #279199 by Murphy
Iv gotten my homing switches as limit switches and works ok. But the lathe also has a prox sensor which would be much more accurate. I have added the following lines to the ini and Hal. It finds the limit switch and then goes looking for the prox. The prox triggers and it also triggers in hal but it dosnt trigger as home and keeps searching till it bottoms out. Any ideas? I'm on Linux 2.10
The prox by the way is a pulse from the encoder, triggers every full turn of the stepper. Pulse is on input.07
Attachments:

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

More
29 Aug 2023 05:51 #279256 by scotta
The following user(s) said Thank You: Murphy

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

More
29 Aug 2023 17:38 #279303 by Murphy
Thanks for the link Scott,got it working. Thats the homing/limits, axis and spindle working. On to the tool turret now. also is there an encoder in remora fast enough for a spindle ?

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

More
29 Aug 2023 21:19 #279320 by scotta
Great to hear! On the RT1052 boards the software encoder module is the only one available at the moment. Hardware encoder counting is on the to do list.
The following user(s) said Thank You: Murphy

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

More
31 Aug 2023 20:44 #279512 by GeramyL
Hey guys what do you think I can do to recover this EC500 board? I’ve got no ack if I use daplink or esp board with wifi dap no matter what I do this happened after I flashed and debugged it than after that it was working and I restarted it and now no activity in the Ethernet or dap, solid two red lights. How can I recover this?

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

More
31 Aug 2023 21:42 #279518 by scotta
A couple of things to try

1. Turn the power onto the board whilst trying to connect
2. Jumper the BOOT pin and 3.3v and then turn on the board, try to connect.

On the EC300 there is a boot button which on occasion I've had to use to change the boot mode to allow a connection. Haven't had the issue with the EC500 though.

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

More
01 Sep 2023 00:51 #279529 by GeramyL
now i get the following using pyocd and my esp wifi dap link.
there is also a PRO_B pin too.

sudo pyocd flash remora-rt1052-EC500-beta.bin --target mimxrt1050_quadspi
0004674:ERROR:rom_table:Error attempting to probe CoreSight component referenced by ROM table entry #0: Unexpected ACK value (0) returned by probe
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 356, in _read_table
self._handle_table_entry(entry, entryNumber)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 406, in _handle_table_entry
cmpid.read_id_registers()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 111, in read_id_registers
regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/concurrency.py", line 28, in _locking
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/ap.py", line 1082, in _read_memory_block32
resp += self._read_block32_page(addr, n//4)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/ap.py", line 1040, in _read_block32_page
resp = self.dp.read_ap_multiple(self.address.address + self._reg_offset + MEM_AP_DRW, size)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/dap.py", line 778, in read_ap_multiple
return read_ap_multiple_cb()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/dap.py", line 768, in read_ap_multiple_cb
return result_cb()
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/cmsis_dap_probe.py", line 318, in read_ap_repeat_callback
six.raise_from(self._convert_exception(exc), exc)
File "/usr/lib/python2.7/dist-packages/six.py", line 737, in raise_from
raise value
TransferError: Unexpected ACK value (0) returned by probe
0005375:CRITICAL:__main__:bytearray index out of range
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pyocd/__main__.py", line 401, in run
self._COMMANDS[self._args.cmd](self)
File "/usr/local/lib/python2.7/dist-packages/pyocd/__main__.py", line 571, in do_flash
with session:
File "/usr/local/lib/python2.7/dist-packages/pyocd/core/session.py", line 343, in __enter__
self.open()
File "/usr/local/lib/python2.7/dist-packages/pyocd/core/session.py", line 461, in open
self._board.init()
File "/usr/local/lib/python2.7/dist-packages/pyocd/board/board.py", line 85, in init
self.target.init()
File "/usr/local/lib/python2.7/dist-packages/pyocd/core/soc_target.py", line 117, in init
seq.invoke()
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/sequencer.py", line 219, in invoke
resultSequence.invoke()
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/sequencer.py", line 219, in invoke
resultSequence.invoke()
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/sequencer.py", line 214, in invoke
resultSequence = call()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/ap.py", line 1131, in find_components
super(AHB_AP, self).find_components()
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/concurrency.py", line 28, in _locking
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/ap.py", line 744, in find_components
self.rom_table.init()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 279, in init
self._read_table()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 356, in _read_table
self._handle_table_entry(entry, entryNumber)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 419, in _handle_table_entry
cmp.init()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 279, in init
self._read_table()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 356, in _read_table
self._handle_table_entry(entry, entryNumber)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 406, in _handle_table_entry
cmpid.read_id_registers()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/rom_table.py", line 111, in read_id_registers
regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/concurrency.py", line 28, in _locking
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/ap.py", line 1082, in _read_memory_block32
resp += self._read_block32_page(addr, n//4)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/ap.py", line 1040, in _read_block32_page
resp = self.dp.read_ap_multiple(self.address.address + self._reg_offset + MEM_AP_DRW, size)
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/dap.py", line 778, in read_ap_multiple
return read_ap_multiple_cb()
File "/usr/local/lib/python2.7/dist-packages/pyocd/coresight/dap.py", line 768, in read_ap_multiple_cb
return result_cb()
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/cmsis_dap_probe.py", line 316, in read_ap_repeat_callback
return result()
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 888, in reg_read_repeat_cb
res = transfer.get_result()
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 141, in get_result
self.daplink._read_packet()
File "/usr/local/lib/python2.7/dist-packages/pyocd/utility/concurrency.py", line 28, in _locking
return func(self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 932, in _read_packet
decoded_data = cmd.decode_data(raw_data)
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 452, in decode_data
data = self._decode_transfer_data(data)
File "/usr/local/lib/python2.7/dist-packages/pyocd/probe/pydapaccess/dap_access_cmsis_dap.py", line 355, in _decode_transfer_data
if data[0] != Command.DAP_TRANSFER:
IndexError: bytearray index out of range

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

More
01 Sep 2023 01:11 #279530 by GeramyL
I was able to get openocd to connect and i get this now.

> reset init
SWD DPIDR 0x0bd11477
SWD DPIDR 0x0bd11477
Failed to read memory at 0xe0002004
[imxrt1050] Failed to enable the FPB
TARGET: imxrt1050 - Not halted
Polling target imxrt1050 failed, trying to reexamine
SWD DPIDR 0x0bd11477
Examination failed, GDB will be halted. Polling again in 100ms
SWD DPIDR 0x0bd11477
Polling target imxrt1050 failed, trying to reexamine
[imxrt1050] Cortex-M7 r1p1 processor detected
SWD DPIDR 0x0bd11477
Failed to write memory and, additionally, failed to find out where
SWD DPIDR 0x0bd11477
[imxrt1050] target has 8 breakpoints, 4 watchpoints

 

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

More
01 Sep 2023 01:21 #279535 by GeramyL
> reset halt
SWD DPIDR 0x0bd11477
SWD DPIDR 0x0bd11477
[imxrt1050] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00201414 msp: 0x20201000
Polling target imxrt1050 failed, trying to reexamine
SWD DPIDR 0x0bd11477
[imxrt1050] Cortex-M7 r1p1 processor detected
[imxrt1050] target has 8 breakpoints, 4 watchpoints

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

Time to create page: 0.222 seconds
Powered by Kunena Forum