User Tools

Site Tools


projects:crazyflie2:expansionboards:microsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:crazyflie2:expansionboards:microsd [2018-05-30 18:59]
whoenig [Data Logging]
projects:crazyflie2:expansionboards:microsd [2021-06-24 16:13]
kimberly
Line 1: Line 1:
 +
 +<WRAP center round important 60%>
 +This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/documentation/system/]] or
 +[[https://www.bitcraze.io/documentation/repository/]]
 +</WRAP>
 +
 +
 +
 ====== micro-SD expansion deck ====== ====== micro-SD expansion deck ======
  
Line 46: Line 54:
 </code> </code>
 where fileName is a file from the µSD-Card. For convenience there is also an [[https://github.com/bitcraze/crazyflie-firmware/blob/master/tools/usdlog/example.py|example.py]] which shows how to access and plot the data. where fileName is a file from the µSD-Card. For convenience there is also an [[https://github.com/bitcraze/crazyflie-firmware/blob/master/tools/usdlog/example.py|example.py]] which shows how to access and plot the data.
 +
 +===== Current limitations [SOLVED] ======
 +The SD-Card is using the SPI bus on the deck port to communicate. This has turned out to have some implications for the other decks that use the SPI bus. The effected decks are the Loco-deck and the Flow v1,v2 deck. An [[https://github.com/bitcraze/crazyflie-firmware/issues/270|issue]] has been open about it and this has finally been solved but there might still be interesting to use the other SPI bus sometimes. One workaround is to use a "hidden" SPI on the deck port that is multiplexed with TX1, RX1 and IO_4. This SPI port is called SPI3 in the STM32F405 and after [[https://github.com/bitcraze/crazyflie-firmware/commit/bfedc1ca97824434758269a0af255b0fa9afefbf|this]] commit there is a possibility to switch to this SPI bus.
 +
 +  - First thing the SD-card deck needs to be patched, CS->RX2(PA3), SCLK->TX1(PC10), MISO->RX1(PC11), MOSI->IO_4(PC12) and this is a quite hard to cut the small lines and solder small patch wires. Easier is to use a sd-card breakout deck such as [[https://www.sparkfun.com/products/544|this]] and solder wires to e.g. the battery holder board.
 +  - Compile the firmware with "CFLAGS += -DUSDDECK_USE_ALT_PINS_AND_SPI" in your config.mk file.
 +  - If you want to use the Loco-deck at the same time, the alternative pins for this must be used. This means cutting GS1 and GS2 underneeth the loco-deck and soldering the bridged GS3 and GS4. Then add "CFLAGS += -DLOCODECK_USE_ALT_PINS" to you config.mk as well.
 +
 +
  
projects/crazyflie2/expansionboards/microsd.txt · Last modified: 2021-06-24 16:13 by kimberly