Hello,
I am trying to compile to 16f877a and I get the : " Flowcode was unable to compile the flowchart's C code due to the following errors:
If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code"
I have many times this error but this time I noticed that if I change the pIC within flocode to ECIO then the compilation continues until it asks for the ECIO.
Any clue?
Andreas Achilleos
Unable to Compile-C Code
Moderator: Benj
- Steve
- Matrix Staff
- Posts: 3434
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: Unable to Compile-C Code
When I compiled your program I received the following error:
Basically, the chip you are using does not have enough spare RAM to cope with the two 256 card buffers in the FAT component. You will need to use a "bigger" chip - probably an 18F device.
Code: Select all
Error: Memory allocation failed - No remaining memory block (on target) with suitable start address, big enough for : 'mx_card_bufferl' in file: C:\Documents and Settings\steve\Desktop\oldfiles\Copy of aa\RTC ANDREAS WITH MACROS V3_2tov4.c size:256 bytesRe: Unable to Compile-C Code
Hello,
Yes, but actually that chip 16f877a can handle that, so in this case the memory consuption is done by my other flowchart?
Can EB006 board accept the 18f4550?
Regards,
Andreas Achilleos
Yes, but actually that chip 16f877a can handle that, so in this case the memory consuption is done by my other flowchart?
Can EB006 board accept the 18f4550?
Regards,
Andreas Achilleos
- Steve
- Matrix Staff
- Posts: 3434
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: Unable to Compile-C Code
The FAT component alone requires two 256-byte buffers plus some other allocations. The 877a has less than 400 bytes available.achillis1 wrote:Yes, but actually that chip 16f877a can handle that, so in this case the memory consuption is done by my other flowchart?
Yes it can. In fact, this was the chip I used when testing your program and it successfully compiled.achillis1 wrote:Can EB006 board accept the 18f4550?