Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Issues using with ChipKit WF32 (Read 6109 times)
ltheoret
Newbies
*
Offline


Posts: 5
Joined: Dec 5th, 2015
Issues using with ChipKit WF32
Dec 5th, 2015 at 3:53am
Print Post  
Hi,

I am using a ChipKit WF32. Works great with the MPIDE. but when I try to compile with the Arduino ad in for Visual Studio, which I have configured to use MPIDE core.

I keep getting this error:

ld.exe:cannot open linker script file C:\Program Files (x86)\mpide-0150\hardware\pic32\cores\pic32\chipKIT-application-32MX695F512.ld: Invalid argument.

When I look at this directory, this is a partial listing:

2015-10-31 03:59 PM 75 Arduino.h

2015-10-31 03:59 PM <DIR> avr

2015-10-31 03:59 PM 10,894 binary.h

2015-10-31 03:59 PM 8,097 chipKIT-application-32MX120F032-nobootloader.ld

2015-10-31 03:59 PM 7,545 chipKIT-application-32MX120F032.ld

2015-10-31 03:59 PM 8,197 chipKIT-application-32MX250F128-nobootloader.ld

2015-10-31 03:59 PM 7,615 chipKIT-application-32MX250F128.ld

2015-10-31 03:59 PM 8,272 chipKIT-application-32MX320F128-nobootloader.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX320F128.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX340F512.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX360F512.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX440F128.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX440F256.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX440F512.ld

2015-10-31 03:59 PM 8,275 chipKIT-application-32MX460F512-nobootloader.ld

2015-10-31 03:59 PM 7,539 chipKIT-application-32MX460F512.ld

2015-10-31 03:59 PM 8,296 chipKIT-application-32MX470F512-nobootloader.ld

2015-10-31 03:59 PM 7,541 chipKIT-application-32MX470F512.ld

2015-10-31 03:59 PM 8,296 chipKIT-application-32MX795F512-nobootloader.ld

2015-10-31 03:59 PM 7,541 chipKIT-application-32MX795F512.ld

2015-10-31 03:59 PM 56,981 chipKIT-application-COMMON-MZ.ld

2015-10-31 03:59 PM 31,216 chipKIT-application-COMMON.ld

2015-10-31 03:59 PM 1,574 Client.h


 

My question is, since my ChipKit WF32 board has a 32MX695F512 chip on it and it is not listed in the list. is there one of these files that I can copy and rename to chipKIT-application-32MX695F512.ld that would satisfy the compiler, because Visual studio is a very good and powerful IDE. Or is there some other setting I should know about.

Any info would be appreciated.

Luc
  
Back to top
 
IP Logged
 
ltheoret
Newbies
*
Offline


Posts: 5
Joined: Dec 5th, 2015
Re: Issues using with ChipKit WF32
Reply #1 - Dec 10th, 2015 at 1:58am
Print Post  
Hi,

on an other forum somebody found this for me:

Apparently, the file you are looking for is at a different location (both in the MPIDE folder and the chipkit CORE folder).

\mpide-0150\hardware\pic32\variants\WF32

\Arduino\hardware\chipkit-core\pic32\variants\WF32


And the file I am looking for is actually here. but do I copy this file to the location above or how do I tell the compiler or Arduino for Visual Studio where to find it.

Luc
  
Back to top
 
IP Logged
 
ltheoret
Newbies
*
Offline


Posts: 5
Joined: Dec 5th, 2015
Re: Issues using with ChipKit WF32
Reply #2 - Dec 10th, 2015 at 2:10am
Print Post  
I copied the files over and it now compiles.

Luc
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issues using with ChipKit WF32
Reply #3 - Dec 10th, 2015 at 9:43pm
Print Post  
Thanks very much for the updates.

If other chipkit boards build okay then this means the board has a non-standard configuration (for some reason).

ChipKit are working on chipkit-core which is compatible with the latest arduino ide configuration system. This will mean you will be able to use Arduino 1.6.6+ as the back-end to Visual Micro instead of the mpide. That will mean total standards compliance for all boards Smiley
« Last Edit: Dec 10th, 2015 at 9:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
ltheoret
Newbies
*
Offline


Posts: 5
Joined: Dec 5th, 2015
Re: Issues using with ChipKit WF32
Reply #4 - Dec 10th, 2015 at 10:47pm
Print Post  
I have Arduino 1.6.6 and it will not compile the basic blink pin 13 on the chipkit.
But i also have a infidruino wich works well with the Arduino 1.6.6 and was hoping to keep the code separate between the two.

Luc
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issues using with ChipKit WF32
Reply #5 - Dec 10th, 2015 at 11:25pm
Print Post  
Yes I will be changing or adding to the Mpide link in Visual Micro allowing the ide location to point to a genuine arduino 1.5/1.6 install, yet use a different sketchbook folder such as the current "mydocuments\mpide" folder.

This will give us a stable and standard back-end but allow custom boards and hardware to be maintained in isolation similar to how it mpide works in Visual Micro.

The new chipkit-core under arduino 1.6 should be much less prone to unique mpide configuration structures. It's much easier for visual micro to stay up to date if there is a single standard. 

Make sense to you or do you see a flaw in the plan?
« Last Edit: Dec 10th, 2015 at 11:25pm by Tim@Visual Micro »  
Back to top
IP Logged
 
ltheoret
Newbies
*
Offline


Posts: 5
Joined: Dec 5th, 2015
Re: Issues using with ChipKit WF32
Reply #6 - Dec 11th, 2015 at 1:39am
Print Post  
Makes sense to me.
Just the chipkit uses a different CPU so I treated it as a special board, but if you can integrate it into the system, that is even better for me.
I was intending to use the Chipkit as the master brain and the adruino to control and collect data, and the chipkit would make a decision and sent it back to andruino to do an action like moving 3 or 4 stepper motors.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issues using with ChipKit WF32
Reply #7 - Dec 11th, 2015 at 6:45pm
Print Post  
Sounds like you will be able to use the Arduino 1.6 system. It supports different cpu's without issue. That's what the new chipkit-core is designed for.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint