Hello,
I have shrink the bootloader. Delete a few writeeprom lines that not comes with the bootloader, and it compile fine 99% again
With sd card of 256kb it works great but not with 4gb sd card.
It shows always Gbdriveerror value 233
This is a config_MMCSD_HC.bas that i use for Atmega2560
Const Cmmc_soft = 0
#if Cmmc_soft = 0
' --------- Start of Section for HW-SPI ----------------------------------------
''Portd_pin6ctrl = &B00_011_000
' define Chip-Select Pin
Config Pinf.1 = Output
Mmc_cs Alias Portf.1
Set Mmc_cs
Config Portb.0 = Output
Spi_ss Alias Portb.0
Set Spi_ss
'FOR XMEGA DEVICES
#if _xmega = 1
#else
' HW-SPI is configured to highest Speed
' Config Spi = Hard , Interrupt = Off , Data Order = Msb , Master = Yes , Polarity = High , Phase = 1 , Clockrate = 4 , Noss = 1
Config Spi = Hard , Interrupt = Off , Data Order = Msb , Master = Yes , Polarity = High , Phase = 1 , Clockrate = 16 , Noss = 1
'Spsr = 1 ' Double speed on ATMega128
Spiinit
#endif
' --------- End of Section for HW-SPI ------------------------------------------
#else
#if _xmega
' Portd_pin6ctrl = &B00_011_000
#endif
#endif
'========== End of user definable range
Any idea why not works?
Thanks in advance
toto
↧