NetBurner 3.5.0
PDF Version |
|
The SD/MMC flash card interface is installed on NetBurner Network Development Kit (NNDK) development board. The schematic representation is shown below:
SD/MMC Pin | SD/MMC Signal Name | Modxxxx Signal Connection |
---|---|---|
1 | /CS, Chip Select | J2-35 - with 10k pull-up* |
2 | DI, Data In | J2-28 - QSPI DOUT |
3 | GND | Ground |
4 | VCC | VCC 3.3V |
5 | CLK | J2-J5 - QSPI CLK |
6 | GND | Ground |
7 | DO, Data Out | J2-J7 - QSPI DIN |
8 | NC, No Connection | No Connection |
9 | NC, No Connection | No Connection |
D | CD, Card Detect | J2-47 - with 10k pull-up* |
W | WP, Write Protect | J2-40 - with 10k pull-up* |
Com | Common | Ground |
Com | Common | Ground |
These signals can be any available GPIO pins on the NetBurner module, with a corresponding software change in mmc_m7.cpp
for the MODM7AE70 or mmc_mcf.cpp
for the other platforms to specify the signal name.
The SD/MMC flash card connector used on the NetBurner development board is available from Mouser Electronics, part number 688-SCDA1A0901.
The SD/MMC must support native SPI mode transfers, which is common for most SD/MMC cards. Up to 2GB is supported for standard SD/MMC and up to 32GB is supported for SDHC.
The EFFS normally requires exclusive use of the SPI interface. The standard software and drivers operate in this mode. There are also performance reasons for exclusive use. While it may be possible to share the SPI with other peripherals, it is not supported in the development tool suite.
You can modify the default pin selections for the interface control signals in \nburn\platform\<platform>\mmc_m7.cpp
for the MODM7AE70, or nburn\platform\<platform>\mmc_mcf.cpp
for the other platforms. The relevant functions in this file are lsited below. Note that the values in these functions must be used on the NetBurner development board since the board is wired in this configuration.
For the ColdFire based platforms (MOD5441X, SB800EX, and NANO54415), you can enable the SD/MMC SPI interface to work with the NetBurner interrupt driven SPI driver instead of the default polling mode driver. This will result in slightly lower SD/MMC performance but overall higher system performance. This is useful if you find that your network performance or user tasks run poorly during file system accesses. A modification must be made in nburn\platform\<platform>\mmc_mcf.cpp
, followed by a rebuild of the platform system directory. Near to top of this file, the following line should be uncommented: