Forum Discussion
Problem writing the NIOS II program to the EPCS controller.
- 1 year ago
Hi @Megavolt91,
Thank you for posting in Intel community forum, hope all is well and apologies for the delayed in response.
Thanks for the details explanation, appreciate the effort on explaining the situation, it definitely helps us to understand the situation and others too.
Just to clarify, you are able to program to Nios II configuration to EPCS controller now and Nios II is also starting up. However there is confusion in the addresses?
Note: Nios II has been deprecated and no longer supported, hence perhaps it is advised to moved to Nios V, however we would try our best to clarify on your situation.
Best Wishes
BB
I replase base address EPCS from 0 to 0x8002000 and now programming EPCS with no erros. Flash Programmer working well too.
22.03.2025 13:42:42 - (FINE) sof2flash: Starting
22.03.2025 13:42:49 - (FINE) sof2flash: Done
Reading override file "E:/Quartus13_1/nios2eds/bin/nios2-flash-override.tx
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x080010A0: verified
Processor data bus width is 32 bits
Looking for EPCS registers at address 0x08002000 (with 32bit alignment)
Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002100 (with 32bit alignment)
Initial values: 93000237 6300080C 603FFD26 90000335 A8000C26 03010004
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002200 (with 32bit alignment)
Initial values: 02C02004 002EE03A 00000F06 90000335 4000683A 0017883A
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002300 (with 32bit alignment)
Initial values: 003FD006 5280040C 501496FA 701CD07A 729CB03A 843FFFC4
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002400 (with 32bit alignment)
Initial values: 00000000 00000000 00000260 00000000 00000000 00000001
Valid registers found
EPCS signature is 0x14
EPCS identifier is 0xEF4015
Using EPCS size information from section [EPCS-EF4015]
Device size is 2MByte (16Mbit)
Erase regions are:
offset 0: 32 x 64K
EPCS status is 0x02
: Checksumming existing contents
00000000 : Verifying existing contents
00000000 : Needs erase then program
00010000 : Verifying existing contents
00010000 : Needs erase then program
00020000 : Verifying existing contents
00020000 : Needs erase then program
00000000 : Reading existing contents
00010000 : Reading existing contents
00020000 : Reading existing contents
Checksummed/read 52kB in 5.2s
00000000 ( 0%): Erasing
00010000 (33%): Erasing
00020000 (66%): Erasing
Erased 192kB in 0.7s (274.2kB/s)
00000000 ( 0%): Programming
00010000 (33%): Programming
00020000 (66%): Programming
Programmed 141KB +51KB in 8.1s (23.7KB/s)
Did not attempt to verify device contents
Leaving target processor paused
Reading override file "E:/Quartus13_1/nios2eds/bin/nios2-flash-override.tx
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK
Reading System ID at address 0x080010A0: verified
Processor data bus width is 32 bits
Looking for EPCS registers at address 0x08002000 (with 32bit alignment)
Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002100 (with 32bit alignment)
Initial values: 93000237 6300080C 603FFD26 90000335 A8000C26 03010004
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002200 (with 32bit alignment)
Initial values: 02C02004 002EE03A 00000F06 90000335 4000683A 0017883A
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002300 (with 32bit alignment)
Initial values: 003FD006 5280040C 501496FA 701CD07A 729CB03A 843FFFC4
Not here: reserved fields are non-zero
Looking for EPCS registers at address 0x08002400 (with 32bit alignment)
Initial values: 00000000 00000000 00000260 00000000 00000000 00000001
Valid registers found
EPCS signature is 0x14
EPCS identifier is 0xEF4015
Using EPCS size information from section [EPCS-EF4015]
Device size is 2MByte (16Mbit)
Erase regions are:
offset 0: 32 x 64K
EPCS status is 0x00
: Checksumming existing contents
00020000 : Verifying existing contents
00020000 : Needs erase then program
00020000 : Reading existing contents
Checksummed/read 53kB in 5.3s
00020000 ( 0%): Erasing
Erased 64kB in 0.2s (320.0kB/s)
00020000 ( 0%): Programming
Programmed 12KB +52KB in 1.3s (49.2KB/s)
Did not attempt to verify device contents
Leaving target processor paused
Hardware working good, but NIOS is not start.