Page 1 of 1

Pic Uc32 not compiling to chip

Posted: Tue Nov 29, 2016 2:16 pm
by Chris_MIRA
Hi,
Im trying to use the chipKIT uc32. Its the first time Ive used this device. Even with a simple programme (se attached uc32 test), when trying to compile to chip I get the error message (see attached), complaining that it cant find the specified path... What am I doing wrong? :(
Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Tue Nov 29, 2016 3:23 pm
by Benj
Hello,

It looks like the 8.3 short path name feature has been switched off on your copy of Windows.

This FAQ topic should hopefully help get you compiling again.

http://www.matrixtsl.com/faq/index.php? ... short+path

Let us know how you get on.

Re: Pic Uc32 not compiling to chip

Posted: Wed Nov 30, 2016 12:11 pm
by Chris_MIRA
Hi,
I have tried and retried the fixes, the short path feature was / is NOT switched off (I got my IT dept to look at / make the changes so am sure of this). Ive deleated and reinstalled FC7 as per instructions. The problem still the same with the same error code... What else can I try?

Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Wed Nov 30, 2016 3:49 pm
by EtsDriver
Hi chris!

Noticed your username has unusual space there, and this could cause errors with the short path name when the ipecmd tries to get to the folder using short name? (Chris Mellors)
Could you create a local username like "Chris" and then use that user to give it a new try with that user?
Or try moving the project to different folder like "C:\FLOWCODE\" ?

I remember that old win 3.1 software run fine on the newer computers, but once had problems with usernames that included äöå and spaces, and usually doing a dir /x in commandline at the base of the long folder names revealed it could not create a working short name.

Re: Pic Uc32 not compiling to chip

Posted: Thu Dec 01, 2016 1:58 pm
by Chris_MIRA
Hi,
Thanks for the suggestion, Ive tried moving the project folder but with no success, the programme still shows the same error!
Has anyone any further suggestions? Has anyone successfully used this device with the current windows virsion?
Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Thu Dec 01, 2016 2:41 pm
by LeighM
Is the location of MPLAB correct?

Re: Pic Uc32 not compiling to chip

Posted: Fri Dec 02, 2016 8:30 am
by Chris_MIRA
What MPLAB?
The flowcode works correctly for AVR and PIC 16 targets, just not for this uC32 board. Im not changing any windows or FC settings.
Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Fri Dec 02, 2016 9:11 am
by Chris_MIRA
Still not able to get this running, but the error message has changed a bit (see attached) if anyone can help Id be most greatfull!
Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Fri Dec 02, 2016 11:07 am
by Benj
Hi Chris,

Maybe try taking the space out of the project name, some compilers can be a bit funny with spaces and it certainly doesn't help that we are currently supplying the name without quotes so I will investigate this.

Hmm mine does use quotes.
Launching the compiler...
C:\Program Files (x86)\Flowcode 7\compilers\pic32\bin\xc32-gcc.exe -mprocessor=32MZ2048EFG144 -O1 -o "C:\Users\BenR\Desktop\Flowcode2.out" "C:\Users\BenR\Desktop\Flowcode2.c"

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 7\compilers\pic32\bin\xc32-bin2hex.exe "C:\Users\BenR\Desktop\Flowcode2.out"

FINISHED

My Compiler options look like this.

Compiler
Location: $(appdir)compilers\pic32\bin\xc32-gcc.exe
Parameters: -mprocessor=$(chip) -O1 -o "$(srcdir)$(target).out" "$(srcdir)$(target).c"

Linker
Location: $(appdir)compilers\pic32\bin\xc32-bin2hex.exe
Parameters: "$(srcdir)$(target).out"

Re: Pic Uc32 not compiling to chip

Posted: Fri Dec 02, 2016 4:43 pm
by Benj
Hi Chris,

I think I've now sorted all the ChipKit related problems including programming via the bootloader here.

http://www.matrixtsl.com/mmforums/viewt ... 63&t=18330

Re: Pic Uc32 not compiling to chip

Posted: Mon Dec 05, 2016 10:21 am
by Chris_MIRA
Hi,
Thanks for the posts and help,
Ive copied the files to the relevant directories and the Boot-loader option is now in the menu :-)
However Im still getting the error message on compiling to hex. (error message attached)
Looking at the compiler options, Location is the same as in your (Benj) message but the Parameters are different! (see attached), Ive no idea how to change these?

regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Mon Dec 05, 2016 10:43 am
by Benj
Hi Chris,

It looks like you have not copied the Chipkit.zip files correctly.

You should end up with the following directory structure.

"Flowcode 7\compilers\pic32\ChipKit"

Re: Pic Uc32 not compiling to chip

Posted: Mon Dec 05, 2016 1:58 pm
by Chris_MIRA
Hi,
Well, progress is being made, Ive re-loaded the CHIPKIT files and the compiler now recognises them. Im still getting an error message (see attached) but the message is diferent and looks like there was an attempt at compiling! Any suggestion o nhow to fix the new error message? :-)
Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Mon Dec 05, 2016 2:14 pm
by Benj
Thanks Chris,

I had some code left in my test project supplementary code which was hiding this issue.

Should now be solved using the new files here.

http://www.matrixtsl.com/mmforums/viewt ... 63&t=18209

Re: Pic Uc32 not compiling to chip

Posted: Mon Dec 05, 2016 7:49 pm
by JohnCrow
Hi Ben

I'm now getting this error.

Launching the programmer...
C:\Program Files (x86)\Matrix TSL\Flowcode V7\compilers\pic32\bin\pic32prog.exe -d com3 "Flasher_Fast.hex"
Cannot find the file: C:\Program Files (x86)\Matrix TSL\Flowcode V7\compilers\pic32\bin\pic32prog.exe
ERROR: GetShortPathName(): The system cannot find the file specified.
ERROR: Can not launch process: The system cannot find the file specified.
C:\Program Files (x86)\Matrix TSL\Flowcode V7\compilers\pic32\bin\pic32prog.exe reported error code -1

Im not able to find this file anywhere on my system "pic32prog.exe"

Re: Pic Uc32 not compiling to chip

Posted: Tue Dec 06, 2016 9:48 am
by Chris_MIRA
Hi,
Ive downloaded and merged the directories.
Im now getting this error message (see attached)

Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Tue Dec 06, 2016 11:31 am
by Benj
Hi John,
Im not able to find this file anywhere on my system "pic32prog.exe"
Sorry you're absolutely right I missed this from the update. :oops:

The files are now there in the latest zip file in the "compilers/pic32/bin" folder.
http://www.matrixtsl.com/mmforums/viewt ... 63&t=18209

Hi Chris
Hi,
Ive downloaded and merged the directories.
Im now getting this error message (see attached)
After merging the directories did you restart Flowcode? It sounds like it's still using an older definition file as the MPIDE version should now be being declared.

Re: Pic Uc32 not compiling to chip

Posted: Tue Dec 06, 2016 12:37 pm
by Chris_MIRA
Yey, all working well!!!

Thanks again very much for your help!
Really impressed with both your technical help and the speed of response to messages! :D :D

Regards,
Chris

Re: Pic Uc32 not compiling to chip

Posted: Tue Dec 06, 2016 7:59 pm
by JohnCrow
That's it, all working.

Thanks Ben.