Hello,
as the title says im struggling to get a B-G431B-ESC1 working.
I used just the basic open loop velocity code to test it, but i think i forgot something, bc
i can upload it without proplem, but then nothing happens.
Here is the code:
#include <SimpleFOC.h>
BLDCMotor motor = BLDCMotor(6);
BLDCDriver6PWM driver = BLDCDriver6PWM(PA8,PC13, PA9,PA12, PA10,PB15);
float target_velocity = 10;void setup()
{
driver.voltage_power_supply = 12;
driver.init();
motor.linkDriver(&driver);
motor.voltage_limit = 3;
motor.velocity_limit = 100;
motor.controller = MotionControlType::velocity_openloop;
motor.init();
}
void loop()
{
motor.move(target_velocity);
}
After uploading i get this message:
ST-LINK SN : 0670FF393036424257175128
ST-LINK FW : V2J38M27
Board : B-G431B-ESC1
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x468
Revision ID : Rev Y
Device name : STM32G43x/G44x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M4Memory Programming …
Opening and parsing file: sketch_jun20b.ino.bin
File : sketch_jun20b.ino.bin
Size : 42944 Bytes
Address : 0x08000000Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 20]
Download in Progress:File download complete
Time elapsed during download operation: 00:00:01.204RUNNING Program …
Address: : 0x8000000
Application is running, Please Hold on…
Start operation achieved successfully
It would be awesome if someone could help me.