Remora - ethernet NVEM cnc board

More
23 Jul 2023 17:48 #276093 by raf1110
Same result :(
I am suspecting LAN on card is not responding not sure if LED should blink after plugging same as when connected to PC.
Same with rs232 there is nothing in terminal. In video he is showing that after flash and run there is response from rs232 which I didn't found. That made me concerned if I flashed correctly but when uploaded there was no error.(see my previous posts)
Maybe should return and reflash bin file and restart from there?

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

More
23 Jul 2023 21:37 #276112 by scotta
Ok, maybe work through this one step at a time.

1. First ensure that your RS232 adaptor is working correctly. Loop TX to RX and confirm you get a reply when you send something from Realterm or which ever terminal you are using. Setting is 8N1 115200 baud

2. Connect your RS232 adaptor. TX -> RX and RX -> TX

3. Flash the board and confirm debug serial output

4. Move on to Ethernet connection, no special cable needed for direct connection to the PC

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

More
24 Jul 2023 17:38 - 24 Jul 2023 17:39 #276159 by raf1110
So  there it is... I have checked rs232 adaptor connection and working on other device
Board flashed successfully from bin file log attached

stmlink v2 showing maintanace not rt1052

# DAPLink Firmware - see daplink.io
Build ID: v0257-15-gd2db0d5b (gcc, local mods)
Unique ID: 00000000066eff495356675287124206a5a5a5a597969908
HIC ID: 97969908
Auto Reset: 0
Automation allowed: 1
Overflow detection: 0
Incompatible image detection: 0
Page erasing: 0
Daplink Mode: Bootloader
Bootloader Version: 0258
Interface Version: 0258
Git SHA: d2db0d5b6f8857aa2106dfc0f5c25ce9b26387f1
Local Mods: 1
USB Interfaces: MSD
Bootloader CRC: 0xd5180591
Interface CRC: 0xc9e070d0
Remount count: 0
URL: daplink.io


log from flash:

Executing flash operation 'Program' (Program file into flash: remora-rt1052-1.1.0.bin) - Mon Jul 24 17:43:08 BST 2023
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.7 (Mar 22 2023 09:52:55 - crt_emu_cm_redlink.exe build 13)
(  0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in C:/Users/rasta/Documents/MCUXpressoIDE_11.7.1_9221/workspace/remora-rt1052/Debug\MIMXRT1052xxxxB.xml
(  5) Remote configuration complete
Reconnected to existing LinkServer process.
============= SCRIPT: RT1050_connect.scp =============
RT1050 Connect Script
DpID = 0BD11477
APID = 0x04770041
Disabling MPU
Configure FlexRAM for 256KB OC RAM, 128KB I-TCM, 128KB D-TCM
Finished
============= END SCRIPT =============================
Probe Firmware: CMSIS-DAP v1 (Arm)
Serial Number:  02270b03066eff495356675287124206a5a5a5a597969908
VID:PID:  0D28:0204
USB Path: \\?\hid#vid_0d28&pid_0204&mi_03#a&383eca04&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type      = CoreSight DP (DAP DP ID 0BD11477) over SWD TAP 0
processor type            = Cortex-M7 (CPU ID 00000C27) on DAP AP 0
number of h/w breakpoints = 8
number of flash patches   = 0
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 0BD11477. CpuID: 00000C27. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FD000: CID B105100D PID 000008E88C ROM (type 0x1)
ROM 1 E00FE000: CID B105100D PID 04000BB4C8 ROM (type 0x1)
ROM 2 E00FF000: CID B105100D PID 04000BB4C7 ROM (type 0x1)
ROM 3 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)
ROM 3 E0001000: CID B105E00D PID 04000BB002 Gen DWT (type 0x0)
ROM 3 E0002000: CID B105E00D PID 04000BB00E Gen (type 0x0)
ROM 3 E0000000: CID B105E00D PID 04000BB001 Gen ITM (type 0x0)
ROM 2 E0041000: CID B105900D PID 04001BB975 CSt ARM ETMv4.0 type 0x13 Trace Source - Core
ROM 2 E0042000: CID B105900D PID 04004BB906 CSt type 0x14 Debug Control - Trigger, e.g. ECT
ROM 1 E0040000: CID B105900D PID 04000BB9A9 CSt type 0x11 Trace Sink - TPIU
ROM 1 E0043000: CID B105F00D PID 04001BB101 Sys (type 0x0)
NXP: MIMXRT1052xxxxB
DAP stride is 1024 bytes (256 words)
Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1050_SFDP_QSPI.cfx
Image 'iMXRT1050_SFDP_QSPI Mar 21 2023 13:24:31'
Opening flash driver MIMXRT1050_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (4MB = 64*64K at 0x60000000)
Closing flash driver MIMXRT1050_SFDP_QSPI.cfx
( 65) Chip Setup Complete
Connected: was_reset=false. was_stopped=true
( 70) License Check Complete
Loading 'remora-rt1052-1.1.0.bin' Binary 0x60000000 len 0x30F2B
Opening flash driver MIMXRT1050_SFDP_QSPI.cfx (already resident)
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (4MB = 64*64K at 0x60000000)
Writing 200492 bytes to address 0x60000000 in Flash
(  0) Mass erasing Flash
Mass erased flash in 10513msec
1 of 1 (  0) Writing sectors 0-3 at 0x60000000 with 200492 bytes
(  0) at 60000000: 0 bytes - 0/200492
(  8) at 60000000: 16384 bytes - 16384/200492
( 16) at 60004000: 16384 bytes - 32768/200492
( 24) at 60008000: 16384 bytes - 49152/200492
( 32) at 6000C000: 16384 bytes - 65536/200492
( 40) at 60010000: 16384 bytes - 81920/200492
( 49) at 60014000: 16384 bytes - 98304/200492
( 57) at 60018000: 16384 bytes - 114688/200492
( 65) at 6001C000: 16384 bytes - 131072/200492
( 73) at 60020000: 16384 bytes - 147456/200492
( 81) at 60024000: 16384 bytes - 163840/200492
( 89) at 60028000: 16384 bytes - 180224/200492
( 98) at 6002C000: 16384 bytes - 196608/200492
(100) at 60030000: 16384 bytes - 212992/200492
Sectors written: 4, unchanged: 0, total: 4
Wrote sector 0-3 with 200492 bytes in 8497msec
Closing flash driver MIMXRT1050_SFDP_QSPI.cfx
(100) Finished writing Flash successfully.
Flash Write Done
Loaded 0x30F2B bytes in 19294ms (about 10kB/s)
Reset target (system)
Starting execution using system reset

I had no response from serial tho 

     


 
Attachments:
Last edit: 24 Jul 2023 17:39 by raf1110. Reason: pictures adding

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

More
25 Jul 2023 22:34 #276269 by scotta
I've just hooked the NVEM back up to the test bench to confirm on the same hardware. All working as expected including serial output.

Your size of the file you are flashing looks wrong. Output below from flashing with MCUXpresso GUI Flash tool. Image size is 321392 bytes where your output is 200492 bytes..?
Probe Firmware: CMSIS-DAP HID (X893 ARM)
Serial Number:  0001A0000000
VID:PID:  C251:F001
USB Path: \\?\hid#vid_c251&pid_f001&mi_02#8&17b4f521&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type      = CoreSight DP (DAP DP ID 0BD11477) over SWD TAP 0
processor type            = Cortex-M7 (CPU ID 00000C27) on DAP AP 0
number of h/w breakpoints = 8
number of flash patches   = 0
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 0BD11477. CpuID: 00000C27. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FD000: CID B105100D PID 000008E88C ROM (type 0x1)
ROM 1 E00FE000: CID B105100D PID 04000BB4C8 ROM (type 0x1)
ROM 2 E00FF000: CID B105100D PID 04000BB4C7 ROM (type 0x1)
ROM 3 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)
ROM 3 E0001000: CID B105E00D PID 04000BB002 Gen DWT (type 0x0)
ROM 3 E0002000: CID B105E00D PID 04000BB00E Gen (type 0x0)
ROM 3 E0000000: CID B105E00D PID 04000BB001 Gen ITM (type 0x0)
ROM 2 E0041000: CID B105900D PID 04001BB975 CSt ARM ETMv4.0 type 0x13 Trace Source - Core
ROM 2 E0042000: CID B105900D PID 04004BB906 CSt type 0x14 Debug Control - Trigger, e.g. ECT
ROM 1 E0040000: CID B105900D PID 04000BB9A9 CSt type 0x11 Trace Sink - TPIU
ROM 1 E0043000: CID B105F00D PID 04001BB101 Sys (type 0x0)
NXP: MIMXRT1052xxxxB
DAP stride is 1024 bytes (256 words)
Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1050_SFDP_QSPI.cfx
Image 'iMXRT1050_SFDP_QSPI Jul  7 2022 12:18:39'
Opening flash driver MIMXRT1050_SFDP_QSPI.cfx
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (4MB = 64*64K at 0x60000000)
Closing flash driver MIMXRT1050_SFDP_QSPI.cfx
( 65) Chip Setup Complete
Connected: was_reset=false. was_stopped=true
( 70) License Check Complete
Loading 'remora-rt1052-1.1.0.bin' Binary 0x60000000 len 0x4E770
Opening flash driver MIMXRT1050_SFDP_QSPI.cfx (already resident)
Sending VECTRESET to run flash driver
Flash variant 'JEDEC_SFDP_Device' detected (4MB = 64*64K at 0x60000000)
Writing 321392 bytes to address 0x60000000 in Flash
1 of 1 (  0) Writing sectors 0-4 at 0x60000000 with 321392 bytes
(  0) at 60000000: 0 bytes - 0/321392
(  5) at 60000000: 16384 bytes - 16384/321392
( 10) at 60004000: 16384 bytes - 32768/321392
( 15) at 60008000: 16384 bytes - 49152/321392
( 20) at 6000C000: 16384 bytes - 65536/321392
( 25) at 60010000: 16384 bytes - 81920/321392
( 30) at 60014000: 16384 bytes - 98304/321392
( 35) at 60018000: 16384 bytes - 114688/321392
( 40) at 6001C000: 16384 bytes - 131072/321392
( 45) at 60020000: 16384 bytes - 147456/321392
( 50) at 60024000: 16384 bytes - 163840/321392
( 56) at 60028000: 16384 bytes - 180224/321392
( 61) at 6002C000: 16384 bytes - 196608/321392
( 66) at 60030000: 16384 bytes - 212992/321392
( 71) at 60034000: 16384 bytes - 229376/321392
( 76) at 60038000: 16384 bytes - 245760/321392
( 81) at 6003C000: 16384 bytes - 262144/321392
( 86) at 60040000: 16384 bytes - 278528/321392
( 91) at 60044000: 16384 bytes - 294912/321392
( 96) at 60048000: 16384 bytes - 311296/321392
(100) at 6004C000: 16384 bytes - 327680/321392
Sectors written: 5, unchanged: 0, total: 5
Erased/Wrote sector 0-4 with 321392 bytes in 20183msec
Closing flash driver MIMXRT1050_SFDP_QSPI.cfx
(100) Finished writing Flash successfully.
Flash Write Done
Loaded 0x4E770 bytes in 20598ms (about 15kB/s)
Reset target (system)
Starting execution using system reset

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

