Dear Stephan Excuse me,I do not understand what you means. Today I write a simple program to try again.like below. Compilation is pass. but link is error. I...
If I put a table of data in to flash memory and I know the absolute memory address location. How do I read the flash data in to an array from a specific...
Unless your arm cpu has built in floating point support such as the one I am using, all floating point operations have to be done in software. This means that...
... Thanks for your speedy reply... Sorry another question... if the flash memory was stored in bytes (char) rather an int.... would the definition be. ...
Dear Stephan I use samsung s3c2410 . It doesn't buildin hardware fpu. Would you please give your project with simple floating operation for me reference. my...
I'm sorry but all my code is proprietary and unfortunately I cannot give that out. One thing though you may want to consider is using fixed point math instead....
You are getting the warning because you are assigned a (char*) to an unsigned char*. Change both either to char* or unsigned char* and it will be happy. As far...
Oh one additional note on what I wrote below. Since you are working with flash memory, you actually can only read. Not write. But the same concept of course...
<snip> Sorry to be a pain... I have been through 4 of my old C books. int* memAddress = (int*)0x12000000; // Stephan's example code int* is not mentioned in...
There is no difference, just personal preference where you like the * :-) Stephan _____ From: gnuarm@yahoogroups.com [mailto:gnuarm@yahoogroups.com] On Behalf...
I'm not working with either gnuarm or a LPC23xx, but I might be able to help you with problems regarding the OpenOCD - only if you tell us what your problem...
Dear Stephan Thank you for your help ,I'll take your suggestion and using fixed point math .I have never saw this way to turn float into integer before.that...
To my reading, the reason that programmers put the asterix next to the variable name in the declaration is because the asterix "binds" on the variable name, ...
Dear Stephan Today I write a code for test cosin function. a error occured .... I think the math.h never be linked to code ... Why GNUARM 4.1.1 can't work...
You also need to link in the math library. Add to your linker / gcc command line: <gcc/linker commands> -lm The -l tells the linker/compiler to include a...
Dear John I follow your method ,add -lm to linker ,command line as below E:\ARM\2410_v5\arm-elf-ld -Ttext 0x00 -lm -o start.o main.o [enter] arm-elf-ld: cannot...
fs92004, I took your provided sample code: #include<math.h> int main() { double a =0 ; a=cos(90); } and compiled it with: arm-elf-gcc temp.c -nostartfiles -lm ...
... This looks a bit strange. "-o start.o" says that you are placing the output (ie. the elf file) into the file called start.o You need to put the library...
... math.h is never linked in. a .h file is compiled. You mean the math library. A few things I can suggest: 1) Generate a map file and look at it. Does it...
I built and installed gdb 6.6 with configure: ../gdb-6.6/configure --target=arm-elf on Linux X86 box. Builds fine, but "target rdi" is gone. "help target"...
Cripes, I used it all the time. Yes, it had it's issues, but I got a lot of mileage out of it. I guess this means they have stranded all the Jeeni users out...
Hi, Uh...they did stripped out also all other users of 3rd party tools who use rdi to connect their favorite JTAG tool to gdb. For example I am unable to use...
How can I pass values into a link script ? Or Can I ? I have a link script (ld script) that works to my liking now. I use expressions to define stack sizes,...
... Can you use expressions in the MEMORY definition? If so, that is a very new thing. ... According to the ld manual you can add the following to a command...
... Unfortunately, no. I have yet to get the linker script to things like that. May I suggest, the solution may be to write the script contents "on the fly"...