Newbie - Linker Script Error
Hi, this is my first attempt at using C30 C compiler and I canot get a simple program to compile.
I am using the latest MPLAB7.52 and C30 upgrade.
I have created a new project using a 24FJ64GA004 device and tried to create a simple Hello World program like this:
When I build I get the error messages:
"Skipping link step. The project contains no linker script."
I looked at some examples and they have linker script .glb files, but when I try to add say "p24FJ64GA004.gld" it startscompiling stuff but then givesm e the error:
"C:\Program Files\Microchip\MPLAB C30\bin\pic30-coff-ld.exe Error: A heap is required, but has not been specified"
Anyone know what's going on?
Why do I have to include "linker scripts" to make a simple program compiler?, I'm not actually sure what this is doing...
Also, why does the compiler say it's used up 10% of my (64K) program memory?, just for printf?, surely not?!
Incidently, when I have a simple one-line program like "i++;" it tells me it's taken almost 1K of program memory. What's going on?, is there really that much overhead?
I have a lot of experinece with the HITECH C compiler for the 16 series, but this is my first attempt at the C30 compiler.