Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHello,
I tryed some more out and came now to the conclusion that it cannot be some dcache problem of the volatile pointer, because: - The Flash Base Address ( CYGNUM_FLASH_BASE ) has allready the 31 Bit set (which should tell nios2/f cores to bypass cache -> thanks to you, smcnutt) - I'm tryed also on nios2/s core, which does not have dcache I now think, that the real problem is, that the flash is not addressed in right mode (can be 8 bit or 16 bit). In my testprogramm, i did a 8 bit access, which succeed, but in redboot code, it seems, it does a 16 bit access, when i print out the access addresses. The define constant _16AS8 is set to 0, which switches access mode to 16 Bit, as I suppose. To reproduce the problem, i tryed 16bit access in my test programm, and it fails to, nearly the same as redboot - so wide ok. So i manually set accessmode to 8 bit (in sourcecode) and hope that it whould fix my problem with red boot... but now redboot crashes (and restarts), exactly behind the line, were the read_id command is written to the flash. Curiously, my testprogramm with same code, does not. Anyone an idea? Best regards, Marek