That board uses the 56-pin package, which does not have any UARTs. You
can easily make a fast (115200) send-only software UART for debugging:

http://www.makestuff.eu/wordpress/debugging-cypress-fx2lp-firmware/
https://github.com/makestuff/libfpgalink/blob/master/firmware/fx2/debug.h
https://github.com/makestuff/libfpgalink/blob/master/firmware/fx2/debug.c

I found this invaluable during development of the FPGALink FX2 firmware.

Note that this code assumes there will be no interrupts during the
execution of usartSendByte(); if your firmware uses interrupts you'll
need to disable them on entry and re-enable them on exit.

Chris


On Sat, 2013-05-25 at 17:50 +0930, Daniel O'Connor wrote:
> On 25/05/2013, at 15:45, Willem Jansen <[email protected]> wrote:
> > To get started I want to see the I/O Pins of the chip to change from 3.3V 
> > to 0V and back. I therefore changed to lights-example as follows:
> > 
> <snip>
> > 
> > To be even more precise, I seems that all pins of the IOD-port are somewhat 
> > disconnected, as there is no voltage difference neither to and GND nor the 
> > 3.3V Pins.
> 
> I believe they are set to input so they will be floating.
> You need to do the following to set turn the output enables on..
> OED = 0xff;
> 
> Note that IFCFG1 and WORDWIDE can affect port D (they will switch it to its 
> alternative function FD[15:8])
> 
> Hope that helps :)
> 
> BTW I found it quite helpful to configure UART 0 and write out debug messages 
> to it (depends if you need both UARTs for your application though).
> 
> --
> Daniel O'Connor software and network engineer
> for Genesis Software - http://www.gsoft.com.au
> "The nice thing about standards is that there
> are so many of them to choose from."
>   -- Andrew Tanenbaum
> GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
> 
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service 
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> Fx2lib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fx2lib-devel



------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Fx2lib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fx2lib-devel

Reply via email to