IAR C-compiler for AVR: Array of pointers to strings in flash

Feb 03, 2004 20 Replies

You have all the source for the libraries under 'src' in the installation root for the AVR Workbench (which is in the directory 'D:/Program Files/IAR Systems/Ew23/avr' on my computer).

Basically what you have to do is to recompile the write formatter (IIRC, in file frmwri.c, but you have to look that up) and maybe some other files containing printf; If you just make a copy of them and add them to your project the linker will select your functions instead of those in the precompiled libraries.

There are some descriptions about this in the C Compiler Manual (look for _formatted_write... at pages 32-38 in my version), but to get support specifically on your problem I suggest you contact our support department: they are really good at solving these kinds of problems and have more experience with all the details.

You find them on:

formatting link

You will also find application notes and technical articles at the same place.

Best wishes, Mats Kindahl

IAR Systems in Uppsala, Sweden. Any opinions expressed are my own and not those of my company. Spam prevention: contact me at mNaOtSkPiAnM@acm.org or mNaOtSs.kPindAahMl@iar.se, removing the *NO SPAM* from the address.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required