Sunday, 15 September 2013

c - System calls not working in Atmel AVR Studio (with ASF) -



c - System calls not working in Atmel AVR Studio (with ASF) -

i not getting answers on avr freaks forum , wonder if here help me.

the reply might lie in this question, not sure why necessary.

basically, have fist ever atmel project (avr studio 6, uc3 processor). code compiles , links , can load atmel board , step through in debugger.

however, when seek step on (or run until breakpoint on line after) (valid) phone call sprintf(), malloc() or memcpy() (there may more, have not yet discovered), ide never returns next line of code, seeming hang, or run forever.

[note] compiler optimization off

do need set linker options (e.g link static (which tried & didn't help)? or build library?

what confuses me code compilers , links - beingness linked when phone call these standard functions? if need else expect compiler or linker error, none - why won't code run?

sorry such stupid n00nb question, first micro-controller project.

i discovered cpu on board engineering science sample , not supported atmel studio without new io.h file.

i sort of figured out question: http://www.avrfreaks.net/index.php?name=pnphpbb2&file=viewtopic&t=106652

sorry have troubled you.

c standard-library avr-gcc atmel avr-studio6

No comments:

Post a Comment