Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
16 Aug 2021 00:26 - 16 Aug 2021 00:28 #217851 by mhel
Oh that one was when the gain was set to 5.0, I edited that post after I tried
the gain of 10.0. Althought the 5.0 setting improves a lot, this one is better.

streamable.com/ix3rz1
Last edit: 16 Aug 2021 00:28 by mhel.

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

More
18 Aug 2021 12:51 #218070 by Roiki
Would it be technically possible to make remora into a usable can interface for Linuxcnc?

Many microcontrollers have can. Linuxcnc currently doesn't. Or use it to hook up custom electronics such as encoder counters?

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

More
19 Aug 2021 22:13 #218183 by scotta
Hi, both software encoder counters and the LPC1768 QEI hardware encoder have modules in Remora. Theoretically we can create a module for any of the available hardware on the microcontroller.

I've got an STM32F407 sitting beside me, it's got even more peripheral options. Just need to get mbed working with it...

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

More
20 Aug 2021 17:48 #218250 by Roiki
i was more interested in using chips like ls7366r or ic-md for high speed encoders. and you could use multiple ics for multiple encoders. and also using the embedded can interface for connecting to motors and such.

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

More
20 Aug 2021 18:05 #218252 by Bari
You should start a new thread asking about using CAN.

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

More
20 Aug 2021 18:08 #218253 by Aaroncnc
Will be interesting to see what chips this will support and the unique inputs they offer.

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

More
22 Aug 2021 16:15 - 22 Aug 2021 16:17 #218417 by gtt38

Hi, both software encoder counters and the LPC1768 QEI hardware encoder have modules in Remora. Theoretically we can create a module for any of the available hardware on the microcontroller.

I've got an STM32F407 sitting beside me, it's got even more peripheral options. Just need to get mbed working with it..



 

I just received my SKR 2 so now i can help you.
we should create a github repo. Which version of OS Mbed are you using ? (or trying to use)
Last edit: 22 Aug 2021 16:17 by gtt38.

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

More
24 Aug 2021 06:06 #218587 by scotta

Hi, both software encoder counters and the LPC1768 QEI hardware encoder have modules in Remora. Theoretically we can create a module for any of the available hardware on the microcontroller.

I've got an STM32F407 sitting beside me, it's got even more peripheral options. Just need to get mbed working with it..



 
I just received my SKR 2 so now i can help you.
we should create a github repo. Which version of OS Mbed are you using ? (or trying to use)

Hi, I'm using OS5 and now have a custom target working when flashing with an ST-Link to the base address of 0x08000000. When re-flashing the standard bootloader (take an image of the MCU before blowing it away... yes I had to search hi and low for a copy on line), and changing the target.mbed_app_start to 0x08008000, which is the bootloader jump. The app fails... This may be due to the VECT_TAB offset but still trying to figure this out. Once I have a working "hello world" loading from SD card, I can move on to the SPI port. The rest should be straight forward using the work that Rommel has already done.

Any help getting the "Hello world" working would be appreciated.

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

More
24 Aug 2021 21:36 - 24 Aug 2021 21:37 #218643 by scotta
I've created a repo for the STM32 SKRv2 development work.

github.com/scottalford75/SKRV2-Mbed-OS5
 
Last edit: 24 Aug 2021 21:37 by scotta.
The following user(s) said Thank You: Bari

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

More
24 Aug 2021 21:44 - 25 Aug 2021 21:57 #218644 by mhel
Hi Scott,
This might be of interest.
github.com/GadgetAngel/BTT_SKR_13_14_14T...R%20V2.0%20(SKR%202)

I managed to get the bootloader working.
Apparently you also have to change the VECT_TAB_OFFSET.

#define VECT_TAB_OFFSET  0x8000 /*!< Vector Table base offset field.
                                   This value must be a multiple of 0x200. */

Edit this is my linker memory config:
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 1024K-32K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 192K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}


It took me a while and a whole lot of ducking (duckduckgo user since 10yrs).
The VEC_TAB_OFFSET is what make it worked.
Attachments:
Last edit: 25 Aug 2021 21:57 by mhel. Reason: grammar check

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

Time to create page: 0.153 seconds
Powered by Kunena Forum