-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Can't Compile (STM32F4-RUMBA32) fails SPI / DMA #16029
Comments
The STM32 HALs get pretty confusing. I believe that when you build for a Rumba32 inside Arduino IDE it uses HAL_STM32, whereas that STM32F4 environment uses HAL_STM32_F4_F7. The SKR Pro is the best example of an STM32F4 building with HAL_STM32. The FYSETC S6 does also, but it was just added yesterday and isn't fully tested. There will likely be more work needed than simply copying and editing a new environment, but that is not a process I am familiar with. |
just retarget the board to stm32 hal |
@BoHoehne did you figure the issue? |
When I set the board in platformio.ini as "STM32_hal" I get the following error: Error: BoardConfig: Board is not defined Unsure what to configure: Unsure what to insert there. |
@BoHoehne I don't know how to build rumba but to change the hal change
into
|
Thank you. Marlin\src\HAL\shared\backtrace../../../core/../inc/../HAL/./HAL_STM32/HAL.h:54:21: error: 'SerialUSB' was not declared in this scope |
Check Aus3D/RUMBA32#11, I posted my platformio config which works for me. |
@wap32 <- Thank you so much !!! Compile went thru without any problem. Yippie !! |
will close as this is most likely a config problem and not a marlin problem |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Trying to compile Marlin 2.x for RUMBA32 (STM32F4).
The stepper drivers are TMC5160 with SPI connection.
Environment: VSCode / PlatformIO
Error:
Marlin\src\HAL\HAL_STM32_F4_F7\HAL_SPI.cpp:125:9: error: 'class SPIClass' has no member named 'dmaTransfer'; did you mean 'transfer'?
SPI.dmaTransfer(0, const_cast<uint8_t*>(buf), nbyte);
^~~~~~~~~~~
transfer
Marlin\src\HAL\HAL_STM32_F4_F7\HAL_SPI.cpp: In function 'void spiSendBlock(uint8_t, const uint8_t*)':
Marlin\src\HAL\HAL_STM32_F4_F7\HAL_SPI.cpp:158:9: error: 'class SPIClass' has no member named 'dmaSend'
SPI.dmaSend(const_cast<uint8_t*>(buf), 512);
^~~~~~~
#define MOTHERBOARD BOARD_RUMBA32
..
#define X_DRIVER_TYPE TMC5160
#define Y_DRIVER_TYPE TMC5160
#define Z_DRIVER_TYPE TMC5160
#define E0_DRIVER_TYPE TMC5160
#define E1_DRIVER_TYPE TMC5160
#define E2_DRIVER_TYPE TMC5160
Expected behavior:
Successful compilation
Actual behavior:
Compile aborts with above errors.
The text was updated successfully, but these errors were encountered: