B-G431-ESC arduino support

I’ve bought a B-G431-ESC and trying to program the board using arduino but i get this error while trying to upload a sample code in the simplefoc libraby
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:40: error: ‘A_PHASE_UH’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:52: error: ‘A_PHASE_UL’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:64: error: ‘A_PHASE_VH’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:76: error: ‘A_PHASE_VL’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:88: error: ‘A_PHASE_WH’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:4:100: error: ‘A_PHASE_WL’ was not declared in this scope; did you mean ‘PHASE_ON’?
4 | BLDCDriver6PWM driver = BLDCDriver6PWM(A_PHASE_UH, A_PHASE_UL, A_PHASE_VH, A_PHASE_VL, A_PHASE_WH, A_PHASE_WL);
| ^~~~~~~~~~
| PHASE_ON
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:5:74: error: ‘A_OP1_OUT’ was not declared in this scope
5 | LowsideCurrentSense currentSense = LowsideCurrentSense(0.003, -64.0/7.0, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
| ^~~~~~~~~
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:5:85: error: ‘A_OP2_OUT’ was not declared in this scope
5 | LowsideCurrentSense currentSense = LowsideCurrentSense(0.003, -64.0/7.0, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
| ^~~~~~~~~
C:\Users\Kavin\AppData\Local\Temp.arduinoIDE-unsaved2024225-22964-10k65gj.crr9\B_G431B_ESC1\B_G431B_ESC1.ino:5:96: error: ‘A_OP3_OUT’ was not declared in this scope
5 | LowsideCurrentSense currentSense = LowsideCurrentSense(0.003, -64.0/7.0, A_OP1_OUT, A_OP2_OUT, A_OP3_OUT);
| ^~~~~~~~~

exit status 1

Compilation error: ‘A_PHASE_UH’ was not declared in this scope; did you mean ‘PHASE_ON’?

If you are using Arduino, are you sure that you selected the board as the B-G431B-ESC1?
The board variant has the specific defines for the things you are missing here.

no i selected stm32g series can you help me with a reference link on how to connect the B-G431B-ESC1 with AS5600 ? also i couldn’t read anything from the serial monitor even it is just a simple “Hi” serialprint

There should be a board entry for the ESC1 in particular, it is part of the stm32duino variants. You need to select that from the boards list before doing anything else.

i tired this code and the code got uploaded and i got a success message and i got some serial readings in the serial monitor but motor is not rotating it just pulses also a big red led near the stlink ic is glowing
#include <Arduino.h>

#define STATUS_LED PC6
#define POT PB12

#define TX PB3
#define RX PB4

#define MOT1_OUT_H PA8
#define MOT2_OUT_H PA9
#define MOT3_OUT_H PA10
#define MOT1_OUT_L PC13
#define MOT2_OUT_L PA12
#define MOT3_OUT_L PB15

#define MOT1_SENSE_H PA1
#define MOT2_SENSE_H PA7
#define MOT3_SENSE_H PB0
#define MOT1_SENSE_L PA3
#define MOT2_SENSE_L PA5
#define MOT3_SENSE_L PB2

HardwareSerial Serial1(RX, TX);

int duty_cycle = 80;

void setup() {
Serial1.begin(115200);

pinMode(MOT1_OUT_H, OUTPUT);
pinMode(MOT2_OUT_H, OUTPUT);
pinMode(MOT3_OUT_H, OUTPUT);
pinMode(MOT1_OUT_L, OUTPUT);
pinMode(MOT2_OUT_L, OUTPUT);
pinMode(MOT3_OUT_L, OUTPUT);

pinMode(STATUS_LED, OUTPUT);
pinMode(POT, INPUT);
}

void setPWM(int m1_h, int m2_h, int m3_h, int m1_l, int m2_l, int m3_l) {
Serial1.printf(“%d\t%d\t%d\t%d\t%d\t%d\t”, m1_h, m2_h, m3_h, m1_l, m2_l, m3_l);
analogWrite(MOT1_OUT_H, m1_h);
analogWrite(MOT2_OUT_H, m2_h);
analogWrite(MOT3_OUT_H, m3_h);
analogWrite(MOT1_OUT_L, m1_l);
analogWrite(MOT2_OUT_L, m2_l);
analogWrite(MOT3_OUT_L, m3_l);
}

void steps(int delayMillis) {
digitalWrite(STATUS_LED, HIGH);

setPWM(duty_cycle, 0, 0, 0, duty_cycle, 0);
Serial1.println(“M2- M1+”);
delay(delayMillis);

setPWM(duty_cycle, 0, 0, 0, 0, duty_cycle);
Serial1.println(“M1+ M3-”);
delay(delayMillis);

setPWM(0, duty_cycle, 0, 0, 0, duty_cycle);
Serial1.println(“M3- M2+”);
delay(delayMillis);

digitalWrite(STATUS_LED, LOW);
setPWM(0, duty_cycle, 0, duty_cycle, 0, 0);
Serial1.println(“M2+ M1-”);
delay(delayMillis);

setPWM(0, 0, duty_cycle, duty_cycle, 0, 0);
Serial1.println(“M1- M3+”);
delay(delayMillis);

setPWM(0, 0, duty_cycle, 0, duty_cycle, 0);
Serial1.println(“M3+ M2-”);
delay(delayMillis);

}

int step = 0;

void loop() {
int pot = analogRead(POT);
int delaySpeed = map(pot, 0, 1023, 10,500);
Serial1.println();
Serial1.print("delay: ");
Serial1.println(delaySpeed);
steps(delaySpeed);
}

Tried to just test the example sketch of the as5600 in the utils folder but i’m not getting any response from the serial montior but the code is uploaded . I’ll say what are the things i’ve done
1.Opened a new b-g431-esc out of the cover connected the i2C wire as per the given photo below


2. opened the platformio and created a new project with discovery b-g431-esc1 as per @Owen_Williams tutorial selected and added the neccessary build flags and libdeps in the platformio file .
3.opened a example as5600 and uploaded it uploaded sucessfully but i’m not reading anything from the searial monitor it is just empty(Also a big right red led is always on)

i’m just a newbie, Please anybody help any kind of help or suggestion would be appreciated