Sonsivri

Electronics => Pic C Languages => Topic started by: Brosske on October 03, 2012, 02:12:27 14:12



Title: What IDE to choose ?
Post by: Brosske on October 03, 2012, 02:12:27 14:12
Hi all,

I'm looking (for my high-school students) after an intuitive learning platform to give them a first approach in PIC-C programming. Of course there is the standard MPLAB, but in this IDE there is NO WAY to make a VISUAL SIMULATION other than in text. Frustrating for a first approach. I would like to visualize it....
Of course, we can use FlowCode, but hell-no ! (I refuse to call this programming anyway because even my grandma could build a sequence to program a PIC). There is no fun about using FlowCode and not all PIC's functional blocks are available (altough some interesting libraries are available).

Actualy we're using WIZ-C From http://www.fored.co.uk/ (http://www.fored.co.uk/).
Here a sample of what I was testing lately:
(http://imageshack.us/a/img542/7843/capturecn.png)

BUT  :) I wonder if there is other/better IDE than the one in Wiz-C to start to develop ? Where better could I post this question other than on my favorite forum ? :)

Thank you so much for you're honorable contribution !!

greetz :)


Title: Re: What IDE to choose ?
Post by: metal on October 03, 2012, 04:12:14 16:12
TBO, the registers names should deter the students away : )

Are you sure this is a beginners course? Usually when material is about advanced peripherals of the PIC, instructors divide students into groups and start using real hardware oscilloscopes, etc..


Title: Re: What IDE to choose ?
Post by: Brosske on October 03, 2012, 05:14:37 17:14
Let's say they have 20h technical background about PIC's working (architecture,busses, memory mappings etc) and then they must progressivly program from easy(starting from blinking led) to more difficult things (SPI, I2C). More motivated students may go to MiWi & inter-PIC (server-client) applications (but they are few).

Second semester = PLD ;) but that's another story


Title: Re: What IDE to choose ?
Post by: metal on October 03, 2012, 05:31:32 17:31
20h, seriously? AhmadK teaches PIC, ask him what he used and how many hours he taught per kurs.


Title: Re: What IDE to choose ?
Post by: Brosske on October 03, 2012, 05:40:24 17:40
Thanks

Ok i will ask him to get around this post :-)


Title: Re: What IDE to choose ?
Post by: Magnox on October 03, 2012, 05:49:59 17:49
Brosske, while I cannot help with what you ask, I applaud you for what you are doing. Can I ask, what age range are your students? 'High School' to me means 11 to 16 years old.

I was a teacher and head of science department for nine years, teaching GCSE level to 11-16s. I would love to have done something similar to you; I even thought about PLDs and discussed microcontrollers with the ICT guy.

It wasn't to be though due partly to the difficulty of getting the type of pupils we had through even the basics of general science. There simply wasn't time in the day to do anything extra for those few with the interest and ability to go further. That, and the fact that the school was being run by idiotic senior management who wouldn't hire enough staff or pay for anything not absolutely essential.

Good luck to you and your students!


Title: Re: What IDE to choose ?
Post by: Brosske on October 03, 2012, 06:00:42 18:00
Hi Rick,

Mine are 18, students in electronics, next year they go for Bachelor or Master. We participate (if possible) to a robot lin follower contest (2010 first prize :) ) were they must develop autonomously (chassis & circuit & pcb) a little robot... Realy fun where they learn A LOT :)

Management leaves me alone and autonome. If not, I can show my teeth and stand up (in a way of speaking) and me, on the counterpart, I survey not to spent too much money :). Since electronics are less popular they give me free run to push electronics to a more popular level... not easy, but then again the prof's attitude (mine thus) is significantly more important than the rest :)

Thanks for the encouragements :)


Title: Re: What IDE to choose ?
Post by: Sideshow Bob on October 03, 2012, 06:34:14 18:34
If they have some hardware to play with. I can see no use use for tools like "WIZ-C" I would have used MPLAB. But from the first lab sessions emphasized on how to debug code both hardware and software.


