Remora 1.0.0_rc released for testing

More
5 years 2 days ago #224720 by cakeslob
Just loaded the new one, I cannot get the stm32 to run at 16th divisor, it puts out "SPI data error" in serial when I try to connect and "Bad SPI payload = 32303a30" on linuxcnc
I recompiled with the stm32 to 32 divider and it can operate and I dont get spi error or following error.

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

More
5 years 2 days ago #224732 by scotta

Just loaded the new one, I cannot get the stm32 to run at 16th divisor, it puts out "SPI data error" in serial when I try to connect and "Bad SPI payload = 32303a30" on linuxcnc
I recompiled with the stm32 to 32 divider and it can operate and I dont get spi error or following error.
Ok, so that confirmed it was the LinuxCNC side. The board would have only accepted every 64th SPI transmission, which would explain the following error.

I'm working to have the SPI speed setting as part of the command line so people can adjust for their wiring. With good wiring the higher speeds are possible with the STM32.

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

More
5 years 1 day ago - 5 years 1 day ago #224743 by scotta
A few more updates to both the Remora component and firmware. The develop branch now has additional features:

1. SPI frequency (clock divider) can be configured in the command line
2. PRU base frequency can be configured in command line

loadrt remora chip_type=STM SPI_clk_div=16 PRU_base_freq=80000

In the config.txt it's now also possible to configure the SERVO and BASE frequencies. And yes, I've now also run at 80khz on a SKR2.

eg
{
"Board": "BIGTREETECH SKR v2",
"Threads":[
{
"Thread": "Base",
"Frequency": 80000
}
],
"Modules":[
{
"Thread": "On load",
Last edit: 5 years 1 day ago by scotta.

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

More
5 years 1 day ago #224768 by Aaroncnc
What boards support what rates?
Is there a default rate if none is provided in the config?

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

More
5 years 1 day ago #224794 by scotta

What boards support what rates?
Is there a default rate if none is provided in the config?
Hi, if there are no command line arguments then the component defaults back to the LPC1768 setting for compatibility. The default BASE frequency is 40khz.

I ran the SKR2 at the higher frequency during testing.

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

More
5 years 1 day ago #224818 by Aaroncnc
Cmd line so a user must edit the launcher to set the rate?
Would it be possible to also have it set in hal or in file?
Also update on the config tool. I have it makine the ini file and am working on the hal file. I hope by next weekend to push the update and the config tool will be able to generate all needed files. Config.txt, .hal and .ini

I got a boost from John with his config tools and he helped me understand the logic better.

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

Time to create page: 0.130 seconds
Powered by Kunena Forum