More
25 Jul 2023 22:36 #276270 by scotta
It still looks like your are using the DAPlink firmware. Please change to the CMSIS-DAP firmware on your ST-Link.

github.com/scottalford75/Remora-RT1052/b...SIS-DAP-STLINK21.hex
The following user(s) said Thank You: raf1110

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

More
26 Jul 2023 21:37 - 26 Jul 2023 22:09 #276326 by raf1110
That did work something and I have responses from rs232 terminal , flashing light in ETH socket and below is LinuxCNC config IP a and ping.

 
Is there guide how to find config in linuxcnc.ini? I have seen so much new information I would appreciate some directions from here ofc if it is working in fact. 
Attachments:
Last edit: 26 Jul 2023 22:09 by raf1110.

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

More
28 Jul 2023 05:45 #276433 by scotta
Great to see you have made some progress! A starting point would be to use one of the example configurations and then customise to your installation.

github.com/scottalford75/Remora-NVEM/tre...es/remora-nvem-basic
 

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

More
28 Jul 2023 09:55 #276449 by JAMSys
Good morning,
I would like some advice for the following problem:

After flashing version remora-rt1052-1.1.0.bin I get an Assert Error after boot. I went back to version remora-rt1052-1.0.0.bin and get the same error. Is this a hardware problem?

