Re: [avr-gcc-list] lcdprint with dtostrf

2017-07-15 Thread James Hamilton
​Ismail: could you please post more of your code, especially the definition of buffer? Also, do you have the word "float" in your call to stostrf, or were you just letting us know that "number" is a float? The type of "number" should not be in the call to dtostrf(). From some forum posts, it loo

Re: [avr-gcc-list] String declaration query

2014-07-06 Thread James Hamilton
They may be different under the hood and have subtly different meanings, but both work in Linux GCC and AVR-GCC without the __flash qualifier. I've seen these statements used interchangeably in Linux C code, for instance. The relevant question is, what is the behavior of __flash that causes one t

Re: [avr-gcc-list] Editor for binary files

2014-02-02 Thread James Hamilton
What you're looking for is a hex editor. Three are countless programs that will do the job. Use your favorite search engine to search for "hex editor for Linux" or whatever other OS you're running, and that should get you started. Good luck, ~James On Feb 3, 2014 12:30 AM, "dfx" wrote: > Hi, >

Re: [avr-gcc-list] Location of symbol definition

2014-01-26 Thread James Hamilton
That particular #define is one of many that is set by the compiler. That one is based on the architecture you selected in the "-mmcu" option to GCC. In GCC, you can see all of the macros defined by using the "-dM -E" options. For example, this will show you everything the compiler is adding befo

Re: [avr-gcc-list] How to pass an array to founction

2013-12-24 Thread James Hamilton
Something like this: void compute(char *a, int aLen) { // could also be "unsigned int aLen" if (a == NULL || aLen < 1) { // error return; } a[0] = 'A'; // make sure to check the length of the array before referencing deeper into it ... ... } char arr[20]; compute(arr, 20);