Altera_Forum
Honored Contributor
15 years agoon-chip hex in SOF - problem to run
Hi guys,
I have a problem with this, hopefully somebody has similar experience. I have a quite simple nios program, just changing some values of pio to flash LEDs if the memory test (altera code) is successfull and printf messages. I run everthing without any problems if I use Run as -> Nios II HArdware in the Nios II EDS. But i need to have this software to start automatically after SOF is loaded (need to have soft in the onchip memory). So I generated onchip_mem.hex and recompiled the project in Quartus. After i had downloaded the sof to the chip I didn't see something was happening in the chip. So I've opened the nios2-terminal. And as soon as I opened the nios2-terminal the program launched - LED started to flash and the rest. I have no idea what is going on. I seems that the software is in onchip mem but why it doesn't start until i start nios terminal. I have reset of sopc builder connected to vcc. Nios reset and exception vectors are in onchip mem - can't have them in ddr2 since i'm testing it. Could somebody point me where should i look? Thanks, U.