For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU.
This group is to exchange information to help users get started and learn how to use the devices.
Hello, I m using YAGARTO Tool to compile my code for CPU-AT91SAM7X512. This tool provide
ECLIPSE as editor and GCC VERSON 4.2.1 as compiler. I developed one project which is
consuming code memory around 265KBytes and 33KBytes of RAM. When i m runing this code it
works ok. Now i add other .C & .H files. But i m not calling any function or not using any
variables out of these last added files. I just add these files in project and then
compile those files. But i m not using any file out of last added files. Now when i run,
succesfully build code on cpu it executes some part of code and than what its doing not
able to understand. When i debug code i found that when it find devision operation, than
cpu will go somewhere else and not run next remaining code. After adding .C & .H files my
code size becomes around 353KBytes and RAM around 66KBytes. So, i want to know why my code
is not running proper if i add others .C & .H files, even i m not using those files in my
code ? I need those last added files but right now i just compile those files. I think
there may be some MAKEFILE problem. Because right now i found that i just compile code not
using added code. So, just compilation make this difference.
>------------------------------------
I am not getting solution. I add optoin "-ffunction-sections","-fdata-sections" in
compilation. After adding this option it is generation 0Kb of BIN file. But I dont want to
remove unwanted code. So, i remove above option. Because i will use those code afterwords.
I am getting Undefined Interrupt when exectuing devision statement. I don't know why
interrupt occuer. Because my code compile ok. Even before adding extra unused file, my
code is working well but after adding .c & .h files it gives Undefined Interrupt at
executing division operation. In division operation i m dividing WORD(2 Byte Unsigned
Data) with 1000.0 and saving result in float type variable. I also tried with adding float
cast for WORD variable.
So, why before adding other files devision works and after adding other .c & .h files,
devision gives Undefined Exception Interrupt(0x04).
------------------------------------

(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )