Modified Arduino IDE


zwabbit

Recommended Posts

I just had a look at the source... bitfile.cpp has two functions already in it that seems to do what is needed:

void BitFile::append(unsigned long val, unsigned cnt)

void BitFile::append(char const *fname)

It should be posilble to "append()" zeros to pad to the required location, then append() the additional file you want into the bitstream. Will try it when I get a chance....

Link to comment
Share on other sites

I think a magic value at the start of the blob would give the best payoff as you don't need to worry about where the FPGA bit image ends and where the blob starts, then have to pass that offset back into the code so it knows where the find the blob. It will be more foolproof and more user friendly. The FPGA boot loader will of course need to be updated to search for this magic value but that seems fairly trivial.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.