gnupic: Re: [gnupic] GPSIM / dsPIC


Previous by date: 21 Jan 2006 14:05:31 +0000 Re: A Free Multiplateform MPLab alternative, Xiaofan Chen
Next by date: 21 Jan 2006 14:05:31 +0000 timer1 on 16f877, John De Villiers
Previous in thread: 21 Jan 2006 14:05:31 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen
Next in thread: 21 Jan 2006 14:05:31 +0000 Re: [gnupic] GPSIM / dsPIC, Chen Xiao Fan

Subject: Re: [gnupic] GPSIM / dsPIC
From: Xiaofan Chen ####@####.####
Date: 21 Jan 2006 14:05:31 +0000
Message-Id: <a276da400601210605v489e0173gd7fd58685c083b16@mail.gmail.com>

On 1/17/06, Xiaofan Chen ####@####.#### wrote:
> I still do not know how to build the rpm package pic30-libs-1.32-1.nosrc.rpm
> by Thomas Sailer yet. He mentioned in his web site:
> "Due to license restrictions, the dsPIC header files and libraries cannot
> be distributed. You have to install the Microchip distribution under Windows,
> tar/bzip2 the Microchip installation directory, and then build the nosrc.rpm."

I could not build the nosrc.rpm file so I just copy the relavant folders to
/usr/pic30-elf/ and I can still build the HelloWorld example under FC4.

[xiaofan@localhost MPLABC30_Getting_Started]$ pic30-elf-gcc -ansi -Os
hello.c -o hello.cof -I /usr/pic30-elf/include -L /usr/pic30-elf/lib/
-Wl,--heap=0

[xiaofan@localhost MPLABC30_Getting_Started]$ pic30-elf-bin2hex hello.cof

[xiaofan@localhost MPLABC30_Getting_Started]$ wine
/usr/pic30-elf/bin/sim30.exe hello.cmd
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

[xiaofan@localhost MPLABC30_Getting_Started]$ cat UartOut.txt
Hello, world!

Previous by date: 21 Jan 2006 14:05:31 +0000 Re: A Free Multiplateform MPLab alternative, Xiaofan Chen
Next by date: 21 Jan 2006 14:05:31 +0000 timer1 on 16f877, John De Villiers
Previous in thread: 21 Jan 2006 14:05:31 +0000 Re: [gnupic] GPSIM / dsPIC, Xiaofan Chen
Next in thread: 21 Jan 2006 14:05:31 +0000 Re: [gnupic] GPSIM / dsPIC, Chen Xiao Fan


Powered by ezmlm-browse 0.20.