Target memory usage with different compiler versions ok.... I have embarrassed myself and not looked hard enough in the first place.
The issue was garbage collection. With a few adjustments to my makefile (and some obscure...
Sunday, 27 September 2020 - 07:39
Target memory usage with different compiler versions avrlibc could/would change code size and stack usage.
Statics and globals - potentially - if there are some changes to type defs. However, my types are explicit as to size...
Sunday, 27 September 2020 - 07:10
Classes and noinit Thanks for the correction.
I tried
__attribute__ ((noinit))It compiles.... it seems to do nothing.
There was a warning
warning: 'noinit' attribute directive ignored [-...
Saturday, 22 August 2020 - 08:11
Classes and noinit Hi Andrey,
I tried
extern ErrorLog errorLog __attribute__ ( (".noinit") );but always rx'ed the error "expected ')' before string constant".
All of the other avr examples I...
Wednesday, 19 August 2020 - 23:21
atMega2560 and DRV8889 Guys,
I got back to this and as usual it was a silly config error. I had set the relevant three SPI pins as outputs... except I had set one as an output twice and missed one....
Tuesday, 19 May 2020 - 12:46
LCD 8230 and avrMega2560 Thanks for both responses.
I had a go importing and get the error
"Failed to import Arduino sketch.unexpected token:
Token('for', 3645, 3648)"
My friend...
Saturday, 18 April 2020 - 05:12
Stack/Heap Overrun? personally I fill my stack with 0xaa (0xDEADBEEF is also popular) and periodically check that a band of these values exist between my globals/statics and the stack.
if...
Thursday, 11 September 2014 - 02:23
mass production/how to burn many chips? I am sure that there are smart ways to combine the application and boot code if you are a toolchain guru.
A simple way would be...
1. get your uC working OK with...
Thursday, 11 September 2014 - 02:19
gcc++ For loop problem Quote:Hi, this is my first gcc++ attempt. I have written many programs for Windows using c++.
Not sure if this is also a start for you in the world of uCs but if it is....
The...
Friday, 5 September 2014 - 02:53
C++ vtable size There is a fair bit of discussion on vtable size in AVRs of you search in the forum. for a RAM constrained AVR this is a real downside of using vtables.
with a sam.... don't you...
Monday, 1 September 2014 - 03:17
problem with my own i2c library ! without reading the code i am guessing if "start" doesn't work and "start_wait" does that you are probably writing to some devices before they are ready to accept more data.
look...
Monday, 1 September 2014 - 02:57
another C++ question (templates) This is the right approach.
Imagine you are writing a normal class with constructors and so on.
when you say TemplateClass (say) the compiler actually creates a class called...
ok.... I have embarrassed myself and not looked hard enough in the first place. The issue was garbage collection. With a few adjustments to my makefile (and some obscure...
avrlibc could/would change code size and stack usage. Statics and globals - potentially - if there are some changes to type defs. However, my types are explicit as to size...
Thanks for the correction. I tried __attribute__ ((noinit))It compiles.... it seems to do nothing. There was a warning warning: 'noinit' attribute directive ignored [-...
Hi Andrey, I tried extern ErrorLog errorLog __attribute__ ( (".noinit") );but always rx'ed the error "expected ')' before string constant". All of the other avr examples I...
Guys, I got back to this and as usual it was a silly config error. I had set the relevant three SPI pins as outputs... except I had set one as an output twice and missed one....
Thanks for both responses. I had a go importing and get the error "Failed to import Arduino sketch.unexpected token: Token('for', 3645, 3648)" My friend...
personally I fill my stack with 0xaa (0xDEADBEEF is also popular) and periodically check that a band of these values exist between my globals/statics and the stack. if...
I am sure that there are smart ways to combine the application and boot code if you are a toolchain guru. A simple way would be... 1. get your uC working OK with...
Quote:Hi, this is my first gcc++ attempt. I have written many programs for Windows using c++. Not sure if this is also a start for you in the world of uCs but if it is.... The...
There is a fair bit of discussion on vtable size in AVRs of you search in the forum. for a RAM constrained AVR this is a real downside of using vtables. with a sam.... don't you...
without reading the code i am guessing if "start" doesn't work and "start_wait" does that you are probably writing to some devices before they are ready to accept more data. look...
This is the right approach. Imagine you are writing a normal class with constructors and so on. when you say TemplateClass (say) the compiler actually creates a class called...
Pages