embedXcode - MPIDE on Xcode

ajit.track
Posts: 6
Joined: Fri Nov 29, 2013 11:10 am

Re: MPIDE on Xcode 4.2

Post by ajit.track » Mon Dec 02, 2013 2:53 am

avenue33 wrote:
ajit.track wrote:I tried to download but it is not providing executable file
This is for Mac OS X, not Windows.
Is there any other IDE which are similar library function like arduino. Provided it support multiple boards ON WINDOWS PLATFORM.

I downloaded MPIDE 0023 version. But some library function like Software Serial / tiny gps didn't worked. So can you suggest me best IDE which support below function.
analog read/digital read-write
pwm
gps
software serial
timer
I2c IE WIRE LIBERARY

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: MPIDE on Xcode 4.2

Post by avenue33 » Mon Dec 02, 2013 3:38 am

Read Looking for a Better IDE on my website.

Adonosonix
Posts: 20
Joined: Sun Dec 01, 2013 7:29 pm

Re: MPIDE on Xcode 4.2

Post by Adonosonix » Mon Dec 02, 2013 12:37 pm

Thank you for your reply.
I do not know which mpide 0023 I am using. But I tested with 0022 and it works almost time (just a #include to comment out).

I am downloading version 0023 macosx 20120903 right now and I will test it.

Also, I just updated embedXcode to the latest version (115), but even for new projects, it still tells me that I have version 112 and that a new version is available.
What's wrong?

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: MPIDE on Xcode 4.2

Post by avenue33 » Mon Dec 02, 2013 1:07 pm

Adonosonix wrote:Thank you for your reply.
You're welcome :)
Adonosonix wrote:I do not know which mpide 0023 I am using. But I tested with 0022 and it works almost time (just a #include to comment out).
See file /Applications/Mpide.app/Contents/Resources/Java/lib/version.txt to obtain the exact release of MPIDE.
Adonosonix wrote:I am downloading version 0023 macosx 20120903 right now and I will test it.

Also, I just updated embedXcode to the latest version (115), but even for new projects, it still tells me that I have version 112 and that a new version is available.
What's wrong?
Try today's release :arrow: 118.

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: embedXcode — MPIDE on Xcode

Post by avenue33 » Thu Dec 12, 2013 9:11 pm

Please find a new release of the User Manual, with reference for debugging and improved presentation.
Image (link)

Sinus
Posts: 2
Joined: Tue Jan 07, 2014 1:53 am

Re: embedXcode — MPIDE on Xcode

Post by Sinus » Tue Jan 07, 2014 2:11 am

Hi,

first let me say that it would be a great thing to use Xcode for the chipkits.

But until now I had no luck to build anything with embedXcode. It builds all the libraries, but fails at the linking stage (after doing some fixing in various files). I get also some

Code: Select all

Relocation truncated to fit: R_MIPS_GPREL16 against `myLED'


errors as described in an earlier post.

I'm using :

- OSX 10.9.1
- Xcode 5.0.2
- MPIDE 0023-macosx-20130715

I tried to run it with the older version of MPIDE (20120913 if i remember correctly), but that thing doesn't run on my mac since I updated to OSX 10.9.

So, are there any known issues with the newest MPIDE ? Would it help if I send you a complete log of the build process ?

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: embedXcode — MPIDE on Xcode

Post by avenue33 » Thu Jan 16, 2014 3:17 pm

Want to provide feed-back and vote for the next features on embedXcode?

Try the new feed-back page at embedxcode.idea.informer.com.

My plan is to proceed with an initial test for a couple of months before full implementation.

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: embedXcode — MPIDE on Xcode

Post by avenue33 » Thu Jan 16, 2014 5:37 pm

Sinus wrote:Hi,
But until now I had no luck to build anything with embedXcode. It builds all the libraries, but fails at the linking stage (after doing some fixing in various files). I get also some

Code: Select all

Relocation truncated to fit: R_MIPS_GPREL16 against `myLED'
I'm using release MPIDE 0023-macosx-20120903 successfully. It also works fine on 10.9 Mavericks. Have you tried it?

By default, all the libraries are compiled. You can remove from compilation the unused libraries by specifying on the main makefile

Code: Select all

APP_LIBS_LIST = 0
USER_LIBS_LIST = 0
Please refer to chapter 4 Build and Upload the Project section 2 Manage the Libraries for Compilation on the User Manual.

I can't find release 20120913 but only release 20130715. This is the latest release available at Mac OS Installation on the chipKIT website (page, link).

I confirm compilation with the latest release 20130715 fails. The error occurs during linking. It seems the linking scripts have changed.

I'll see what I can do. Actually, support for MPIDE is put on hold as MPIDE still relies on the old Arduino 0023 framework. A new release based on the Arduino 1.0 or 1.5 framework is on the making. My initial plan was to wait for this new release.

In the meantime, please use release MPIDE 0023-macosx-20120903.

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: embedXcode — MPIDE on Xcode

Post by avenue33 » Thu Jan 16, 2014 6:28 pm

The problem with release 20130715 comes from the OPT_SYSTEM_INTERNAL defined in main.cpp

Code: Select all

#define OPT_SYSTEM_INTERNAL
and used in wiring.h to define _scheduleTask()

Code: Select all

#if defined(OPT_SYSTEM_INTERNAL)
void	_initTaskManager();
void	_scheduleTask();
#endif
This works with MPIDE because this IDE, just like the Arduino IDE, concatenates all the files of the project in a large single file with main.cpp at the top. Thus OPT_SYSTEM_INTERNAL is taken into account by all the other libraries. This under-the-hood work is performed by an arcane Java script when embedXcode relies solely on GNU make.

With standard GNU tools, each file is compiled separately and linked afterwards. If a variable is defined in a file, it is only taken into account by another file if the later includes the former. For example, main.cpp includes wiring.h: all the variables defined in wiring.h are known by main.cpp.

This is not the case for OPT_SYSTEM_INTERNAL: it is defined in main.cpp but used in wiring.h. main.cpp includes wiring.h, but wiring.h doesn't include main.cpp. So OPT_SYSTEM_INTERNAL is unknown and isn't taken into account by wiring.h, hence the error.

As for other Processing-based Wiring-derived Arduino-like platforms, I 'd like to stress again how important is to ensure a clean implementation, i.e. that allows compilation and linking using the standard GNU toolchain.

Please raise an official ticket about this issue.

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: embedXcode — MPIDE on Xcode

Post by avenue33 » Sat Jan 18, 2014 2:05 pm

Please find a new release of embedXcode.
  • embedXcode • Jan 16, 2014 release 124 • Support for MPIDE 20130715
  • embedXcode+ • Jan 16, 2014 release 124 • Support for MPIDE 20130715
embedXcode now supports the latest version of MPIDE, dated 20130715.

:arrow: Download

The User Manual has also been updated: Image :arrow: (link)

Happy coding :)

Post Reply