Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tools for assembly programming 32 bit Pinguino
05-07-2015, 11:35 AM,
#1
Tools for assembly programming 32 bit Pinguino
Apologies for a newbie question, I'd really appreciate some basic info, so that I know that what I need is actually is available somewhere and I can look for it.
Does the Pinguino IDE include the tools for assembly programming, i.e. at least the assembler? Are there other free IDEs I could use, possibly including a debugger sw and requiring an inexpensive emulator hw?
Thanks!
Reply
05-07-2015, 11:46 AM,
#2
RE: Tools for assembly programming 32 bit Pinguino
Hi

If you want the Maximum from you Pinguino board you need use MicroChip MPLab tools http://www.microchip.com/pagehandler/en-.../home.html
and a device like this https://www.olimex.com/Products/PIC/Prog.../PIC-KIT3/ to programming and dubugging Pinguino Board.

Obviously MPLab and Pinguino IDE are not compatible, you can use one or other.


Bye Bye, Moreno
Reply
06-07-2015, 11:27 AM,
#3
RE: Tools for assembly programming 32 bit Pinguino
You can use inline assembly, if you need to include some assembly in your C program. Something like :

- for SDCC (8-Bit chips) : __asm__("tblwt*+");
- for GCC (32-Bit chips) : asm volatile("mfc0    %0, $9" : "=r" (timer));

If you need to write your whole program in assembly then, as Moreno said, go for MPLABX tools.
Or, as all compilers used with Pinguino come with an assembler, simply use your favorite editor and gpasm (or mpasm) or p32-as, depending on the chip you want to program.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
06-07-2015, 11:28 AM,
#4
RE: Tools for assembly programming 32 bit Pinguino
You can use inline assembly, if you need to include some assembly in your C program. Something like :

- for SDCC (8-Bit chips) : __asm__("tblwt*+");
- for GCC (32-Bit chips) : asm volatile("mfc0    %0, $9" : "=r" (timer));

If you need to write your whole program in assembly then, as Moreno said, go for MPLABX tools.
Or, as all compilers used with Pinguino come with an assembler, simply use your favorite editor and gpasm (or mpasm) or p32-as, depending on the chip you want to program.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
06-07-2015, 11:04 PM,
#5
RE: Tools for assembly programming 32 bit Pinguino
Thanks! I don't think I'll use inline assembly in my first experiments, though is it definitely more practical for large projects to use C rather than assembly. I am looking at MPLAB and I understand the 32 bit Pinguino boards have the ICSP connector I could use for a PicKit programmer/debugger. I hope installing the free versions of  MPLAB and of the XC32 compiler won't be too much of a hassle, I'll do it in the next few days.
Reply
07-07-2015, 03:12 PM,
#6
RE: Tools for assembly programming 32 bit Pinguino
Good luck with MIPS assembly !
Wink
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
07-07-2015, 08:22 PM,
#7
RE: Tools for assembly programming 32 bit Pinguino
Use C. The chips are so fast and the assembly language so horrible!!

John
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)