Skip to main content
21 events
when toggle format what by license comment
Nov 16, 2013 at 20:54 comment added F.N Yes i got it. Anyway. I ll try some other things and if i find something i ll inform you :) Thank you very much once again.
Nov 16, 2013 at 20:49 comment added jippie @F.N Also notice that that example doesn't call for inclusion of the C header files.
Nov 16, 2013 at 20:42 comment added jippie @F.N Don't know. Things have chaged since 'April 8, 2008' though. The toolchain has entirely different major versions (the first digit of the version number). Under water avr-gcc calls avr-as for you.
Nov 16, 2013 at 20:38 comment added F.N but this guy here ? how he made it work with avr-as? avr-as
Nov 16, 2013 at 20:35 comment added jippie @F.N nongnu.org/avr-libc/user-manual/assembler.html
Nov 16, 2013 at 20:33 comment added jippie According to the documentation, this is the way it works. You want the C-preprocessor invoked, then call gcc.
Nov 16, 2013 at 20:29 vote accept F.N
Nov 16, 2013 at 20:29 comment added F.N Yes i saw it. I compiled it , linked it and tested it . Led worked. Thank you very much. So the problem is in the assembler but do you think that there is a way to fix it or not ?
Nov 16, 2013 at 20:08 history edited jippie CC BY-SA 3.0
deleted 93 characters in body
Nov 16, 2013 at 20:02 history edited jippie CC BY-SA 3.0
deleted 93 characters in body
Nov 16, 2013 at 19:57 comment added jippie @F.N I updated the answer to reflect a somewhat useful proof of concept.
Nov 16, 2013 at 19:57 history edited jippie CC BY-SA 3.0
deleted 93 characters in body
Nov 16, 2013 at 19:34 history edited jippie CC BY-SA 3.0
deleted 93 characters in body
Nov 16, 2013 at 19:28 history edited jippie CC BY-SA 3.0
deleted 93 characters in body
Nov 16, 2013 at 19:27 comment added jippie Fair enough, I removed the last rjmp. The main label is a required part of the program, if you remove it you get receive an error message. Normally that is the where the main program is located.
Nov 16, 2013 at 19:23 comment added F.N OK. the object file now created but why all these happens ? I cannot understand. Also in your code the rjmp to main will never be executed because there is init's infinity loop above. Btw i cannot upvote because i am new user and i don't have reputation.
Nov 16, 2013 at 19:12 history edited jippie CC BY-SA 3.0
added 352 characters in body
Nov 16, 2013 at 19:02 comment added jippie Copy the exact source as in my answer and work from there. My proposed source builds on my system, otherwise I couldn't show you the disassembly listing.
Nov 16, 2013 at 19:00 comment added F.N Yes. I have already try the .S but once again it returns me an error and it doesn't create the object file. ledON.S: Assembler messages: ledON.S:8: Error: number must be positive and less than 32 such errors i believe that means that the I/O register is not editable.
Nov 16, 2013 at 18:58 history edited jippie CC BY-SA 3.0
added 169 characters in body
Nov 16, 2013 at 18:52 history answered jippie CC BY-SA 3.0