Hello,
I am redoing my code on a Due which used to compile and run and I get the error:
c:/program files (x86)/arduino/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe:
address 0x20088080 of
C:\Users\MYUSERNAME\AppData\Local\Temp\build2309789141682166882.tmp/MYPROGRAM.cpp.elf
section `.bss' is not within region `ram'
When I go to C:\users\MYUSERNAME\AppData\Local\Temp\build2309789141682166882.tmp, I don't see any file ending with .elf
This problem is happening because I am redoing code inside:
template<typename Data>
/**
@brief
*/
class Vector {
public:
size_t d_size; // Quantity of stored objects
size_t d_capacity; // allocated capacity (here, it is forced to 10.)
Data d_data[10]; // storage
public:
// Default constructor
Vector() {
d_size=0;
d_capacity=10;
};
//,,, more code...
}
The change is to get rid of all new and delete commands and just put a fixed array. I get the compile error 3 times, just id doesn't say where in the source file there's a problem. How can I get that?
Exactly what does the error mean? Is it running out of RAM?
I will also see if it is feasible to not redo the whole class and see where it stops being compile-able.
Advice please,
Thanks,
Frank