OLD POST:
Just wondering whether anyone is getting similar issues when importing to MPLAB. Ive made a piece of software to display a bar chart of an ADC. It simulates perfectly and compiles to .asm/.hex file stating it has only used 50% of the resources on PIC16F873. However when i import the .asm to MPLAB and click to build the project it comes up with "BUILD FAIL" due to "Link Step Fail", i read up on this as being a ram issue, yet Flowcode states im only using half the memory? Im confused?
NEW:
Ive attached a new copy of the code .fcf file, its not a big piece of code, all it does is produce a graph relating to the ADC, and also theres a snippet of c code that has no relation yet, but will eventually be used (does calculation for percentage). The code does the same as the above problems, i dont understand how im using up all the memory on such a simple bit of code. Any help would be grateful/ suggestions on how to improve efficiency as i have quite a bit more to produce.
Note: Sorry i put this in the wrong section originally.
Link Step Failed
-
- Posts: 3
- Joined: Fri Jan 22, 2010 9:25 am
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Link Step Failed
Hello,
You are running out of code space because you are actually using quite a large program and you are using things like floating point number manuipluation which will eat up a lot of program space on the device. You could upgrade your chip to a 16F877A and this would double the amount of program memory you have to play with.
You are running out of code space because you are actually using quite a large program and you are using things like floating point number manuipluation which will eat up a lot of program space on the device. You could upgrade your chip to a 16F877A and this would double the amount of program memory you have to play with.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel