uSD-Deck Problems
Posted: Tue May 18, 2021 3:40 pm
Dear All,
I have received a SD card deck and found some problems while installing. When all pins are connected the crazyflie will not connect to the cfclient or any running program anymore. This seems to be caused by an ID error in the memory chip with some other system in the crazyflie, making the system test fail and thus not starting the software. To avoid this I disconnected the memory chip pin which makes this problem solved.
See the picture for my installation, third pin on the left.
The console prints the following if the pin is connected
SYS: ----------------------------
SYS: Crazyflie 2.1 is up and running!
SYS: Build 75:1e42d9ca8deb (2021.03 +75) MODIFIED
SYS: I am 0x20383347344D500700290049 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_INFO: DECK_FORCE=bcUSD found
DECK_INFO: compile-time forced driver bcUSD added
DECK_CORE: 2 deck(s) found
DECK_CORE: Calling INIT on driver bcUSD for deck 1
uSD: mount SD-Card [FAIL].
IMU: BMI088: Using I2C interface.
IMU: BMI088 Gyro connection [OK].
IMU: BMI088 Accel connection [OK]
IMU: BMP388 I2C connection [OK]
ESTIMATOR: Using Complementary (1) estimator
CONTROLLER: Using INDI (3) controller
MTR-DRV: Using brushed motor driver
SYS: About to run tests in system.c.
EEPROM: I2C connection [OK].
STORAGE: Storage check [OK].
IMU: BMI088 gyro self-test [OK]
ET: Pin:TX2 != 1 [FAIL]
ET: Pin:RX2 != 1 [FAIL]
ET: Pin:SCK != 1 [FAIL]
ET: Pin:MOSI != 1 [FAIL]
ET: Pin:MISO != 1 [FAIL]
ET: Pin:RX1 != 0 [FAIL]
ET: Pin:IO1 != 0 [FAIL]
ET: Pin:IO2 != 0 [FAIL]
ET: Pin:IO3 != 0 [FAIL]
ET: Pin:IO4 != 0 [FAIL]
DECK_CORE: Deck 0 test [FAIL].
DECK_CORE: Deck 1 test [OK].
SYS: deck [FAIL]
Furthermore (when the pin is disconnected) the sd deck is only creating empty logging files without any data. This may be due to my setup or some underlying problem. I use the following config file on the sd card.
1 # version
512 # buffer size in bytes
log # file name
1 # enable on startup (0/1)
on:fixedFrequency
500 # frequency
1 # mode (0: disabled, 1: synchronous stabilizer, 2: asynchronous)
gyro.x
gyro.y
gyro.z
ctrlINDI.cmd_roll
ctrlINDI.cmd_pitch
ctrlINDI.cmd_yaw
ctrlINDI.cmd_thrust
acc.z
I hope someone can help.
If something is not clear please respond as we can also lay contact via some other platform like discord, such that a conversation/call can clear some stuff up.
Regards
Max
I have received a SD card deck and found some problems while installing. When all pins are connected the crazyflie will not connect to the cfclient or any running program anymore. This seems to be caused by an ID error in the memory chip with some other system in the crazyflie, making the system test fail and thus not starting the software. To avoid this I disconnected the memory chip pin which makes this problem solved.
See the picture for my installation, third pin on the left.
The console prints the following if the pin is connected
SYS: ----------------------------
SYS: Crazyflie 2.1 is up and running!
SYS: Build 75:1e42d9ca8deb (2021.03 +75) MODIFIED
SYS: I am 0x20383347344D500700290049 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_INFO: DECK_FORCE=bcUSD found
DECK_INFO: compile-time forced driver bcUSD added
DECK_CORE: 2 deck(s) found
DECK_CORE: Calling INIT on driver bcUSD for deck 1
uSD: mount SD-Card [FAIL].
IMU: BMI088: Using I2C interface.
IMU: BMI088 Gyro connection [OK].
IMU: BMI088 Accel connection [OK]
IMU: BMP388 I2C connection [OK]
ESTIMATOR: Using Complementary (1) estimator
CONTROLLER: Using INDI (3) controller
MTR-DRV: Using brushed motor driver
SYS: About to run tests in system.c.
EEPROM: I2C connection [OK].
STORAGE: Storage check [OK].
IMU: BMI088 gyro self-test [OK]
ET: Pin:TX2 != 1 [FAIL]
ET: Pin:RX2 != 1 [FAIL]
ET: Pin:SCK != 1 [FAIL]
ET: Pin:MOSI != 1 [FAIL]
ET: Pin:MISO != 1 [FAIL]
ET: Pin:RX1 != 0 [FAIL]
ET: Pin:IO1 != 0 [FAIL]
ET: Pin:IO2 != 0 [FAIL]
ET: Pin:IO3 != 0 [FAIL]
ET: Pin:IO4 != 0 [FAIL]
DECK_CORE: Deck 0 test [FAIL].
DECK_CORE: Deck 1 test [OK].
SYS: deck [FAIL]
Furthermore (when the pin is disconnected) the sd deck is only creating empty logging files without any data. This may be due to my setup or some underlying problem. I use the following config file on the sd card.
1 # version
512 # buffer size in bytes
log # file name
1 # enable on startup (0/1)
on:fixedFrequency
500 # frequency
1 # mode (0: disabled, 1: synchronous stabilizer, 2: asynchronous)
gyro.x
gyro.y
gyro.z
ctrlINDI.cmd_roll
ctrlINDI.cmd_pitch
ctrlINDI.cmd_yaw
ctrlINDI.cmd_thrust
acc.z
I hope someone can help.
If something is not clear please respond as we can also lay contact via some other platform like discord, such that a conversation/call can clear some stuff up.
Regards
Max