Hello together,
I am not sure whether i misunderstand something, but when trying to build for the Heltec Cubecell HTCC-AB01 (V2) board using board definition: cubecell_board_v2
My code compiles and i am able to flash but not execution is visible. When looking into the board defintion for cubecell_board_v2 the mcu is asr6501, when it actually should be asr6502. When trying to add board_build.mcu = asr6502 to the platformio.ini file i get the following compile errors:
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp: In member function 'bool SPIClass::begin(int8_t, int8_t, int8_t, int8_t)':
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp:53:9: error: 'SCK1' was not declared in this scope; did you mean 'SCK'?
53 | sck = SCK1;
| ^~~~
| SCK
Compiling .pio/build/latest_stable/FrameworkArduino/board/src/spi-board.c.o
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp:54:10: error: 'MOSI1' was not declared in this scope; did you mean 'MOSI'?
54 | mosi = MOSI1;
| ^~~~~
| MOSI
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp:55:10: error: 'MISO1' was not declared in this scope; did you mean 'MISO'?
55 | miso = MISO1;
| ^~~~~
| MISO
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp:57:17: error: 'SCK1' was not declared in this scope; did you mean 'SCK'?
57 | else if(sck == SCK1 && miso == MISO1 && mosi ==MOSI1)
| ^~~~
| SCK
Compiling .pio/build/latest_stable/FrameworkArduino/cores/ADC_SAR_Seq.c.o
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp:57:33: error: 'MISO1' was not declared in this scope; did you mean 'MISO'?
57 | else if(sck == SCK1 && miso == MISO1 && mosi ==MOSI1)
| ^~~~~
| MISO
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/SPI/SPI.cpp:57:49: error: 'MOSI1' was not declared in this scope; did you mean 'MOSI'?
57 | else if(sck == SCK1 && miso == MISO1 && mosi ==MOSI1)
| ^~~~~
| MOSI
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Serial/HardwareSerial.cpp: In member function 'bool HardwareSerial::begin(uint32_t, uint32_t, int, int, bool, long unsigned int)':
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Serial/HardwareSerial.cpp:70:11: error: 'UART_RX2' was not declared in this scope; did you mean 'UART_RX'?
70 | rxPin = UART_RX2;
| ^~~~~~~~
| UART_RX
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Serial/HardwareSerial.cpp:71:11: error: 'UART_TX2' was not declared in this scope; did you mean 'UART_TX'?
71 | txPin = UART_TX2;
| ^~~~~~~~
| UART_TX
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Serial/HardwareSerial.cpp:73:19: error: 'UART_RX2' was not declared in this scope; did you mean 'UART_RX'?
73 | else if(rxPin == UART_RX2 && txPin == UART_TX2) {
| ^~~~~~~~
| UART_RX
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Serial/HardwareSerial.cpp:73:40: error: 'UART_TX2' was not declared in this scope; did you mean 'UART_TX'?
73 | else if(rxPin == UART_RX2 && txPin == UART_TX2) {
| ^~~~~~~~
| UART_TX
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Wire/Wire.cpp: In member function 'bool TwoWire::begin(int, int, uint32_t)':
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Wire/Wire.cpp:73:10: error: 'SDA1' was not declared in this scope; did you mean 'SDA'?
73 | _sda = SDA1;
| ^~~~
| SDA
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Wire/Wire.cpp:74:10: error: 'SCL1' was not declared in this scope; did you mean 'SCL'?
74 | _scl = SCL1;
| ^~~~
| SCL
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Wire/Wire.cpp:76:17: error: 'SDA1' was not declared in this scope; did you mean 'SDA'?
76 | else if(sda == SDA1 && scl == SCL1)
| ^~~~
| SDA
/home/pascal/.platformio/packages/framework-arduinocubecell/cores/asr650x/Wire/Wire.cpp:76:32: error: 'SCL1' was not declared in this scope; did you mean 'SCL'?
76 | else if(sda == SDA1 && scl == SCL1)
| ^~~~
| SCL
Compiling .pio/build/latest_stable/FrameworkArduino/cores/PWM1.c.o
*** [.pio/build/latest_stable/FrameworkArduino/SPI/SPI.cpp.o] Error 1
*** [.pio/build/latest_stable/FrameworkArduino/Serial/HardwareSerial.cpp.o] Error 1
*** [.pio/build/latest_stable/FrameworkArduino/Wire/Wire.cpp.o] Error 1
Do the pin definitions for the asr6502 not exist or did I misconfigure something?