Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

GERMS blocks

Hello,

I am trying to port some legacy code from NIOS 1 to NIOS 2. I have got a working system consisting of Stratix, Flash, Sdram chips + RS232 interface.

The system starts from legacy on-chip GERMS monitor.

When I make a system with NIOS 1 and run a hello_world. c program with command nr hello_world.srec, it works OK. The program stops and I am back to the GERMS prompt. I am able to send another porgram etc.

When I try to compile and run the same program with NIOS2 (no caches), It is not running as expected.

The program can be uploaded and run on NIOS, but when it finishes NIOS does not return to the GERMS prompt. Only a HW reset makes the board alive.

IMHO, there is something wrong around the function call "postFlash_start"

(file nios2_germs_monitor.s)

If I just press ESC in GERMS promt, it jumps to "postFlash_start" correctly, since I see:

[SOPC Builder]$ nr -t

nios-run: Entering terminal mode over COM1: at 115200 bps

nios-run: Terminal mode (Control-C exits)

-----------------------------------------# 00000000: 0001703A 02020814 40000335 04023014# 00000010: 80000235 06C0C034 83C00037 7C00004C# 00000020: 04000526 04004134 83C0012F 7BCC9398# 00000030: 03C0011E 803EE83A 0001703A 02020814

+

<------------------ESC pressed here

# 0000000012171981

VBA_FPGA3 @ 00000000

+

Any ideas/ fixes are welcome

Cris
No RepliesBe the first to reply