Title: Re: What IDE to choose ?
Post by: Brosske on October 03, 2012, 06:39:24 18:39
Hi,
I have against MPLAB that no visible simulation can be done.... WIZ-C, has lots of of external devices (Input & Output), ready for easy simulation:
(http://imageshack.us/a/img145/2121/sanstitrewgz.png)


Title: Re: What IDE to choose ?
Post by: Ichan on October 03, 2012, 07:06:42 19:06
Never use them but Oshonsoft named their product as "Simulator IDE" worth to look into perhaps?

BTW Mplab have native support to Proteus VSM, and I think Proteus has special low price for educational institution.

-ichan


Title: Re: What IDE to choose ?
Post by: Brosske on October 03, 2012, 07:21:49 19:21
Hi Ichan,

Thanks for the contribution (other people also of course ;) )
Yes I know Oshon and find them fine, but only if you know well about ASM... and that I is too low-level for them... it must be C-environment.


Title: Re: What IDE to choose ?
Post by: metal on October 03, 2012, 07:37:23 19:37
Oshonsoft IDE has a basic compiler, not C.


Title: Re: What IDE to choose ?
Post by: glenndr_15 on October 04, 2012, 04:30:05 04:30
How about Pinguino? Check here http://pinguino.cc/index.php

Pinguino

-Open Hardware Electronics Prototyping Platform
-Open Source Integrated Development Environment (IDE)

Multi-target Hardware
Pinguino is an Arduino-like electronics prototyping platform. It supports different 8- and 32-bit microcontrollers, all with built-in USB module (no FTDI chip !).

Pinguino comes with a USB Bootloader. This small program running inside the microcontroller is responsible for transferring your application from your PC to the microcontroller memory and handing over the control to this program afterwards.

No programmer is needed(*), the microcontroller can be reprogrammed over USB with a PC.

8-bit : PIC18F2550, PIC18F4550 and PIC18F26J50 from İMicrochip.
32-bit : PIC32MX Mips familly from İMicrochip.

Multi-level Software

Pinguino boards can be used of different ways depending on your skills :

with the Pinguino IDE and the Pinguino Language (based on C and almost compatible with Arduino language)
with our own 32-bit MIPS-elf GCC toolchain (C/C++) or 8-bit SDCC/GPutils toolchain (C only)
with İMicrochip İMPLAB X IDE toolchain
Pinguino is an Integrated Development Environement (IDE) which gives everyone the ability to write, compile and upload programs on a Pinguino board.

Pinguino Language is almost compatible with Arduino's Language, Libraries and Shields.

It makes you write easily your application without spending hours learning pragma, configuration bits or command line compiler.

Best regards,
glenndr_15


Title: Re: What IDE to choose ?
Post by: Brosske on October 04, 2012, 04:57:03 04:57
Hi glenndr_15,

MPLAB again... so no descent simulation....
Concerning the hardware I'm not difficult... we program directly in our application with ICSP. It's more the IDE that I would like to change.


Title: Re: What IDE to choose ?
Post by: metal on October 04, 2012, 12:29:27 12:29
Why don't you use proteus? You can view registers and debug C code inside it.


Title: Re: What IDE to choose ?
Post by: Sideshow Bob on October 04, 2012, 01:08:11 13:08
Maybe I am both somewhat predisposed and old-school here. But to me tools like WIZ-C looks a little like flimflams ;). And I can not see the students will benefit much from using it compared to MPLAB. Another thing that is important. The students will need to use WIZ-C both in the LAB and at their personal computer to do the homework. Have you checked out how much this will cost your school in software licences.


Title: Re: What IDE to choose ?
Post by: dotm on October 04, 2012, 01:11:56 13:11
Why don't you use proteus? You can view registers and debug C code inside it.

I'd even say to use the proteus debugger plugin in MPLABX. That's the most comprehensive simulation that i can think of since you even can debug microcycles in the proteus debug logs and timing.


Title: Re: What IDE to choose ?
Post by: Brosske on October 04, 2012, 05:55:51 17:55

Maybe I am both somewhat predisposed and old-school here. But to me tools like WIZ-C looks a little like flimflams ;). And I can not see the students will benefit much from using it compared to MPLAB. Another thing that is important. The students will need to use WIZ-C both in the LAB and at their personal computer to do the homework. Have you checked out how much this will cost your school in software licences.


Posted on: October 04, 2012, 06:53:53 18:53 - Automerged

Hi Dotm & Metal,

Hi bob,

I posted the medecine for Wiz-C here somewhere ;-)


Metal & Dotm,
I will give it a shot for Proteus ... and keep intouch :)


Title: Re: What IDE to choose ?
Post by: dotm on October 05, 2012, 12:39:29 00:39


