FreeRTOS compile problem

pinnor wrote on Thursday, January 03, 2008:

Hi to all, i’m trying to compile the LPC2368 Demo with Eclipse/GNU GCC. I followed the instructions present on the FreeRTOS’s site, so I installed Eclipse and the Yagarto Gcc tools but when I try to build-all project, I get this error:
‘%.o’ does not exist - don’t know how to make it

Can someone help me?
Regards,
Renato

davedoors wrote on Thursday, January 03, 2008:

Can you check that the bin directory of the Yagarto tools is in your path and which make is being used.

Open a command prompt and type

‘arm-elf-gcc --version’ - what is the result.
‘make --version’ - what is the result?

if you what which installed then also try

‘which make’

pinnor wrote on Thursday, January 03, 2008:

hello, I installed the YAGARTO GNU ARM toolchain and these are the answer of commands:
arm-elf-gcc --version
arm-elf-gcc (GCC) 4.2.2
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

make --version
"make" non è riconosciuto come comando interno o esterno,
un programma eseguibile o un file batch.

it seems that make commands is not found. which software have I to install to fix this problem?

thank you,
Renato

davedoors wrote on Thursday, January 03, 2008:

Go to http://sourceforge.net/project/showfiles.php?group_id=9328 and download the zip file that contains the binaries. Extract make.exe from the zip file and place it in your Yagarto/bin directory. Does that fix the problem?

pinnor wrote on Thursday, January 03, 2008:

Now seems that make command is found, but if I press F7 (build all) this is the message on the console window:

**** Build of configuration Default for project RTOSDemo ****

make all
arm-elf-gcc -c -g -O1 -Tlpc2368.ld -I . -I …/…/…/Source/include -I …/…/…/Source/portable/GCC/ARM7_LPC23xx -I …/…/Common/include -I ./webserver -I …/…/Common/ethernet/uIP/uip-1.0/uip -D ROWLEY_LPC23xx -D THUMB_INTERWORK -mcpu=arm7tdmi -D PACK_STRUCT_END=__attribute\(\(packed\)\) -D ALIGN_STRUCT_END=__attribute\(\(aligned\(4\)\)\) -fomit-frame-pointer -mthumb-interwork -mthumb main.c -o main.o
arm-elf-gcc: CreateProcess: No such file or directory
make: *** [main.o] Error 1

davedoors wrote on Thursday, January 03, 2008:

I dont know why you would get the createprocess error.  Neither yagarto or the make from UnxUtils need cygwin. If it cannot find a file you should get the following error [I renamed main.c to generate this error].

make: *** No rule to make target `main.c’, needed by `main.o’.  Stop.

You could try installing some of the cygwin stuff but really this should not be necessary.

pinnor wrote on Thursday, January 03, 2008:

Finally I am able to build all…using the make.exe file inside the OpenOCD installation folder but now I discover that the DemoProject is configured to run with wiggler debug interface but I have the amontec JTAGTiny. I follow the instructions presents on the freertos site and i change the external tools configuration but when i try to start the debug I get this message
Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-12-30 17:00 CET) svn: 247
Info:    openocd.c:94 main(): $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info:    configuration.c:50 configuration_output_handler(): Command parport_port not found
Info:    configuration.c:50 configuration_output_handler(): Command parport_cable not found
Error:   jtag.c:1464 jtag_init(): No valid jtag interface found (parport)
Error:   jtag.c:1465 jtag_init(): compiled-in jtag interfaces:
Error:   jtag.c:1468 jtag_init(): 0: ft2232

Is there something wrong?..What can I do to fix this problem?
Regards,
Renato

pinnor wrote on Thursday, January 03, 2008:

now the error message when i start the debug is:
Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-12-30 17:00 CET) svn: 247
Info:    openocd.c:94 main(): $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Error:   ft2232.c:1381 ft2232_init_ftd2xx(): unable to open ftdi device: 2
Error:   ft2232.c:1396 ft2232_init_ftd2xx(): ListDevices: 2

Error:   ft2232.c:1398 ft2232_init_ftd2xx(): 0: Amontec JTAGkey B
Error:   ft2232.c:1398 ft2232_init_ftd2xx(): 1: Y?
…What can I do to fix this problem?
Regards,
Renato

davedoors wrote on Thursday, January 03, 2008:

It clearly states on the documentation page that it is configured to use the Wiggler. To change the interface you will also need to change the OpenOCD config file to be correct for the Amontec. Also note the comments about disabling the MAM unless you have a revision of the LPC2000 chip that actually works.

pinnor wrote on Friday, January 04, 2008:

Yes, I know that the demo project is configured to use the Wiggler…and for this reason I reconfigure the Items OpenOCD Server and OpenOCD Programmer present in the external tools menu, to use the openocd-ftd2xx.exe program insted of openocd-pp.exe. For the OpenOCD Server I set the lpc2xxx_jtagkey.cfg file as arguments but I still get this error message:
Info:    openocd.c:93 main(): Open On-Chip Debugger (2007-12-30 17:00 CET) svn: 247
Info:    openocd.c:94 main(): $URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Error:   jtag.c:1253 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.
Error:   jtag.c:1442 jtag_init(): trying to validate configured JTAG chain anyway…
Error:   embeddedice.c:181 embeddedice_build_reg_cache(): unknown EmbeddedICE version (comms ctrl: 0x00000000)
Warning: arm7_9_common.c:742 arm7_9_assert_reset(): srst resets test logic, too

But the MCB2300 target board is power on.
What can I do to fix this problem?
Regards,
Renato