Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
5 years 1 month ago #220176 by scotta

Hi Scotta, sorry I meant you comment

"There is also a new version of the LinuxCNC Remora component which uses a different SPI transfer function and that for the LPC176x."

is this for the Pi side or sd card side,

thank you
It's slightly different in the LinuxCNC Remora component as the STM32 has a different Chip Select logic (better IMO). I've run the board for days now without a hint of errors on the SPI bus.

On the STM32F4 side, yes there will be a different module for access the SD card. On the SKRv2 the SD card is on the SDIO interface rather than an SPI interface. There is no out of the box Mbed support for the SDIO interface but I've managed to read in the config.txt this week. It just interfered with the the SPI comms for some reason.. working this one out. One step at a time...

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

More
5 years 1 month ago #220180 by Aaroncnc

scotta post=220174 userid=24854

Aaroncnc post=220009 userid=24455i am interested in the stm32 port.
do you think it will be better than the LPC based on speeds and chip features?
The STM32 port will be based on the same code base, just like Rommel has done. So the higher clock speed of the STM32F407 will be the only advantage. We'll be able to play with some higher step speeds. 

But the STM chips have more than just speed correct?
From some of the sheets it sounds like there are more abilities for high speed encoders up to 4 vs the lpc 1.
I understand its early in dev but looking long term would the stm32 variant win out so to speak.
 

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

More
5 years 1 month ago - 5 years 1 month ago #220187 by cakeslob
<s> Thank you for your patience in advance.Ok, trying to load , first with the repo from 2 weeks ago , and now today with the hello world version on skr2. Used the online compiler for both. I renamed it "firmware", to make it firmware.bin, and put it on the root of the sd card. When marlin was loaded on from factory, there was action on the uart. Once I loaded hello world via SD card, Im getting nothing. only led's that are on are red 3v3 power, the green SD card led, and the red SWDIO on PA13 eventually turns on after some time, but dimly. Im not sure where I have went wrong. </s>

<quote> On the STM32F4 side, yes there will be a different module for access the SD card. On the SKRv2 the SD card is on the SDIO interface rather than an SPI interface. There is no out of the box Mbed support for the SDIO interface but I've managed to read in the config.txt this week. It just interfered with the the SPI comms for some reason.. working this one out. One step at a time... </quote>
you posted this while i was typing earlier, that would explain it
Last edit: 5 years 1 month ago by cakeslob. Reason: dont know how to fix this

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

More
5 years 1 month ago #220191 by cakeslob
ok, theres no saving that last post, editing is making it worse.

Ok, so we cannot load firmware via SD, or is that in regards to the config file?

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

More
5 years 1 month ago #220255 by scotta
Hi cakeslob,

Sounds like you are powering the board from USB. With DCIN you'll get the motor power led on and the PB4 (HE1) led flashing. These are powered from the DCIN. The serial is on pins PA9 and PA10 on the TFT connector. This is still hugely a work in progress to get the components of Remora working on the STM32.

BR
Scott

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

More
5 years 1 month ago #220258 by cakeslob
Im powered on dc in with 12v, and the serial is in the same place it was before on the tft spot. before I tried to load hello world, marlin was very chatty on the serial , and now nothing so I am wondering what is wrong, like if I put it into the wrong bootmode while loading from the sd card or something . Im only trying to get hello world working on the skr2 as a baseline first so I can modify it for a different target stm32 chip/board to test out. But compiling and loading it to the sd card doesnt seem like enough

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

Time to create page: 0.153 seconds
Powered by Kunena Forum