Mac 0 Posted April 23, 2010 Report Share Posted April 23, 2010 (edited) Using MPLAB 8.50 IDE with BoostC 6.97 (free/lite) and getting the following errors trying to compile a simple program for 16F1936; // // compiler evaluation for "enhanced" mid-range 16F1936 // #include <system.h> #pragma DATA _CONFIG1, _FOSC_INTOSC&_WDTE_OFF&_IESO_OFF&_FCMEN_OFF #pragma DATA _CONFIG2, _PLLEN_OFF&_LVP_OFF #pragma CLOCK_FREQ 16000000 void main() { osccon = 0b01111010; // 16-MHz INTOSC while(1) { // } } MPLAB generates the following dialog; "Failed to load C:\Development\PIC Projects - Boost C\16F1936 test.COF." And here's what I get in the MPLAB "output" window "build" tab; Clean: Deleting intermediary and output files. Clean: Deleted file "C:\Development\PIC Projects - Boost C\16F1936 test.HEX". Clean: Deleted file "C:\Development\PIC Projects - Boost C\16F1936 test.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostlink_pic.exe" -O1 -v -p "16F1936 test" -t 16F1936 BoostLink Optimizing Linker Version 6.97 http://www.sourceboost.com Copyright(C) 2004-2010 Pavel Baranov Copyright(C) 2004-2010 David Hobday Optimisation level:1 Internal Error: Data Type not found id:0xF0000001: failure BUILD SUCCEEDED: Fri Apr 23 08:27:29 2010 Another 12F683 project compiles fine. What am I doin' wrong? TIA, Regards, Mike Edited April 23, 2010 by Mac Quote Link to post Share on other sites
davidb 0 Posted April 23, 2010 Report Share Posted April 23, 2010 Presumably you tried it in SB IDE and it worked? I had a similar problem in the past when creating an MPLAB project so it might be because of the way you created the project. Try creating the project again from scratch (delete all the old files in the project folder except your test.c file) and then do as follows in MPLAB: Project > New Project name > test Project Directory > the folder where your test file lives Configure > Device > 16F1936 Now close MPLAB and save the workspace Now re-open MPLAB Project > Open test.mcp (navigate to the project folder) Right click on 'source file' in the workspace window > add files > open test.c The project should now compile and link as follows: Clean: Deleting intermediary and output files.Clean: Deleted file "test.OBJ". Clean: Deleted file "C:\SW_IN_PROGRESS\Forum\test.HEX". Clean: Deleted file "C:\SW_IN_PROGRESS\Forum\test.mcs". Clean: Done. Executing: "C:\Program Files\SourceBoost\boostc_pic16.exe" test.c -O1 -W1 -t 16F1936 BoostC Optimizing C Compiler Version 6.97 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2010 Pavel Baranov Copyright© 2004-2010 David Hobday Licensed to Farn50598 under Single user Pro License for 1 node(s) Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited test.c success Executing: "C:\Program Files\SourceBoost\boostlink_pic.exe" "C:\SW_IN_PROGRESS\Forum\test.obj" -O1 -p "test" -t 16F1936 BoostLink Optimizing Linker Version 6.97 http://www.sourceboost.com Copyright© 2004-2010 Pavel Baranov Copyright© 2004-2010 David Hobday Optimisation level:1 Building CASM file Memory Usage Report =================== RAM available:512 bytes, used:0 bytes (0.0%), free:512 bytes (100.0%), Heap size:336 bytes, Heap max single alloc:95 bytes ROM available:8192 words, used:11 words (0.2%), free:8181 words (99.8%) success Loaded C:\SW_IN_PROGRESS\Forum\test.COF. BUILD SUCCEEDED: Fri Apr 23 14:39:10 2010 Regards davidb Quote Link to post Share on other sites
Mac 0 Posted April 23, 2010 Author Report Share Posted April 23, 2010 Hi David, Your method worked and so I went back and tried again using MPLAB "project wizard" and that worked as well. Thank you for your time and kind consideration. Kind regards, Mike McLaren, K8LH Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.