See the RS232 log after boot:

Remora RT1052 starting

Initializing PHY...

## Entering SETUP state


1. Loading JSON configuration file from Flash memory



2. Parsing JSON configuration file
Config deserialisation - Deserialization succeeded

3. Configuring threads
Creating thread 40000
Creating thread 1000

4. Loading modules

Creating a std module
Creating an Ethernet communication monitoring module
Creating Pin @
port = GPIO3
pin = 0

Base thread object

X - Joint 0 step generator

Creating a std module
Creating Pin @
port = GPIO21
pin = 15
Creating Pin @
port = GPIO21
pin = 14

Base thread object

Y - Joint 1 step generator

Creating a std module
Creating Pin @
port = GPIO21
pin = 13
Creating Pin @
port = GPIO21
pin = 12

Base thread object

Z - Joint 2 step generator

Creating a std module
Creating Pin @
port = GPIO21
pin = 11
Creating Pin @
port = GPIO21
pin = 10

Base thread object

A - Joint 3 step generator

Creating a std module
Creating Pin @
port = GPIO21
pin = 9
Creating Pin @
port = GPIO21
pin = 8

Base thread object

B - Joint 4 step generator

Creating a std module
Creating Pin @
port = GPIO21
pin = 7
Creating Pin @
port = GPIO17
pin = 8

