Open per1234 opened 8 years ago
From datasheet it might be a problem related to:
For I/O registers located in extended I/O map, "IN", "OUT", "SBIS", "SBIC", "CBI", and "SBI" instructions must be replaced with instructions that allow access to extended I/O. Typically "LDS" and "STS" combined with "SBRS", "SBRC", "SBR", and "CBR".
For example, yiou can put following code inside init_spi (in asmfunc.S):
lds r16,DDRH ; sbr r16,0x80 ; EN: output sts DDRH, r16 ;
and
lds r16,PORTH ; cbr r16,0x80 ; EN: output sts PORTH, r16 ;
note that this example is for pin enable on H.7
Thanks @anatom74! I'm caught up in other projects right now but I am definitely planning to try to resolve some issues and make some improvements to avr_boot at some point in the future. Of course if someone gets around to doing it before me I surely don't mind!
command:
avr-gcc 6.0.1 error message:
avr-gcc 4.9.2-atmel3.5.3-arduino2 message:
This was trying to build for SD CS Arduino pin 8 but I get similar errors for any bit on any port above G.
I haven't had much luck searching for information on this. The best I've found is http://www.nongnu.org/avr-libc/user-manual/group__avr__sfr__notes.html but I've tried every combination of the fixes listed and still couldn't compile but I'm just basically working on it randomly since I don't really understand what the problem is.