Hi, I've changed my gcc compiler form gcc-3.3.1 to gnuarm's gcc-4.0.1. While integrating with Keil's uVision3 IDE I'm getting (while linking) above mentioned error (for every *.o file created from *.c). I checked out, that the error does't occur when disabling option "Enable ARM/Thumb Interworking" on Assembler tab in "Options for Target..." dialog box. So, occuring (while linking with arm-elf-ld) of this error is related to way of assembling Startup.s file (with or without option -mthumb-interwork). What could be reason of such behaviour? With gcc-3.3.1 it was ok. Regards, Arek
GNUARM "ERROR: lcd.o uses software FP, whereas main.elf uses hardware FP"
Started by ●February 22, 2006
Reply by ●February 22, 20062006-02-22
try to pass the -mno-fpu parameter to your assembler (if you dont have a FPU). ----- Original Message ----- From: arrek_x To: lpc2000@lpc2... Sent: Wednesday, February 22, 2006 1:45 PM Subject: [lpc2000] GNUARM "ERROR: lcd.o uses software FP, whereas main.elf uses hardware FP" Hi, I've changed my gcc compiler form gcc-3.3.1 to gnuarm's gcc-4.0.1. While integrating with Keil's uVision3 IDE I'm getting (while linking) above mentioned error (for every *.o file created from *.c). I checked out, that the error does't occur when disabling option "Enable ARM/Thumb Interworking" on Assembler tab in "Options for Target..." dialog box. So, occuring (while linking with arm-elf-ld) of this error is related to way of assembling Startup.s file (with or without option -mthumb-interwork). What could be reason of such behaviour? With gcc-3.3.1 it was ok. Regards, Arek SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors Pic microcontrollers ------ YAHOO! GROUPS LINKS a.. ------
Reply by ●February 22, 20062006-02-22
uuups, uV3 simply provides possibility to add misc controls to parameters list. One again thank you for help!
Reply by ●February 22, 20062006-02-22
On "options for target", guide "assembler", box "Misc Controls", type "-mno-fpu". This setting will set this option for ALL your assembly files on your project. If you want to set this option only for a few files, group then on a common folder on "Project Workspace", right-click the folder and select the first item on popup menu, "Options for Group (...)". Same setting: guide "Assembler", box "Misc Controls". You can configure this options for a single file to: instead right-clicking on a folder, right-click on a file. It should work for you. I dont know if it is the best way to solve this issue anyway. If someone have other way on doing it... Regards, Thiago Takehara Computer Engineer Engworks Industrial LTDA - R&D Division ----- Original Message ----- From: arrek_x To: lpc2000@lpc2... Sent: Wednesday, February 22, 2006 5:24 PM Subject: [lpc2000] Re: GNUARM "ERROR: lcd.o uses software FP, whereas main.elf uses hardware FP" --- In lpc2000@lpc2..., "Thiago Takehara" <thiago@...> wrote: > > try to pass the -mno-fpu parameter to your assembler (if you dont have a FPU). My ARM is LPC2138, and it doesn't have FPU indeed. It helped, thak you! :). I tested it by manually preparing makefile and using external make utility. Now the question is, how to force uVision3 to add -mno- fpu to arm-elf-as's parameters list. uV3 user can only change settings in dialog box, depending on which uV3 prepares parameters. AFAIK it can not be simply modified by the programmer :(. Of course, I can resign using uV3 and use Programmer Notepad for example, but I'd like to stay by uV3. Best regards, Arek SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors Pic microcontrollers ------ YAHOO! GROUPS LINKS a.. ------
Reply by ●February 23, 20062006-02-23
> I've changed my gcc compiler form gcc-3.3.1 to gnuarm's
gcc-4.0.1.
> While integrating with Keil's uVision3 IDE
I'm getting (while linking)
> above mentioned error (for every *.o
Can you explain how to integrate gcc-4.0.1 with keil?
I tried but uVision3 generates error like object file not found.
Best Regards,
Mukund Deshmukh.
Beta Computronics Pvt Ltd,
10/1, IT Park, Parsodi,
Nagpur-440022
Cell - 9422113746
Reply by ●February 23, 20062006-02-23
--- In lpc2000@lpc2..., Mukund Deshmukh <betacomp_ngp@...> wrote: > > > I've changed my gcc compiler form gcc-3.3.1 to gnuarm's gcc-4.0.1. > > While integrating with Keil's uVision3 IDE I'm getting (while linking) > > above mentioned error (for every *.o > > Can you explain how to integrate gcc-4.0.1 with keil? > I tried but uVision3 generates error like object file not found. > Could you tell what exactly the error is? I installed gcc-4.0.1. I'm not using Cygwin, so while installing I checked option "Install Cygwin DLLs". Unfortunately, there's file cygintl-3.dll missing in /GNUARM/bin. Temporarely I copied and renamed file cygintl-2.dll to cygintl-3.dll. It seems to work, but it's not a solution I can recommend. Better way is to install libintl3 package (probably), but I havent tried yet. Then I met an error described above, and solved it by adding -mno-fpu to assembler's parameter list, like Thiago Takehera wrote. Regards, Arek
Reply by ●February 23, 20062006-02-23
> > > I've changed my gcc compiler form gcc-3.3.1 to
gnuarm's gcc-4.0.1.
> > > While integrating with Keil's
uVision3 IDE I'm getting (while
> linking)
> > > above mentioned error (for every *.o
> >
> > Can you explain how to integrate gcc-4.0.1 with keil?
> > I tried but uVision3 generates error like object file not found.
> >
>
> Could you tell what exactly the error is?
>
I am using winarm.
The gcc compiler down loaded from Keil site works well.
But if I use winarm, it gives object file not found.
By the way I have observed that code size is large (5000) when I compile
with gcc from keil and its very low (1000 bytes) when I compile with winarm.
Any idea?
Best Regards,
Mukund Deshmukh.
Beta Computronics Pvt Ltd,
10/1, IT Park, Parsodi,
Nagpur-440022
Cell - 9422113746
Reply by ●February 23, 20062006-02-23
Ive downloaded this file from http://www.willamette.edu/~mbentley/bin/ . Because I use cygwin, I tried not to install cygwin dlls with GNUARM, but it was incompatible with my cygwin1.dll (maybe because Ive rebased...). I could not find make for GNUARM. Someone knows if it exists? In case the answer is 'no', can I use the standard GNU make from cygwin with GNUARM? Regards, Thiago Takehara Computer Engineer Engworks Industrial LTDA - R&D Division ----- Original Message ----- From: arrek_x To: lpc2000@lpc2... Sent: Thursday, February 23, 2006 8:10 AM Subject: [lpc2000] Re: GNUARM "ERROR: lcd.o uses software FP, whereas main.elf uses hardware FP" --- In lpc2000@lpc2..., Mukund Deshmukh <betacomp_ngp@...> wrote: > > > I've changed my gcc compiler form gcc-3.3.1 to gnuarm's gcc-4.0.1. > > While integrating with Keil's uVision3 IDE I'm getting (while linking) > > above mentioned error (for every *.o > > Can you explain how to integrate gcc-4.0.1 with keil? > I tried but uVision3 generates error like object file not found. > Could you tell what exactly the error is? I installed gcc-4.0.1. I'm not using Cygwin, so while installing I checked option "Install Cygwin DLLs". Unfortunately, there's file cygintl-3.dll missing in /GNUARM/bin. Temporarely I copied and renamed file cygintl-2.dll to cygintl-3.dll. It seems to work, but it's not a solution I can recommend. Better way is to install libintl3 package (probably), but I havent tried yet. Then I met an error described above, and solved it by adding -mno-fpu to assembler's parameter list, like Thiago Takehera wrote. Regards, Arek SPONSORED LINKS Microcontrollers Microprocessor Intel microprocessors Pic microcontrollers ------ YAHOO! GROUPS LINKS a.. ------
Reply by ●February 23, 20062006-02-23
On 2/23/06, Thiago Takehara <thiago@thia...> wrote:
>
> Ive downloaded this file from
http://www.willamette.edu/%7Embentley/bin/>" target="_blank" rel="nofollow">http://www.willamette.edu/~mbentley/bin/<http://www.willamette.edu/%7Embentley/bin/>.
Because I use cygwin, I tried not to install cygwin dlls with GNUARM, but
> it was incompatible with my cygwin1.dll (maybe because Ive rebased...).
>
> I could not find make for GNUARM. Someone knows if it exists? In case the
> answer is 'no', can I use the standard GNU make from cygwin with
GNUARM?
>
> Regards,
>
> Thiago Takehara
> Computer Engineer
> Engworks Industrial LTDA - R&D Division
>
Yes - I think you can use any make utility you like.
--
Jim Parziale
nuncio.bitis@nunc...
Malden, MA
Reply by ●February 23, 20062006-02-23
--- In lpc2000@lpc2..., "Thiago Takehara" <thiago@...>
wrote:
> I could not find make for GNUARM. Someone knows if
it exists? In
>case the answer is 'no', can I use the standard GNU make from
cygwin
>with GNUARM?
You surely can. Make is just a make, and nothing but make ;).
There's a helloworld_gnuarm.zip example in Files section, where
Microsoft's NMAKE has been used for example.