bldc icon indicating copy to clipboard operation
bldc copied to clipboard

hw config for debug on stm32 discovery

Open Teslafly opened this issue 4 years ago • 4 comments

Since the default HW60_IS_MK4/3 do not work as is on the stm32f4 discovery for debug, It would be great to have a hardware config that is specifically for the f4 discovery. It would connect the virtual motor by default and hardcode several input states (voltage, temp, currents?). Also move the leds onto the built in led's

I basically have an incomplete version of this and will submit a pr when ready.

or is one of the older configs already designed to work on the f4discovery?

Teslafly avatar Sep 11 '20 21:09 Teslafly

turns out that the entirety of the 5.1 codebase goes into a bootloop when i try to compile it. no matter what config.

Teslafly avatar Sep 14 '20 03:09 Teslafly

I guess the problem with the bootloop is now solved when using the right gcc-arm-none-eabi version?

hexakopter avatar Sep 15 '20 20:09 hexakopter

Just checked. The mk4 fw runs fine on the discovery now.

Would still be nice to have a config that uses the discovery leds and defaults to the virtual motor though. I have a hw config that at least does the pin mapping from when I kludged on a discovery board to a power stage.

Teslafly avatar Sep 16 '20 01:09 Teslafly

I should really clean up and make a pr for my discovery hwconfig. (if that's something we want in the main repo?)

Teslafly avatar May 02 '22 05:05 Teslafly