Remora - Rpi Software Stepping Using External Microcontroller via SPI

More
19 Mar 2022 21:00 #237738 by scotta
Thanks for the feedback. Looks like the ability to load the firmware over SPI / Ethernet would be a beneficial feature. I'll look into how a TFTP type handshake protocol could be used over SPI to send the config to the board. The Flash storage and retrieval is already working great.
The following user(s) said Thank You: tommylight, gtt38

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

More
23 Mar 2022 12:30 #238095 by gtt38
Hi Scott i'm back. i finished fews project and i'm ready now to test new platform for Remora.
I saw your code for NVEM and i was very happy to see you using STMcubeide, it's the best ide for STM32.
i tested the binary for F103RC on a F103RE and it works very good.
I was trying to compile the code, for STM32F4 no errors or warnings as usual, but i have errors when trying to compile STM32F1 : 
[Error] mbed_rtx.h@137,2: "INITIAL_SP is not defined for this target in the mbed_rtx.h file" [ERROR] In file included from .\mbed-os\platform\source\mbed_error.c:30: ./mbed-os/targets/TARGET_STM\mbed_rtx.h:137:2: error: "INITIAL_SP is not defined for this target in the mbed_rtx.h file" #error "INITIAL_SP is not defined for this target in the mbed_rtx.h file" ^ 1 error generated.

i'm trying to compile the Remora-feature-ethernet branch

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

More
24 Mar 2022 00:20 #238179 by cakeslob
yeah I couldnt get it to compile when I tried either,

speaking of remora ethernet feature, we just hook up the w5500 to the 4 spi lines correct?

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

More
24 Mar 2022 12:11 - 24 Mar 2022 12:12 #238216 by gtt38
i'm not testing the ethernet feature, only the branch for spi. The STMF1 don't compile on both devellop branch and ethernet branch.
I want to create new boards targets to support F103VET and F103ZET but without compilation that's gonna be difficult


 
Last edit: 24 Mar 2022 12:12 by gtt38.

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

More
24 Mar 2022 23:22 #238293 by cakeslob
ok, I think I get it now, we have to move TARGET_STM32F103xC/ into mbed-dev/targets/TARGET_STM/TARGET_STM32F1
but I cant figure out where to put it in mbed_rtx

heres one for your thing you can try, this one is
os.mbed.com/users/hudakz/notebook/home-m...f103vet6-microcontr/

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

More
25 Mar 2022 21:03 #238373 by scotta

yeah I couldnt get it to compile when I tried either,

speaking of remora ethernet feature, we just hook up the w5500 to the 4 spi lines correct?

The Ethernet feature branch is being developed on an STM32F4 (SKR2) board. It also uses the W5500 interrupt pin to trigger the SPI communication. I still need to get the DMA SPI working to reduce the LinuxCNC Servo period.

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

More
25 Mar 2022 21:04 #238374 by scotta

i'm not testing the ethernet feature, only the branch for spi. The STMF1 don't compile on both devellop branch and ethernet branch.
I want to create new boards targets to support F103VET and F103ZET but without compilation that's gonna be difficult



 

It's been a while since I worked on the STM32F1 boards. Let me have a look as to why the error is appearing. Great to hear you're looking to extend to new targets. Thanks!

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

More
26 Mar 2022 13:13 - 26 Mar 2022 14:22 #238396 by gtt38
I made some progress on F4
it works perfectly on Nucleo F401, F411 and F446 

File Attachment:


I'm starting to love Mbed, there is some interesting libraries with nucleo board :
X_NUCLEO_IHM03A1 The API allows to easily:
  • perform various positioning, moves and stops
  • get/set or monitor the motor positions
  • set home position and mark another position
  • get/set minimum and maximum speed
  • get current speed
  • get/set acceleration and deceleration
  • get/set the step mode (up to 1/128)
  • get/set the control method
  • get/set parameters for voltage mode driving
  • get/set parameters for current mode driving
  • get/set parameters for gate driving
  • configure various protections such as overcurrent detection
  • enable/disable alarms
  • handle step-clock
  • get system status
Last edit: 26 Mar 2022 14:22 by gtt38.

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

More
26 Mar 2022 16:00 #238406 by cakeslob
hey gt, i have the same setup with 446. are you doing remora or IMHO3A1 on the nucleo?, so you are doing spi2 it looks like , what about sd card? that was the only thing I couldnt make work was the sd card

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

More
15 Apr 2022 20:48 #240342 by eng
can you direct to the link to use this card that could allow me a remora? I'm grateful for your help.

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

Time to create page: 0.127 seconds
Powered by Kunena Forum