AngusMcDoon
Well-Known Member
hmm..pot is connected but does not seem to alter it very much..i have ploughed on anyway and now have everything connected.
Having a bit of trouble compiling the code..i get the following:
[cc] c:/gnu_tools_arm_embedded/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: mast_display.elf section `.co_stack' will not fit in region `ram'
[cc] c:/gnu_tools_arm_embedded/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: region `ram' overflowed by 144 bytes
[cc] collect2: ld returned 1 exit status
Any ideas?
I made a change to link.ld file that Coocox generates. This is to force some constant data into flash rather than in RAM, which was where it was putting it. If this constant data goes into RAM, you run out, which is what the above error messages are about.
I added this to link.ld...
.const :
{
*(.const .const.*)
} > rom
just below the .text section. The problem is that Coocox is trying to regenerate the link.ld file every time you compile and overwriting my added section. The solution is to get link.ld out of the zip file I sent you again overwriting the one you have in your project folder, and then using Windows Explorer (or a DOS command) make link.ld read only. This should stop Coocox zapping it on every compile. I guess the read-only attribute didn't survive the zipping/unzipping.