explosion33 / PLOP

code base for the SARP 2022-2023 payload
MIT License
2 stars 0 forks source link

Data not being recieved on first power on of device #5

Open explosion33 opened 1 year ago

explosion33 commented 1 year ago

Steps to reproduce:

  1. Plug in blackpill stm32 with sensors connected to laptop via usb-c to usb-c cable
  2. open serial monitor on connected port
  3. observe that program runs, but all values are either 0 or default value
  4. close serial connection
  5. connect reset pin (R) of blackpill to ground (G)
  6. disconnect reset pin (R) of blackpill from ground (G)
  7. open serial monitor on connected port
  8. observe data being read normally

I am not sure as to whether or not this is a hardware error or software error, however it is important to note this problem does not occur on other tested STM32 devices such as the nucleo L476rg The problem currently persists across both of our blackpill boards

explosion33 commented 1 year ago

Issue has been narrowed down and most likely fixed.

The problem only occurred on the IMU and should be fixed (needs to be tested) with the implementation of init error checking and retries. I also added a physical reset wire to the IMU which should help resolve any problems

TODO: