Altera_Forum
Honored Contributor
21 years agoCustom boards and Firmware_ROM
Hello can anybody help me ?
I have modified the NIOS II CFI-drivers so they now support an 8-bit CFI-AMD-flash device. Afterwards I have tested it using the "flash_tests"-program (through the NIOS II IDE "new project"-wizard) and it says passed to all the tests. Finally I have tried stepping my way through the code by using the debugger and have verified that the CFI-query-routine gets the correct answer from the flash - such as device size/block size/"QRY"-string. ... in other words ......the modified flash-driver should work. Now back to the real problem... After compiling the project generated by mk_target_board and creating a new project based upon it I get the follwing error when trying to use the flash-programmer in the NIOS II IDE: ---------------------------------------------------------- Send (64) failed. Unable to synchronize with target. ..... make: *** [ext_flash_programflash] Error 6 ---------------------------------------------------------- The design i'm trying to burn to the flash is a simple hello world app that works when I use the run-command. The software-project is based on a hardware image that (once again) is based on a custom board that was made using mk_target_board as described in the NIOS II Flash Programmer - User guide chapter 2, edited with the SOPC builder and finally compiled with Quartus II. I cannot find the source-code for the firmware_ROM.hex that is "build" when compiling the project generated by mk_target_board. Is it possible to se the source code for that file? Or is it possible to somehow activate a debug-mode thats writes a couple of lines on the JTAG console just to see if the image is actually working? The flash i'm using is a Spansion MBM29LV160BE (AMD) which supports both 8 and 16 bit operations, but it has been hardwired to operate in 8-bit mode only. About the modified CFI-driver: All I've really done was adding an option for a 8-bit CFI-AMD-flash device by changing the addresses in the command sequences so the flash device knows we are operating in 8-bit mode. Can you help me solve this problem? Regards