EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Programming an FPGA using the MSP430

Started by Stempio December 24, 2007
Hi all, 
I’ve read the C code made by Xilinix to program a FPGA using an embedded
microcontroller.
The application is written to fit the 8051 and I have to port it into a
MSP430f1232 to program a Spartan 3.

In the application description it says it is easy to port the code into
others microcontroller and it is only needed to change few functions in
the file ports.c but my GCC refuses to compile the application..
Does anyone know how to port this application into our beloved MSP430??!

I’ve configured the micro to have the TMS wire at port 3 pin 0, the TDI
wire at port 3 pin 1, the TDO wire at port 3 pin 2 and the TCK at port 3
pin 3.

The application description can be found here:
http://www.xilinx.com/support/documentation/application_notes/xapp058.pdf
And the provided C code can be found here:
ftp://ftp.xilinx.com/pub/swhelp/cpld/eisp_pc.zip

 
Thanks in advance to all who will give me a hand fixing this little
issue!



Stempio wrote:
> Hi all, > I’ve read the C code made by Xilinix to program a FPGA using an embedded > microcontroller. > The application is written to fit the 8051 and I have to port it into a > MSP430f1232 to program a Spartan 3. > > In the application description it says it is easy to port the code into > others microcontroller and it is only needed to change few functions in > the file ports.c but my GCC refuses to compile the application.. > Does anyone know how to port this application into our beloved MSP430??! > > I’ve configured the micro to have the TMS wire at port 3 pin 0, the TDI > wire at port 3 pin 1, the TDO wire at port 3 pin 2 and the TCK at port 3 > pin 3. > > The application description can be found here: > http://www.xilinx.com/support/documentation/application_notes/xapp058.pdf > And the provided C code can be found here: > ftp://ftp.xilinx.com/pub/swhelp/cpld/eisp_pc.zip > > > Thanks in advance to all who will give me a hand fixing this little > issue! >
You're going to have to give a lot more information than just "it doesn't compile" - what are the error messages you are seeing, what is the code that is giving these errors, and what have you done to try and fix them? mvh., David
On Mon, 24 Dec 2007 06:58:26 -0600, Stempio wrote:

> Hi all, > I’ve read the C code made by Xilinix to program a FPGA using an embedded > microcontroller. > The application is written to fit the 8051 and I have to port it into a > MSP430f1232 to program a Spartan 3. > > In the application description it says it is easy to port the code into > others microcontroller and it is only needed to change few functions in > the file ports.c but my GCC refuses to compile the application.. Does > anyone know how to port this application into our beloved MSP430??!
Yes. It's an easy three-step process: * Read the code * Understand the code * Change the parts that won't compile without changing their meaning <snip> -- Tim Wescott Control systems and communications consulting http://www.wescottdesign.com Need to learn how to apply control theory in your embedded system? "Applied Control Theory for Embedded Systems" by Tim Wescott Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html

The 2024 Embedded Online Conference