michael-betz / Foculus_Rift_Tracker_STM32F3DISCOVERY

Firmware for the STM32F3DISCOVERY board to emulate an Oculus Rift compatible USB motion tracker
61 stars 28 forks source link

Rebuild in Atollic TrueSTUDIO Cause LEDs Blink Slowly #7

Open Kailang opened 10 years ago

Kailang commented 10 years ago

Just a small problem... I'm using Atollic TrueSTUDIO for ARM Lite. And since your codes are written in eclipse, I use the Demo Project provided by STM32F3-Discovery Board Firmware Applications Package and import your files in inc and src folders. It successfully compiled and reprogrammed the firmware of the board. And I can play Oculus' games. But the LEDs blink very slowly and when I press the USER button to enter calibration routine, it stuck with the LD5 on. After reconnect it, windows cannot recognize it...

Also, I use the STM32 ST-LINK Utility to flash your stm32f3_HID_for_real.hex file to the board. It works really fine!

Is that any extra setting with the clock or something? Because I notice "SysTick_Config(RCC_Clocks.HCLK_Frequency / 1000);" in main and I change it to "SysTick_Config(RCC_Clocks.HCLK_Frequency / 100);" but nothing happened...