Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
28 Oct 2021 02:32 #224541 by cakeslob
Ok, still no go on the octopus.
But I think I have found a working example of what looks like the system_clock for the specific differences between the octopus and the nucleo f446ze,

community.platformio.org/t/nucleo-f446ze...-for-advice/23292/12

github.com/maxgerhardt/nucleo-f446ze-wit...ob/main/src/main.cpp

github.com/maxgerhardt/nucleo-f446ze-wit...fc3c8c44ee47e0086339
The following user(s) said Thank You: Bari

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

More
28 Oct 2021 08:39 #224553 by gtt38
Are you using the good remora.c driver ? 

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

More
28 Oct 2021 21:48 - 28 Oct 2021 21:48 #224616 by scotta

Ok, still no go on the octopus.
But I think I have found a working example of what looks like the system_clock for the specific differences between the octopus and the nucleo f446ze,

community.platformio.org/t/nucleo-f446ze...-for-advice/23292/12

github.com/maxgerhardt/nucleo-f446ze-wit...ob/main/src/main.cpp

github.com/maxgerhardt/nucleo-f446ze-wit...fc3c8c44ee47e0086339
Hmm, when I use those clock setting in STM32 CubeMX it results in a CPU frequency of 168Mhz, the same as the SKR2.

BTW, the Klipper guys test their STM32F407 code on a 446 by using the 407 binary. Have you tried using the SKR2 bin file on the Octopus?

Last edit: 28 Oct 2021 21:48 by scotta.

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

More
29 Oct 2021 00:14 - 29 Oct 2021 02:57 #224618 by cakeslob

Hmm, when I use those clock setting in STM32 CubeMX it results in a CPU frequency of 168Mhz, the same as the SKR2.

BTW, the Klipper guys test their STM32F407 code on a 446 by using the 407 binary. Have you tried using the SKR2 bin file on the Octopus?



yeah I thought that clockspeed was odd also, I thought maybe it had something to do with USB otg. I just loaded skr2 with my octo config.
It comes out of estop, this is a success we are connected to linuxcnc. Thank you for your work.
Problems - the terminal is outputting all messed up and following errors after a few mm (i am having same issue with skr2 but like 10-20mm i will post it in the other thread)
where do we go from here? Just change up the sk2 system_clock to different clockspeed and use the rest of the octo custom target?

Are you using the good remora.c driver ? 


I have a few rip builds for each component, I have been trying them all
Last edit: 29 Oct 2021 02:57 by cakeslob.

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

More
30 Oct 2021 03:05 #224695 by scotta
Yes, if the serial comms is all messed up then this would point to a baud rate error caused by the wrong CPU clock config. 

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

More
30 Oct 2021 04:56 #224701 by scotta
I've update the LinuxCNC Remora component in the develop branch to allow the PRU chip type to be selected on the command line. This sets up the SPI frequency and chip select behavior for the different chips.

loadrt remora chip_type=STM

Options are lpc, LPC, stm or STM

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

More
31 Oct 2021 19:17 - 31 Oct 2021 19:22 #224785 by gtt38
Doesnt come out of estop for me with the new remora.c with lpc1768 and stm32f407vgt6
Just curious are you using a rpi3 or a rpi4 ?
Last edit: 31 Oct 2021 19:22 by gtt38.

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

More
31 Oct 2021 21:38 - 31 Oct 2021 21:39 #224804 by scotta

Doesnt come out of estop for me with the new remora.c with lpc1768 and stm32f407vgt6
Just curious are you using a rpi3 or a rpi4 ?
 

Hi, thanks for the feedback. I've fixed a logical error in the SPI comms. Tested on LPC1769 and pushed to the develop branch.

I use both RPi3 and RPi4, but use RPi4 for my large printer so as to handle million line g-code smoothly in the Axis GUI.
Last edit: 31 Oct 2021 21:39 by scotta.

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

More
31 Oct 2021 22:13 - 31 Oct 2021 22:38 #224812 by gtt38
same for me : Bad SPI payload = f6fdfffd

"stm" is for 168mhz and "STM" is for 180mhz ?

Edit : it works on the lpc1768 but not on the stm
Last edit: 31 Oct 2021 22:38 by gtt38.

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

More
01 Nov 2021 03:51 #224828 by scotta

same for me : Bad SPI payload = f6fdfffd

"stm" is for 168mhz and "STM" is for 180mhz ?

Edit : it works on the lpc1768 but not on the stm

Hi, please download the latest firmware and remora component. I pushed some corrections today and have confirmed on both STM and LPC boards. The "stm" and "STM" is just to make the command line more forgiving and nothing to do with the version or speed of the STM32.

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

Time to create page: 0.131 seconds
Powered by Kunena Forum