gnupic: Re: [gnupic] GPSIM / dsPIC


Previous by date: 21 Jan 2006 08:39:40 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen
Next by date: 21 Jan 2006 08:39:40 +0000 Re: A Free Multiplateform MPLab alternative, Xiaofan Chen
Previous in thread: 21 Jan 2006 08:39:40 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen
Next in thread: 21 Jan 2006 08:39:40 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen

Subject: Re: [gnupic] GPSIM / dsPIC
From: Xiaofan Chen ####@####.####
Date: 21 Jan 2006 08:39:40 +0000
Message-Id: <a276da400601210039x456aa341m2981b2882b4ef14e@mail.gmail.com>

On 1/20/06, Xiaofan Chen ####@####.#### wrote:
> On 1/17/06, Scott Dattalo ####@####.#### wrote:
> > Please feel free to ask any questions. Meanwhile, I'm going to take a peek
> > at those links Xiaofan posted.
> >
>
> Under Ubuntu 5.10, I am able to build the debian package named
> pic30-support_1.32-1_all.deb from the Wine installation of C30
> v1.32. It has the Microchip headers and libraries. I will check how this
> works out. I think it should be possible to addapt this to V2.00 version.
>

I am not able to build the 2.00 Debian packages based on the patches
of Thomas Sailer under Ubuntu. Anyway I have not built any Debian or
RPM packages before.

Therefore I tried out the V1.32 Debian packages first. It is actually
quite okay.

Attached is a sample running session of classic HelloWorld C30 example.

With the packages, Linux native binutils and c compiler are working
(without the optimizer though since it is closed source). Native
simulator based on GPSIM will of course be more than welcome.

Regards,
Xiaofan


mcuee@ubuntu:~/Desktop/coding/dspic/examples$ cat hello.c
#include <stdio.h>              /* Required for printf */

int main (int argc, char * argv[])
{
   printf ("Hello, world!");

   return 0;
}


mcuee@ubuntu:~/Desktop/coding/dspic/examples$ pic30-elf-gcc -ansi -Os
hello.c -o  hello.cof -Wl,--heap=0

mcuee@ubuntu:~/Desktop/coding/dspic/examples$ pic30-elf-bin2hex hello.cof

mcuee@ubuntu:~/Desktop/coding/dspic/examples$ wine
/usr/pic30-elf/bin/sim30.exe hello.cmd
Warning: Language 'en_SG' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_SG' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_SG' was not recognized, defaulting to 'en_US'.
This is the Microchip dsPIC30 simulator version [CLI v3.00.00.01a]
Copyright (c) 2004 Microchip Technology Inc. All rights reserved.
Device: 'dspic30super'
Instruction set version [ISA2 Rev A 2003/01/31]
Program space:-
[000000..03ffff] Program FLASH
[7ff000..7fffff] Data FLASH
[f80000..f8000d] Configuration Registers
Data space:-
[0000..ffff] X Data RAM
[3000..ffff] Y Data RAM
Simulated Peripherals:-
HsAdc   Uart1   Uart2   PWM     Timer1
Timer2  Timer3  Timer4  Timer5  IC1
IC2     IC3     IC4     IC5     IC6
IC7     IC8     IOPortA IOPortB IOPortC
IOPortD IOPortE IOPortF IOPortG
dsPIC30> lp hello.hex
dsPIC30> rp
dsPIC30> io nul
dsPIC30> e
dsPIC30> q

dsPIC30> mcuee@ubuntu:~/Desktop/coding/dspic/examples$ cat UartOut.txt
Hello, world!

Previous by date: 21 Jan 2006 08:39:40 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen
Next by date: 21 Jan 2006 08:39:40 +0000 Re: A Free Multiplateform MPLab alternative, Xiaofan Chen
Previous in thread: 21 Jan 2006 08:39:40 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen
Next in thread: 21 Jan 2006 08:39:40 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen


Powered by ezmlm-browse 0.20.