06-26-2019 05:01 PM
I would like to explain a question that I think I cannot explain the problem as code. I'm sorry for asking a new question.
I am reading accelerometer and gyroscope correctly, but i can't read magnetomer. I read 0x00.
Is there anyone who can help with this problem?
Accelerometer
pin_set(bmx_cs1);
pin_set(bmx_cs2);
pin_set(bmx_cs3);
select_bmx_acc(); //MISO=MISO1
wait_delay(100);
uint8_t bmx_id=0;
pin_clear(bmx_cs1);
wait_delay(100000);
bmx_id=spi_read(0x00);
wait_delay(1000);
pin_set(bmx_cs1);
wait_delay(100000);
Gyro
pin_set(bmx_cs1);
pin_set(bmx_cs2);
pin_set(bmx_cs3);
select_bmx_gyro();//MISO=MISO2
wait_delay(100);
uint8_t bmx_gyro_id=0;
pin_clear(bmx_cs2);
wait_delay(100000);
bmx_gyro_id=spi_read(0x00);
wait_delay(1000);
pin_set(bmx_cs2);
wait_delay(100000);
Magnetometer
pin_set(bmx_cs1);
pin_set(bmx_cs2);
pin_set(bmx_cs3);
select_bmx_acc(); //MISO=MISO1
wait_delay(100);
//wake-up first
pin_clear(bmx_cs3);
wait_delay(100000);
spi_write(0x4B,0x01);
wait_delay(1000);
pin_set(bmx_cs3);
wait_delay(100000);
uint8_t bmx_manyetik_id=0;
pin_clear(bmx_cs3);
wait_delay(100000);
bmx_manyetik_id=spi_read(0x40);
wait_delay(1000);
pin_set(bmx_cs3);
wait_delay(100000);
Solved! Go to Solution.
07-04-2019 03:59 PM
The problem is solved. It was a reflowing problem.
11-29-2019 02:53 PM
hi,berker_isik:
I got the same problem as you.
Could you tell me what do you mean by "reflowing problem"?
Dose it mean that the chip was not soldered well or the chip was broken by mistake or the chip is originally broken?