Base thread object

C - Joint 5 step generator

Creating a std module
Creating Pin @
port = GPIO17
pin = 5
Creating Pin @
port = GPIO17
pin = 6

FHA
Make Digital Input at pin PD_12

Creating a std module
Creating Pin @
port = GPIO20
pin = 12

FHB
Make Digital Input at pin PD_13

Creating a std module
Creating Pin @
port = GPIO20
pin = 13

SRO
Make Digital Input at pin PB_14

Creating a std module
Creating Pin @
port = GPIO18
pin = 14

SJR
Make Digital Input at pin PB_15

Creating a std module
Creating Pin @
port = GPIO18
pin = 15

STOP
Make Digital Input at pin PD_8

Creating a std module
Creating Pin @
port = GPIO20
pin = 8

PROBE
Make Digital Input at pin PD_9

Creating a std module
Creating Pin @
port = GPIO20
pin = 9

INP3
Make Digital Input at pin PD_10

Creating a std module
Creating Pin @
port = GPIO20
pin = 10

INP4
Make Digital Input at pin PD_11

Creating a std module
Creating Pin @
port = GPIO20
pin = 11

INP5
Make Digital Input at pin PD_14

Creating a std module
Creating Pin @
port = GPIO20
pin = 14

INP6
Make Digital Input at pin PD_15

Creating a std module
Creating Pin @
port = GPIO20
pin = 15

INP7
Make Digital Input at pin PC_6

Creating a std module
Creating Pin @
port = GPIO19
pin = 6

INP8
Make Digital Input at pin PC_7

Creating a std module
Creating Pin @
port = GPIO19
pin = 7

INP9
Make Digital Input at pin PC_8

Creating a std module
Creating Pin @
port = GPIO19
pin = 8

INP10
Make Digital Input at pin PC_9

Creating a std module
Creating Pin @
port = GPIO19
pin = 9

INP11
Make Digital Input at pin PA_11

Creating a std module
Creating Pin @
port = GPIO17
pin = 11

INP12
Make Digital Input at pin PA_12

Creating a std module
Creating Pin @
port = GPIO17
pin = 12

INDEX
Make Digital Input at pin PC_15

Creating a std module
Creating Pin @
port = GPIO19
pin = 15
ASSERT ERROR " instance < ARRAY_SIZE(s_gpioBases) ": file "fsl_gpio.c" Line "60" function name "GPIO_GetInstance"

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

More
28 Jul 2023 21:16 #276482 by scotta
It looks like you are using a config file for an STM32 board where the ports are designated with a letter, like PD_12. The RT1052 config file needs the ports to be addressed with a number, like P1_22.

Please use the example configuration files from the RT1052 repo.

github.com/scottalford75/Remora-RT1052-cpp/tree/main/LinuxCNC
The following user(s) said Thank You: JAMSys

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

More
29 Jul 2023 02:50 #276508 by frayja2002
Sorry if I am asking another dumb question here but...

I have flashed an EC500 pwba with Remora-RT1052-cpp-main (as opposed to Remora-RT1052)

I can ping the board & take it out of Estop, but when I try to upload a config file with...
python3 upload_config.py ec500-rt1052.txt
It says no tftpy module found.

Here is the full text of the install & error....

(Sat Jul-29)-(40K in 5 files)-(alex:~/01_install/Remora-RT1052-cpp-main/LinuxCNC)
(12:10:32pm)> pip install tftpy
Collecting tftpy
Downloading files.pythonhosted.org/packages/c1/8f/43...4/tftpy-0.8.2.tar.gz
Building wheels for collected packages: tftpy
Running setup.py bdist_wheel for tftpy ... done
Stored in directory: /home/alex/.cache/pip/wheels/7e/76/31/0b8b0c463d90688eb47f9326beaaf1232aa9f009a8d1843d99
Successfully built tftpy
Installing collected packages: tftpy
Successfully installed tftpy-0.8.2
(Sat Jul-29)-(40K in 5 files)-(alex:~/01_install/Remora-RT1052-cpp-main/LinuxCNC)
(12:11:04pm)> python3 upload_config.py ec500-rt1052.txt
Traceback (most recent call last):
File "upload_config.py", line 7, in <module>
import tftpy
ModuleNotFoundError: No module named 'tftpy'


Thanks in advance.

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

Time to create page: 0.860 seconds
Powered by Kunena Forum