Tinkercademy MakeCode package for using a microSD adaptor with the BBC micro:bit (beta)
Switch branches/tags
Nothing to show
Clone or download
Latest commit 2961d0d Dec 6, 2017
Permalink
Failed to load latest commit information.
.vscode Initial! Mar 7, 2017
.gitignore Initial! Mar 7, 2017
FATDirHandle.cpp initial commit for sd card support Mar 13, 2017
FATDirHandle.h initial commit for sd card support Mar 13, 2017
FATFileHandle.cpp initial commit for sd card support Mar 13, 2017
FATFileHandle.h initial commit for sd card support Mar 13, 2017
FATFileSystem.cpp initial commit for sd card support Mar 13, 2017
FATFileSystem.h initial commit for sd card support Mar 13, 2017
LICENSE.txt Initial! Mar 7, 2017
Makefile Initial! Mar 7, 2017
MemFileSystem.h initial commit for sd card support Mar 13, 2017
README.md we should hide this Dec 6, 2017
SDFileSystem.cpp initial commit for sd card support Mar 13, 2017
SDFileSystem.h initial commit for sd card support Mar 13, 2017
ccsbcs.cpp initial commit for sd card support Mar 13, 2017
diskio.cpp initial commit for sd card support Mar 13, 2017
diskio.h initial commit for sd card support Mar 13, 2017
enums.d.ts initial commit for sd card support Mar 13, 2017
ff.cpp initial commit for sd card support Mar 13, 2017
ff.h update readme Mar 16, 2017
ffconf.h initial commit for sd card support Mar 13, 2017
integer.h initial commit for sd card support Mar 13, 2017
main.ts Initial! Mar 7, 2017
pxt.json initial commit for sd card support Mar 13, 2017
rekt.py initial commit for sd card support Mar 13, 2017
sdcard.cpp update readme Mar 16, 2017
shims.d.ts OOPS Mar 13, 2017
tests.ts initial commit for sd card support Mar 13, 2017
tsconfig.json Initial! Mar 7, 2017

README.md

how do i sdcard????

important notes about connecting the SF breakout

  • vcc -> vcc
  • gnd -> gnd
  • cmd -> MOSI (labelled MISO on the breakout)
  • D0 -> MISO (labelled MOSI on the breakout)
  • CD -> gnd
  • CLK -> SCLK
  • D3 -> CS (12/16)
  • D1, D2 and WP can be left floating.

the EF breakout probably won't work without stepping it up to 5V first, because there is an unbypassable 3V3 LDO on the VCC line.

known issues:

  • crashes after a couple of fwrites

  • there is apparently a memory leak in fclose() in certain mbedos versions on ARM

potential solutions:

  • use petit-fatfs to reduce footprint even further in memory (potential reason for fwrite crash with pxt)

  • ???