cancel
Showing results for 
Search instead for 
Did you mean: 

Is the compass demo available for the STM32F303? It looks like older boards came with this but the new one uses the gyro instead.

cperd.1
Associate II

I am building a test stand for motor stators. I planned to energize coils and use the demo compass to check coil identity and polarity. Just looking at the indicator would be sufficient but it may be useful to read the magnetometer via USB.

I think the old demo code was STM32F3-Discovery_FW_V1.1.0. Anyone know if this will work on the F303 board?

Other suggestions? Thanks!

7 REPLIES 7

What is "F303 board"?

https://www.st.com/en/evaluation-tools/stm32f3discovery.html ?

If yes, why wouldn't STM32F3-Discovery_FW_V1.1.0 work?

But, looking at it, I see no "magnetometer-to-USB" example there. The "Demonstration" indicates accelerometer/magnetometer on LEDs, and indication can be switched using button.

And, according to readme in STM32F3-Discovery_FW_V1.1.0\Project\Peripheral_Examples\USB_Example\ it emulates mouse using the accelerometer.

I don't have F3 Disco at hand to try.

JW

Looking at https://github.com/STMicroelectronics/STM32CubeF3/tree/master/Projects/STM32F3-Discovery/Demonstrations - indeed the magnetometer demo has been omitted, for inexplicable reasons.

Also...

Please note that the demo execution may freeze. In case this happens, simply

restart it by pressing the Reset Button B2.

Action is being taken to fix this known limitation in a future release.

Hummm....

JW

OK so I know why wouldn't the STM32F3-Discovery_FW_V1.1.0 work - there are different chips on the newest (cca 2020) rev.E board.

https://community.st.com/s/question/0D53W00001iH4HuSAK/st-please-document-properly-revisions-of-development-boards-this-time-stm32f3discovery

JW

Good to know I'm not crazy. My boards are rev.E and I do see the physical difference from hardware in the demo videos. There is just one device where there used to be two.

This revision is billed as a direct replacement but now I wonder, does the magnetometer even exist?

As I've said I don't have the board. But based on what I see in the published schematics and also the manual, I don't see reason why wouldn't be one of the two devices (we are talking galvanometer, and the accelerometer+magnetometer combo chip, are we?) populated.

> There is just one device where there used to be two.

Show.

JW

0693W00000QMxR9QAL.jpgJW

Exactly.

The User Manual says the function still exists, I'm just going to have to learn how to program it. Fun, but not on the schedule...sigh. I gather there is onboard editing, maybe I can just change a device selection or something in a configuration file.

Thanks for the assist.