Comments (4)
In file included from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp:27:
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:99:3: error: 'spi_mode_e' does not name a type
99 | spi_mode_e _dataMode;
| ^~~~~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h: In constructor 'MarlinSPI::MarlinSPI(pin_t, pin_t, pin_t, pin_t)':
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:64:5: error: '_dataMode' was not declared in this scope; did you mean '_dataSize'?
64 | _dataMode = SPI_MODE_0;
| ^~~~~~~~~
| _dataSize
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:64:17: error: 'SPI_MODE_0' was not declared in this scope; did you mean 'SPI_MODE0'?
64 | _dataMode = SPI_MODE_0;
| ^~~~~~~~~~
| SPI_MODE0
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h: In member function 'void MarlinSPI::setDataMode(uint8_t)':
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:83:23: error: '_dataMode' was not declared in this scope; did you mean '_dataSize'?
83 | case SPI_MODE0: _dataMode = SPI_MODE_0; break;
| ^~~~~~~~~
| _dataSize
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:83:35: error: 'SPI_MODE_0' was not declared in this scope; did you mean 'SPI_MODE0'?
83 | case SPI_MODE0: _dataMode = SPI_MODE_0; break;
| ^~~~~~~~~~
| SPI_MODE0
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:84:35: error: 'SPI_MODE_1' was not declared in this scope; did you mean 'SPI_MODE1'?
84 | case SPI_MODE1: _dataMode = SPI_MODE_1; break;
| ^~~~~~~~~~
| SPI_MODE1
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:85:35: error: 'SPI_MODE_2' was not declared in this scope; did you mean 'SPI_MODE2'?
85 | case SPI_MODE2: _dataMode = SPI_MODE_2; break;
| ^~~~~~~~~~
| SPI_MODE2
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:86:35: error: 'SPI_MODE_3' was not declared in this scope; did you mean 'SPI_MODE3'?
86 | case SPI_MODE3: _dataMode = SPI_MODE_3; break;
| ^~~~~~~~~~
| SPI_MODE3
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp: At global scope:
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp:29:50: error: 'spi_mode_e' has not been declared
29 | static void spi_init(spi_t obj, uint32_t speed, spi_mode_e mode, uint8_t msb, uint32_t dataSize) {
| ^~~~~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp: In function 'void spi_init(spi_t, uint32_t, int, uint8_t, uint32_t)':
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp:30:24: error: invalid conversion from 'int' to 'SPIMode' [-fpermissive]
30 | spi_init(obj, speed, mode, msb);
| ^~~~
| |
| int
In file included from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/libraries/SPI/src/SPI.h:18,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.h:25:
/Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/libraries/SPI/src/utility/spi_com.h:85:51: note: initializing argument 3 of 'void spi_init(spi_t*, uint32_t, SPIMode, uint8_t)'
85 | void spi_init(spi_t obj, uint32_t speed, SPIMode mode, uint8_t msb);
| ~~~~~~~~^~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp: In member function 'void MarlinSPI::begin()':
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/MarlinSPI.cpp:47:27: error: '_dataMode' was not declared in this scope; did you mean '_dataSize'?
47 | spi_init(&_spi, _speed, _dataMode, _bitOrder, _dataSize);
| ^~~~~~~~~
| _dataSize
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/timers.cpp:328:40: error: static assertion failed: One or more timer conflict detected. Examine "timers_in_use" to help identify conflict.
328 | static_assert(verify_no_timer_conflicts(), "One or more timer conflict detected. Examine "timers_in_use" to help identify conflict.");
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/cores/arduino/stm32/clock.h:19,
from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/cores/arduino/wiring_time.h:23,
from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/cores/arduino/wiring.h:38,
from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/cores/arduino/Arduino.h:36,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/shared/Marduino.h:36,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.h:27,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/HAL.h:30,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/inc/MarlinConfig.h:33,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp:26:
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp: In static member function 'static void MarlinHAL::init()':
/Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/cores/arduino/stm32/stm32_def.h:68:17: error: the value of 'SystemCoreClock' is not usable in a constant expression
68 | #define F_CPU SystemCoreClock
| ^~~~~~~~~~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp:69:27: note: in expansion of macro 'F_CPU'
69 | constexpr int cpuFreq = F_CPU;
| ^~~~~
In file included from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h:167,
from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:132,
from /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/cores/arduino/stm32/stm32_def.h:36:
/Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h:57:17: note: 'uint32_t SystemCoreClock' is not const
57 | extern uint32_t SystemCoreClock; /!< System Clock Frequency (Core Clock) */
| ^~~~~~~~~~~~~~~
In file included from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.h:31:
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h:155:45: error: 'PA13' was not declared in this scope; did you mean 'PA_3'?
155 | #define LED_PIN PA13
| ^~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/fastio.h:66:41: note: in definition of macro '_SET_OUTPUT'
66 | #define _SET_OUTPUT(IO) pinMode(IO, OUTPUT) //!< Output Push Pull Mode & GPIO_NOPULL
| ^~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp:77:5: note: in expansion of macro 'OUT_WRITE'
77 | OUT_WRITE(LED_PIN, LOW);
| ^~~~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp:77:15: note: in expansion of macro 'LED_PIN'
77 | OUT_WRITE(LED_PIN, LOW);
| ^~~~~~~
In file included from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/inc/MarlinConfigPre.h:37,
from /Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/inc/MarlinConfig.h:28:
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp: In static member function 'static void MarlinHAL::watchdog_refresh()':
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h:155:45: error: 'PA13' was not declared in this scope; did you mean 'PA_3'?
155 | #define LED_PIN PA13
| ^~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/core/macros.h:84:21: note: in definition of macro 'TBI32'
84 | #define TBI32(N,B) (N ^= _BV32(B))
| ^
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/fastio.h:62:53: note: in expansion of macro 'STM_PORT'
62 | #define _TOGGLE(IO) TBI32(FastIOPortMap[STM_PORT(digitalPinToPinName(IO))]->ODR, STM_PIN(digitalPinToPinName(IO)))
| ^~~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/fastio.h:62:62: note: in expansion of macro 'digitalPinToPinName'
62 | #define _TOGGLE(IO) TBI32(FastIOPortMap[STM_PORT(digitalPinToPinName(IO))]->ODR, STM_PIN(digitalPinToPinName(IO)))
| ^~~~~~~~~~~~~~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/fastio.h:71:33: note: in expansion of macro '_TOGGLE'
71 | #define TOGGLE(IO) _TOGGLE(IO)
| ^~~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp:159:7: note: in expansion of macro 'TOGGLE'
159 | TOGGLE(LED_PIN); // heartbeat indicator
| ^~~~~~
/Users/willshawcross/Documents/3D Printing/Marlin-bugfix-2.1.x/Marlin/src/HAL/STM32/HAL.cpp:159:14: note: in expansion of macro 'LED_PIN'
159 | TOGGLE(LED_PIN); // heartbeat indicator
| ^~~~~~~
Multiple libraries were found for "Servo.h"
Used: /Users/willshawcross/Library/Arduino15/packages/STMicroelectronics/hardware/stm32/2.7.1/libraries/Servo
Not used: /Users/willshawcross/Library/Arduino15/libraries/Servo
exit status 1
Compilation error: 'spi_mode_e' does not name a type
from marlin.
Provided code is just a mess
"#define LED_PIN PBO" (should be 0 not a capital o)
And PB0 is HE2 on BOARD_BTT_OCTOPUS_PRO_V1_1, not the LEDS
assorted updates to Marlin/src/HAL/STM32/MarlinSPI.h that are not even valid code
Listed "fix" you tried is unrelated
The board BTT Octopus Pro v1.1 is not in Marlin 2.1.2.2
BOARD_BTT_OCTOPUS_PRO_V1_1 is only available in bugfix 2.1.x at this time #26043
Error spi_mode_e is due to Arduino_Core_STM32 using latest version not the version that is compatible with marlin
needs 2.6.0 not 2.7.0
see stm32duino/Arduino_Core_STM32@2.6.0...2.7.0
But that error is the least of your issues....
from marlin.
update ini/stm32h7.ini to force platformio to use 2.6.0 since you somehow have 2.7.0 on your system
BOARD_BTT_OCTOPUS_PRO_V1_1 should be using build envronment STM32H723ZE_btt
#
# BigTreeTech Octopus Pro V1.0.1/1.1 / Octopus Max EZ V1.0 / Manta M8P V2.0 (STM32H723ZET6 ARM Cortex-M7)
#
[env:STM32H723ZE_btt]
extends = STM32H723Zx_btt
board = marlin_STM32H723ZE
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/refs/tags/2.6.0.zip
And undo all your edits to MarlinSPI.h preferably by starting afresh with bugfix2.1.x
from marlin.
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.
from marlin.
Related Issues (20)
- [FR] Automatic/Dynamic UBL Fade Height HOT 2
- [BUG] M906, M914 extra axis name mismatch
- [BUG] Full Graphic Smart controller + RAMPS reboot with RU language HOT 2
- MKS WiFi module does not work with MKS Eagle and H43 display HOT 4
- [BUG] `CURRENT_STEP_DOWN` wrapping around to 65536 on multiple driver errors HOT 6
- [BUG] Mini 12864 on SKR Mini E3 V3 display issue HOT 5
- [BUG] After completing Home of all three axis, the Z axis rises up about 10mm HOT 3
- [BUG] Unpredictable filament runout/clog false positives. Runout remaining seemingly inaccurate/slow-update count. HOT 3
- Bugfix 2.1.x Compile Error for BTT SKR 3 STM32H723VG HOT 1
- [BUG] idex printer configuration HOT 1
- [BUG] `SysTick_Callback` interferes with timing critical code - causes speed jitter - LPC176x HOT 1
- Mar HOT 1
- [BUG] CR touch won't deploy for Z homing HOT 1
- [BUG] Erratic extruder action HOT 11
- #define E_DUAL_STEPPER_DRIVERS, E1 do not obey microstepping HOT 1
- [BUG] (MKS_ROBIN_NANO_V3.1 THERMAL RUNAWAY HOTEND 1) HOT 1
- [BUG] printing is stoping after adjusting X_MAX_POS and PROBING_MARGIN HOT 1
- [FR] Ask for filament type on LCD/manual filament change HOT 5
- A question regarding the M600 parameters E, U, and L
- [FR] Stepper motor-based tool changing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marlin.