Posted on: October 04, 2012, 06:53:53 18:53 - Automerged

Hi Dotm & Metal,

Hi bob,

I posted the medecine for Wiz-C here somewhere ;-)


Metal & Dotm,
I will give it a shot for Proteus ... and keep intouch :)

so use proteus INSIDE mplab. look here:
http://www.youtube.com/watch?v=DRk-PXJrEwc

in mplab you can set breakpoints and watch variables in the locals window.
in proteus you can  use diagnostics by right clicking on the pic and choose 'configure diagnostics' (includes timing and so on..) and you can also monitor a wide range of things like registers and memory and even source code and variables (when .elf is provided) by right clicking on the pic and choosing what you want in 'PIC CPU' down at the bottom.
have fun.


Title: Re: What IDE to choose ?
Post by: metal on October 05, 2012, 12:58:04 00:58
Don't do it this way, sometimes it will be very slow inside MPLAB, write the code in MPLAB, open proteus, build the schematic and load the *.elf file into the PIC.


Title: Re: What IDE to choose ?
Post by: Ahmad_k on October 05, 2012, 03:50:47 15:50
Well for me as a teacher of PIC Microcontroller, i use two methode. if someone has no programming knowledge he needs aproximatly 120Hours to become a small developper. if he has some knowledge on C or basic or any programming laguage 60Hours is sufficient.

As you know it is not only the programing language that is important, it is the experience that the student will get it by time.

For me here what i did to my students:
* Start with assembly language in MPLAB X
* Then simulate with PROTEUS, and i think it is the only tool that contains a lot of interface circuit to simulate (COMPIM, USB emulation, Network Emulation, SPI debugger and spice simulation)
* After that i start the C programming with the new C compiler from microchip, i love it so much
* Stay away from Mikroe compilers (My students have a lot of problems in their final project when using them)
* if someone dosen't know C programming, i recommend PROTON IDE.

So i think proteus is the only simulator that give me good result with a nice interface 


Title: Re: What IDE to choose ?
Post by: dotm on October 05, 2012, 09:52:46 21:52
Don't do it this way, sometimes it will be very slow inside MPLAB, write the code in MPLAB, open proteus, build the schematic and load the *.elf file into the PIC.

a beginner normally does not program things that need specially fast simulation. At the start you will face challenges like correct initialisation ,flags , correct variables and so on.
Additionally, since MPLABX , the simulation does not run in a window in MPLAB , but in ISIS linked to MPLAB.


Title: Re: What IDE to choose ?
Post by: metal on October 05, 2012, 10:09:34 22:09
In short: ISIS is very slow inside MPLAB.


Title: Re: What IDE to choose ?
Post by: dotm on October 05, 2012, 10:15:53 22:15
In short: ISIS is very slow inside MPLAB.

really , i think it's fixed in MPLABX, have you tried it out yet?


Title: Re: What IDE to choose ?
Post by: metal on October 06, 2012, 11:34:21 11:34
Yes, simulation is extremely slow.


Title: Re: What IDE to choose ?
Post by: Interprog on October 25, 2012, 07:32:45 19:32
with new Plugin 1.0.5 it is faster, for me


Title: Re: What IDE to choose ?
Post by: sarah90 on November 18, 2012, 05:02:17 17:02
I use a mix of geany under linux as this gives me a very good editing experience and mplab in windows 7 running in virtualbox for compiling and flashing.

Mplab has the best support for the pickit3 and the usb support of virtualbox makes it possible to use it in a virutal machine. However I don't like the the mplab editors so I use geany for that.

I tried using mplabx but I found it unstable and huge, so I will keep using my virutal setup until they phase out mplab.


Title: Re: What IDE to choose ?
Post by: metal on November 18, 2012, 09:04:39 21:04
I think MPLABX is excellent, and it is rather stable (these days v1.5), I don't see any reason not use it, large is no longer a reason to escape a software. Microchip is phasing out MPLAB, the next release of Microchip Applications Library will not contain MPLAB project files :- )


Title: Re: What IDE to choose ?
Post by: sarah90 on November 18, 2012, 09:41:28 21:41
I am aware that mplab will be phased out in the near future and I should move on, but my setup is working for me. Microchip is still releasing updates to mplab, so I think (thought ?) I have still some time. However, the last time I checked up on mplapx is already several months ago and my opinion is based on that. I will definitely look into it again.