Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHI dsl:
Thanks so much for the reply. I changed the size of source from 16 to 65536, but it's too big for the nios memory, which is only 64K. The following pieces of code didn't happen at all in the disassembly view, still OK? "100000a4: 10000f26 beq r2,zero,100000e4 <main+0x78> alt_flash_fd* fd, int offset, const void* src_addr, int length ) { return fd->write( fd, offset, src_addr, length ); 100000a8: 10800517 ldw r2,20(r2) 100000ac: 8009883a mov r4,r16 100000b0: 000b883a mov r5,zero 100000b4: d80d883a mov r6,sp 100000b8: 103ee83a callr r2 { return_code = alt_write_flash(fd,FLASH_TEST_OFFSET,source,16);" any other possibilities regarding this issue? Thanks Song