Forum Discussion

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

Upload Data via NIOS2 Command Shell

Hello, my intention is to read data from NIOS memory (e.g. onchip RAM or SRAM) via the NIOS2 Command Shell. I have running a script and want to read at a special memory address, which is written by the Nios II processor. I think there must be a possibility to "upload" data from the Command Shell, because the "nios2-download" command executes a verify after downloading data to memory. Does anybody have experience with this topic? In other words, I'm looking for a possibility to change information between a running Nios II SW and my script (a simple print to terminal is not helpful). Greetings

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you could use a simple UART-based protocol between your host machine (PC with a skript, or C-Code) and the NIOS.

    The most simple implementation is to use putchar and getchar?!