STMicroelectronics-CentralLabs / ST_Drone_FCU_F401

Toy drone project for STEVAL-FCU001V1 flight controller unit demo board.
Other
157 stars 114 forks source link

HW Component failure #4

Closed KiranKanchi closed 6 years ago

KiranKanchi commented 6 years ago

Hello, my magnetometer does not initialize . It was working fine, now it stopped working spontaneously. Please direct me to hardware support.

teomaras76 commented 6 years ago

Hi, it sounds a little strange that it does stop to work, may you give more details about it? Is it failing during the initialization process? Can you read RAW data from it?

KiranKanchi commented 6 years ago

I soldered headers pins to it and flashed with latest version .the two leds stay lit. Because when sensor init routine comes up the control gets stuck in a while 1 loop. I had to comment of while(1) for each sensor one of after the other to identify the issue . Finally when i disabled magnetometer led started blinking and found the Bluetooth device.

On 28 Dec 2017 12:28 p.m., "Matteo Maravita" notifications@github.com wrote:

Hi, it sounds a little strange that it does stop to work, may you give more details about it? Is it failing during the initialization process? Can you read RAW data from it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics-CentralLabs/ST_Drone_FCU_F401/issues/4#issuecomment-354239937, or mute the thread https://github.com/notifications/unsubscribe-auth/AM5jUkFws4p45NjZctGOf22qKMdQmB8pks5tEzwQgaJpZM4RMhhN .

teomaras76 commented 6 years ago

Had you the same issue with other versions of the FW project? If you can try the first official version (the one without BLE) may help to discriminate if real HW issue or some FW bug of latest version. In the main you can find the initialization of all the sensors (please double check an eventually uncomment the part initializing the magnetometer) and you can also PRINTF magnetometer raw data on UART for check (you can find some commented parts with PRINTF left for debug). The boards are tested in production, also the correct initialization of magnetometer is tested, this is why better to make sure again it's a HW issue.

teomaras76 commented 6 years ago

I read you had same issue with also previous version, please kindly confirm the following:

KiranKanchi commented 6 years ago

hello , i tried with the very original firmware too. if (BSP_MAGNETO_Init( LIS2MDL_M_0, &LIS2MDL_M_0_handle ) != COMPONENT_OK) while(1); the control does not flow out of while(1); loop. i have checked many times. i still didnt fly with fcu to crash too, i dont understand what is wrong with sensor.