|
|
View previous topic :: View next topic |
Author |
Message |
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
[Solved] Command line build - different Windows 7 and 10? |
Posted: Mon Dec 16, 2019 9:17 am |
|
|
My work laptop is in the shop, so I have been using a Windows 7 PC this past week. The command line batch file I use to build does not run, and I wondered if it was a difference with Windows 7 or something related to doing a brand new clean install of CCS and something needs to be set up.
I have a project that builds fine in the CCS IDE, but when I launch it from the command line, it can't find a header file. I run my command line (located in the same directory as the source files and the project):
Code: | CCSC BUILD=Bootloader.ccspjt out="Output" #PARTITION='*' #BOARD=CONTROL |
...and I get an error that one of my header files cannot locate the main device header file.
"Boards.h, Line 74
File can not be opened"
Line 74 is:
#include <24FJ256GA106.h>
I expect there may be some difference with PATH or something on Windows 7 versus 10.
Anyone know of something?
I just got e-mail from DELL that my laptop is back on its way, so hopefully I won't have to worry about this much longer. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Last edited by allenhuffman on Tue Dec 17, 2019 10:15 am; edited 1 time in total |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Mon Dec 16, 2019 9:36 am |
|
|
I guess it's not my include files that include other include files ;-)
I just made a brand new generic project using the PIC24 Wizard. It has only main.c and main.h. It has the same issues when trying to build from the command line.
Hurry back to me, Windows 10. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Mon Dec 16, 2019 9:59 am |
|
|
I use it in this PC with W7..maybe it's a 'permissions' or 'user' quirk ? I'm the only one on this PC,set as 'admin', so everything 'should' be available.. |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Mon Dec 16, 2019 10:03 am |
|
|
Known issue, it seems. Support suggests editing the ccsc.ini file to fix it and add appropriate locations like:
I="C:\Program Files (x86)\PICC\devices\;C:\Program Files (x86)\PICC\drivers\" _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Mon Dec 16, 2019 11:54 am |
|
|
Apparently, the installer was supposed to make that file.
My Win 10 laptop is back from the shop but while it's installing updates, I've been trying to figure this out and post a summary in case it helps someone else in the future. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Tue Dec 17, 2019 10:14 am |
|
|
Support suggested looking to see if:
%APPDATA%\PICC
...existed. It did, and I placed the .ini file there and now get much better behavior. There is still an error at the end saying to contact CCS SUPPORT, but it produces the .hex file.
I am back using my Win 10 machine, but wanted to post the conclusion here in case someone else has to spend a week back in time trying to develop _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Tue Dec 17, 2019 2:32 pm |
|
|
Post what you have changed in loader.c.
The bootloader does work, so it is something you have done that is
causing the problem. You need to give us a chance to see 'what'. |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Tue Dec 17, 2019 3:25 pm |
|
|
Ttelmah wrote: | Post what you have changed in loader.c.
The bootloader does work, so it is something you have done that is
causing the problem. You need to give us a chance to see 'what'. |
I don't know what loader.c is. I am using code I created.
This thread was about the installer not creating the ccsc.ini on a Windows 7 system that had never had the software installed again. Probably permissions (non admin account).
CCS sent me the .ini file and helped me figure out where it was, then that got things going. They seemed instantly aware of the problem, and their solution worked fine.
Their instructions said to look at a directory that gets linked to from the Start menu. That's when I noticed the installer never even put anything in he Start menu. Only the "ccsload" appeared there, which I installed separately trying to get that working.
So it was just a failed install, and I wanted to leave the "place this file here" tip in this thread in case anyone else get stumped by this for a day. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Wed Dec 18, 2019 12:37 am |
|
|
Apologies. Somehow my reply got attached to the wrong thread.
I've attached it to the right thread as well.
I've had this occasionally happen here. The software somehow attaches
the post to a different thread to the one you are actually 'in'. |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Fri Dec 20, 2019 8:28 am |
|
|
Over a break, I went back to the Win 7 machine to revisit some of this. Even removing the PIC-C tool and then reinstalling it as "Run as administrator" did not make it place anything in the Start menu. When I get a moment, I'll log in as Admin (a luxury I wouldn't have at most corporate jobs I've had) and see if that changes it. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|