zevero / avr_boot

Arduino Bootloader to Flash from SD Card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File not mounted

marcelwinter04 opened this issue · comments

Hello,

I´m having the issue that the bootloader cannot mount the sd card.

fresult = pf_mount(&Fatfs); /* Initialize file system */ if (fresult != FR_OK) { /* File System could not be mounted */
fresult is FR_NOT_READY

Here are my def;
MCU_TARGET = atmega1284p BOOT_ADR = 0x1F000 F_CPU = 14745600 SD_CS_PORT = PORTB SD_CS_DDR = DDRB SD_CS_BIT = 1

is there anything else i have to check oder edit? Does anyone else have the same error?
With the arduino cardinfo example program everything works fine, here is also the infos that the cardinfo program outputs

Initializing SD card...Wiring is correct and a card is present.

Card type: SD2
Clusters: 61268
Blocks x Cluster: 64
Total Blocks: 3921152

Volume type is: FAT16
Volume size (Kb): 1960576
Volume size (Mb): 1914
Volume size (Gb): 1.87

Files found on the card (name, date and size in bytes):
SYSTEM1/ 2019-02-08 09:41:40
INDEXE
1 2019-02-08 09:41:40 76
WPSETT~1.DAT 2019-02-08 09:41:42 12
FIRMWARE.BIN 2019-02-18 13:54:38 61112`

I'm having the same issue FR_NOT_READY. Does anyone have a clue?