I am trying to use a 52254 to program a cyclone2 fpga using Altera's MicroBlaster firmware example.
It involves setting up the I/O according to the hardware to mimick how ByteBlaster would use a parallel port, then streaming a file out.
The I/O part is easy enough, but I am having trouble with the file I/O portion.
The firmware has no file system, so the standard fopen (etc) doesn't work. I'd like to simply have the contents of the programming file (.rbf) inserted into my firmware file at a known location so I can stream the data out of it without any fopen etc.
I can obviously add the .rbf file to my project window, but I have no idea how I would place it in a known location in flash and then provide fopen-like functionality to it.
Let me know if my problem is not clear and I will answer any questions.
Thanks,
Matt
Solved! Go to Solution.
Hello
Did you check the Targeting_ColdFire.pdf manual.
Chapter "ELF Linker and Command Language" section "LCF Syntax" -> "Writing Data Directly to memory" provide some hints on how to add binary files to a .eld file.
CrasyCat
Okay, i created a new post for this next question and unless i'm mistaken, it just disappeared.
Now I'm using the ExternalFile bean and it wants an absolute path. I have multiple branches of this project on my computer and on other developer's computers. Can the ExternalFile bean use a relative path instead of absolute? It is very annoying to have to change the path manually after every branch/update
I appreciate the reply. I thought this was a dead thread. That is a very simple solution and I appreciate the help. I will adjust the various branches of the project and life will be easier.