Forum Discussion

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

Update FPGA config data and NIOS software via RS232

Hi,

I am fresh in FPGA design. Right now, I am updating the sof n elf file to the FPGA board by the USB Blaster and the Flash Programmer. I would like to updated these files by the RS232, and I will write a simple PC software for the update. And I want the board to start-up when it's power on.

So, should I first put everything to flash memory? Create a boot loader to load the flash to RAM when the board powered on? And if I want to update, can I put everything into the flash n then reset the board?

Do anyone have experience n which documents should I refer to? Thanks a lot

5 Replies

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

    This particular feature has been addressed many times on the forum. Refer to the following:

    http://www.alteraforum.com/forum/showthread.php?t=4799&referrerid=2226

    http://www.alteraforum.com/forum/showthread.php?t=4192&referrerid=2226

    http://www.alteraforum.com/forum/showthread.php?t=20623&referrerid=2226

    In fact just to a google search on "NIOS" and "Remote Update"

    Basically you have to worry about 3 things:

    1 - Downloading the fpga and NIOS software images to the board via RS232. Obviously you're going to have to write your own software for this (both on PC and NIOS)

    2 - Program the fpga and software images into flash. You're using a NIOS so using the CFI flash controller or EPCS controller is your easiest bet.

    3 - Triggering a reconfiguration once you have downloaded the image.

    Now you haven't stated what your configuration scheme is or what type of flash you are using.

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

    Thanks, I did search in google but I dont know the key words "Remote Update" :P, thx for telling me that

    i am using the CFI contorller and I hv 128Mb flash memory. What is a configuration scheme?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Configuration scheme refers to the method used for configuring the FPGA. Depending on the device you are using, options are Active Serial, Passive Serial, Active Parallel, Passive Parallel.

    Which FPGA are you using. Is some other device apart from the FPGA pulling the data from flash and configuring the FPGA or is the FPGA doing the work itself?

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

    Thx Jake,

    I am using Active Parallel, Cyclone III, EP3C120F780, I want the FPGA do the work itself

    I added the UART(RS-232 Serial Port) already and I can use this to receive data from PC