Okay, I finally compiled it. The error above results from the fact that Makefile and makedefs are written for Linux environment. So I switched to Ubuntu.
In addition to the changes documented above, I had to do the following to successfully compile it:
1. Remove all references to vUSBTask
2. Remove the following Linker flags from the makedefs:
--entry ${ENTRY_${notdir ${@:.axf=}}} \
${LDFLAGSgcc_${notdir ${@:.axf=}}} \
These lines are followed by a map (-Map gcc/out.map) direction. As the ENTRY is not specified, the linker command results in:
LD gcc/RTOSDemo.axf
arm-none-eabi-ld -T rtosdemo_rdb1768_Debug.ld \
--entry \
\
-Map gcc/out.map -o gcc/RTOSDemo.axf gcc/cr_startup_lpc17.o gcc/main.o gcc/list.o (OTHER *.o FILES, etc.)
which results in the following error:
arm-none-eabi-ld: gcc/out.map: No such file: No such file or directory
LDFLAGSgcc is also not defined so it is no harm removing these flags as well.
3. Make following name changes (AHBSRAM0 and AHBSRAM1) to rtosdemo_rdb1768_Debug.ld
MEMORY
{
FLASH (rx) : ORIGIN = 0x0 LENGTH = 0x80000
SRAM (rwx) : ORIGIN = 0x10000000, LENGTH = 0x8000
AHBSRAM0 : ORIGIN = 0x2007c000, LENGTH = 0x4000
AHBSRAM1 : ORIGIN = 0x20080000, LENGTH = 0x4000
}
The generated binary size is 46148 Bytes. I have not yet run it. I shall do it tomorrow.
Now that i got my hello world up and running on my new board, i want to move onto more complex things. The only way to do that is to have an RTOS. Has anyone got the FreeRTOS running on their board ?
http://www.freertos.org/