Pic Uc32 not compiling to chip

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Pic Uc32 not compiling to chip

Post 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
Attachments
uc32 test.fcfx
(5.38 KiB) Downloaded 359 times
Error Message.PNG
(35.19 KiB) Downloaded 8507 times

User avatar
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: Pic Uc32 not compiling to chip

Post 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.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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.
Ill just keep the good work up!

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Pic Uc32 not compiling to chip

Post by LeighM »

Is the location of MPLAB correct?

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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
Attachments
Error2.PNG
(23.96 KiB) Downloaded 8458 times

User avatar
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: Pic Uc32 not compiling to chip

Post 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"

User avatar
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: Pic Uc32 not compiling to chip

Post 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

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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
Attachments
Param CPTure.PNG
(18.81 KiB) Downloaded 8413 times
New errormsg.PNG
(25.64 KiB) Downloaded 8413 times

User avatar
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: Pic Uc32 not compiling to chip

Post 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"

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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
Attachments
ErrorMessageDev.PNG
(30.16 KiB) Downloaded 8399 times

User avatar
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: Pic Uc32 not compiling to chip

Post 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

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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"
1 in 10 people understand binary, the other one doesn't !

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post by Chris_MIRA »

Hi,
Ive downloaded and merged the directories.
Im now getting this error message (see attached)

Regards,
Chris
Attachments
Further errorTuesday.PNG
(29.99 KiB) Downloaded 8349 times

User avatar
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: Pic Uc32 not compiling to chip

Post 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.

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: Pic Uc32 not compiling to chip

Post 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

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Pic Uc32 not compiling to chip

Post by JohnCrow »

That's it, all working.

Thanks Ben.
1 in 10 people understand binary, the other one doesn't !

Post Reply