Remora - ethernet

More
4 years 9 months ago - 4 years 9 months ago #231309 by AlessandroEmm
Replied by AlessandroEmm on topic Remora - ethernet
Any success on the DMA yet? :-)

EDIT: Are there instructions on how to import your project into the mbed IDE? I tried but somehow cant figure it out naturally.

So far i forked your repo and imported that.
Last edit: 4 years 9 months ago by AlessandroEmm. Reason: further question

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

More
4 years 9 months ago #231347 by scotta
Replied by scotta on topic Remora - ethernet

Any success on the DMA yet? :-)

EDIT: Are there instructions on how to import your project into the mbed IDE? I tried but somehow cant figure it out naturally.

So far i forked your repo and imported that.
Hi, no updates for the repo for a while. Sorry. I still need to push up the interrupt code but still no luck with SPI DMA.

I'm also a little distracted by a new ethernet enabled controller board. So trying to figure out the class structure to allow for SPI, w5500 and native ethernet in the code base and to use the config.txt file to configure the comms to either a RPi (via SPI) or over ethernet (w5500 or native). The repo fork is a real hack at the moment to prove that ethernet works. 

The servo thread period need to be increase when using the w5500 due to the transfer time between the MCU and w5500. Lots of idle time when not using DMA.

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

More
4 years 9 months ago - 4 years 9 months ago #231348 by scotta
Replied by scotta on topic Remora - ethernet
Below is the logic analyser output with the w5500 with interrupts. You can see the SPI bytes on the second channel with wasted time between them.

Bottom two channels are the LinuxCNC component read (read request + data out) and write (data + acknowledge message back) functions in action. With native ethernet these should be super short and back to a normal servo thread period.

 
Last edit: 4 years 9 months ago by scotta.
The following user(s) said Thank You: tommylight, satsuma

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

More
4 years 9 months ago #231375 by cakeslob
Replied by cakeslob on topic Remora - ethernet

Any success on the DMA yet? :-)

EDIT: Are there instructions on how to import your project into the mbed IDE? I tried but somehow cant figure it out naturally.

So far i forked your repo and imported that.

I do it pretty half assed, because there is a source control option, but since i dont know how to use a computer here is my shitty way

git clone the repo, and unpack it
In mbed studio
-open workspace at directory location "Remora/Firmware/FirmwareSource/Remora-OS5/"
-under library , it wants you to fix mbed 5.15 (the button looks like a refresh button)
fix the lib but do NOT update it to mbed 6.
-once the lib is fixed, it will allow you to select your target from the side menu

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

More
4 years 9 months ago #231392 by scotta
Replied by scotta on topic Remora - ethernet
Hi cakeslob, thanks for sharing and spot on. Not half assed at all.

I use Gitkracken to handle the git side of things and do exactly as you've described when changing workspaces.

I really need to do some work on the docs to add this, maybe even a short YouTube how to. The docs are getting a bit out of date now with the recent developments for STM32 etc.

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

More
4 years 4 months ago #246374 by satsuma
Replied by satsuma on topic Remora - ethernet
Hi scotta, I really like your work. I tried to run it, but linuxcnc always gives an error, and I would like to ask for help. Hardware: W5500+SKR1.3 and followed all the instructions. I will share the error line soon.

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

Time to create page: 0.208 seconds
Powered by Kunena Forum