Forum Discussion

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

altremote_update - application image mode

Hi,

I know there are plenty of threads on this subject, I did read them but I am still confuse. I am using a Cyclone III EP3C10F256C8 FPGA and ECPS16.

My intention is to upload the firmware image to an upper region (offset 0x80000 - 1/4th of the flash size) and boot from here, without copying the data to the 0x000000 offset.

---# 1 ---

While reading the documentation(s) of the altremote_ug, I got headaches.

  • the altremote_ug specifies page value (param 4) as the page number (0-15 for EPCS16).

  • an521 specifies the value of this param as the address/4.

Which would be the correct one?

---# 2 ---

If for example I would copy the data from address 0x000.. (as written by the Quartus programmer) to another flash offset, the same image should be bootable from the new offset as well, right?

---# 3 ---

how can I find out what problem the core had while trying to reconfigure?

Thanks for the help!

15 Replies

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

    Did you try with 0x20000? This is the way I do it in my Cyclone IV project and that seem to work. I thought all addresses was byte addressing.

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

    --- Quote Start ---

    Did you try with 0x20000? This is the way I do it in my Cyclone IV project and that seem to work. I thought all addresses was byte addressing.

    --- Quote End ---

    Nope, not working.

    Do I need to make use of the watchdog? Can I have just the simple statemachine I described above?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    No, after starting up in Factory image after power-up, it is sufficient to write the boot address for the Application image in parameter 4, write 0 to parameter 3 (disables watchdog) and set the reconfig pin of altremote_update high.

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

    --- Quote Start ---

    Did you try with 0x20000? This is the way I do it in my Cyclone IV project and that seem to work. I thought all addresses was byte addressing.

    --- Quote End ---

    A billion thanks! It works! (previously when I tried and replied I did something wrong).

    I start getting non-technical skepticism when using Altera after such negative experiences with conflicting userguides/application notes...

    The AN521 clearly says it should be the word addressing without the last 2 lsbs :mad::confused:

    ... from now on every time I have an error I will tend to first blame Altera :-P

    Thanks again!