some transfer timing tests: pretty slow. Fastest I can get is about 16 kBytes/s

This commit is contained in:
Markus Fröschle
2012-12-16 12:11:32 +00:00
parent 05f6a79afc
commit 286fde92f0

View File

@@ -72,14 +72,14 @@ void sd_card_init(void)
fres = f_open(&file, FLASHCODE_NAME, FA_READ); fres = f_open(&file, FLASHCODE_NAME, FA_READ);
if (fres == FR_OK) if (fres == FR_OK)
{ {
uint32_t size; /* length of code piece read */
uint32_t total_size = 0L;
/* /*
* yes, load and execute it * yes, load and execute it
* *
* FIXME: we will need some kind of user confirmation here * FIXME: we will need some kind of user confirmation here
* to avoid unwanted flashing or "bootsector viruses" before going productive * to avoid unwanted flashing or "bootsector viruses" before going productive
*/ */
uint32_t size; /* length of code piece read */
uint32_t total_size = 0L;
uint32_t start_time = MCF_SLT_SCNT(0); uint32_t start_time = MCF_SLT_SCNT(0);
uint32_t end_time; uint32_t end_time;
uint32_t time = 0; uint32_t time = 0;