Hi,
I’m struggling to compile a hello-world for this board and I feel like I’ve tried everything - I’m lost
It’s the BIGTREETECH Octopus Pro with STM32F429ZGT6 MCU, undocumented revision 1.0.1, only source of configurations is from the official GitHub, since PlatformIO nor STM32 platform doesn’t really know this board and MCU.
I’m trying to do a fresh configuration with PlatformIO on vscode, everything updated.
[env:localBoard]
platform = ststm32@~12.1
board = marlin_BigTree_Octopus_Pro_v1_F429
framework = arduino
board_build.core = stm32
board_build.offset = 0x8000
build_flags = -D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D PIO_FRAMEWORK_ARDUINO_NANOLIB_FLOAT_PRINTF
-D PIO_FRAMEWORK_ARDUINO_USB_HIGHSPEED_FULLMODE
-DPIO_FRAMEWORK_ARDUINO_OFFICIAL
If I use the marlin_BigTree_Octopus_Pro_v1_F429.json
board with the matching MARLIN_BIGTREE_OCTOPUS_PRO_V1_F429
variant from the official repository, it builds correctly, but I suspect the configuration is somewhere incomplete since I don’t have even the basic functionalities of Arduino.h
#include <Arduino.h>
void setup() {
Serial.begin(9600);
}
error: 'Serial' was not declared in this scope; did you mean 'Serial9'?
I would kind of expect this stuff to be a problem with a configuration of a multiplatform project, like in the case of Marlin, but I only have one board with one variant, so… what’s going on here?
I’ve tried many more combinations of boards with the same-ish MCU and their respective variants from the framework-arduinoststm32
package and ststm32
platform, but they had their own issues with linking errors and stuff, so I would probably start this investigation of ‘where am I completely wrong’ with this config.
I’ve looked at examples in this repo, and some of them use the Arduino functions rather effortlessly, with envs using the same platform and framework.
So, could someone point me in the right direction on creating a clean setup for such board with the Arduino framework?
I feel like I’ve missed something really obvious, but, I can’t find out what it is