3
« on: January 02, 2010, 09:20:52 PM »
Hi
I am working through the User-Guide First Steps section with Olimex LPC-P2378 board and have some comments about progress so far.
1. It would be useful to remind complete Newbies like me not to forget #include config.h in the new2ly created task source file (in my case martin.c which I added to the project. Spent quite a long time working out the compiler errors.
2. the fnDebugDec(ucCounter++,0,0); statement gives a compilation error (too many parameters) . On Checking the code in device.c it has indeed only 2 paraqmeters. I guess the .pdf needs updating with the correct code sample.
3. There seems to be a decrepency in the #define SERIAL_PORT_0 '3' in LPC in the .pf doc. In app-hwxxxx.h file this define expects an integer 3 rather than a char '3' not sure if this makes a difference.
4. I finally got a good build in DEBUG mode for the simulator but could not find any instruction as to how to get the simulted serial port to perform with UART_0 going to COM 2 on my pc using
TeraTerm. However I did get a TELNET connection to work (also from TeraTerm), so I had a go at building for the Hardware board with the following (seemingly ambiguous message back)
1>Performing Post-Build Event...
1>arm-none-eabi-gcc -march=armv4t -mlittle-endian -mthumb -mthumb-interwork -Wall -Wstrict-prototypes -I../../uTMartin-1 -D _GNU -D _LPC23XX -g -Os -Wl,-Map=uTMartin-1.map --no-gc-sections -nostartfiles -TuTaskerLPC23XX.ld -o uTMartin-1.elf Build/application.o Build/debug.o Build/webInterface.o Build/KeyScan.o Build/LCD.o Build/TFT.o Build/NetworkIndicator.o Build/startup_gnu.o Build/LPC23XX.o Build/GLCD.o Build/MODBUS.o Build/modbus_app.o Build/eth_drv.o Build/Driver.o Build/uMalloc.o Build/uTasker.o Build/Tty_drv.o Build/iic_drv.o Build/uFile.o Build/Watchdog.o Build/GlobalTimer.o Build/low_power.o Build/Ethernet.o Build/arp.o Build/dhcp.o Build/dns.o Build/ftp.o Build/http.o Build/icmp.o Build/ip_utils.o Build/ip.o Build/pop3.o Build/smtp.o Build/tcp.o Build/telnet.o Build/tftp.o Build/udp.o Build/webutils.o Build/NetBIOS.o
1>Build/LPC23XX.o:(.rodata+0x84): undefined reference to `fnMyFirstTask'
1>collect2: ld returned 1 exit status
1>cs-make: *** [uTMartin-1.elf] Error 1
1>Build log was saved at "file://c:\APPLICATIONS\uTASKER\uTaskerV1.4_LPC\Applications\utMartin-1\Simulator\uTasker___Win32_uTasker_LPC23XX_with_GNU_build\BuildLog.htm"
1>uTMartin-1 - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
A subsequent download to the board resulted in the App running (Led Blinking) but no output on either the Serial or TELNET connections.
I guess it is because the standard 'make_uTMartin-1_GNU_LPC23XX file (a clone of the DemoProject) does not yet include my Martin.c Task file. Some instructions for we Newbies (no previous experience with build-link-deploy chain) would be useful here.
Thanks in advance
FOXY (Martin Fox)
as I am not sure how/where/what to manually insert the necessary instructions into