Forum Discussion
Altera_Forum
Honored Contributor
22 years agoCompact Flash Card problem
I am trying to implemnent the CF Card in my Nios system.
But there is not any reference about it. Should I write a driver for it and prepare the subroutine? or there is already one? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif Thanks a lot!!13 Replies
- Altera_Forum
Honored Contributor
Microtronix has a compact flash component in the Tested IP section of this forum. I would give it a try before writing my own driver...
Cheers, - slacker - Altera_Forum
Honored Contributor
Also, there is a flash component in sopc builder , add it to the system, add a tristate bridge, then generate and re-compile in Quartus (adding pins to the bdf as needed). (or see another reference design to see how Altera did it).
- Altera_Forum
Honored Contributor
Thanks a lot!
to kerri, where is the altera reference design of compact flash? - Altera_Forum
Honored Contributor
ok, for Nios I it should be standard design, for Nios II it would be the full-featured.
Kerri - Altera_Forum
Honored Contributor
Hi kerri,
Aren't those altera reference designs using only the on-board flash chip (AMD flash in StratixII Edition of NiosII DevKit)? Do they also include hardware/software for accessing the Compact Flash card? What is the exact name of the altera provided SOPC component that is described in altera web pages (NiosII peripherals) as Compact Flash Interface ? Thank you - Altera_Forum
Honored Contributor
Hi,
Has anybody here tried the compact flash component in the Tested IP section? Does it work on a cyclone dev kit? ;O) - Altera_Forum
Honored Contributor
In the source code for ideutils.c There is the following....
# define ctl_base (int*)CF_CTL_BASE# define ctl_irq (int)CF_CTL_IRQ# define ide_base (int*)CF_IDE_BASE# define ide_irq (int)CF_IDE_IRQ whereas in the documentation it says simple... # define ide_base <SOPC-name>_IDE_BASE# define ide_irq <SOPC-name>_IDE_IRQ# define ctl_base <SOPC-name>_CTL_BASE# define ctl_irq <SOPC-name>_CTL_IRQ why the (int*) cast? - Altera_Forum
Honored Contributor
Is there a cut & strap recommended to ensure to get true-IDE mode on the nios cyclone dev-board?
- Altera_Forum
Honored Contributor
Hello Joe90
I've used the Microtronix CF component as they appear in this forum on a design that uses a CF running on the Nios Cyclone developement board. They work just fine and I also have FAT16 support. Regards Nir - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by joe90@Dec 30 2004, 07:54 PM is there a cut & strap recommended to ensure to get true-ide mode on the nios cyclone dev-board? --- Quote End --- Does anyone have the the cut and strap fix of the dev board CF power circuit for true-ide mode? Thanks, Murph