Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

Bootloader fails to boot an application

Altera_Forum
Honored Contributor II
923 Views

Hi, 

 

I customed advanced bootloader. The bootloader can boot a simple hello(.flash) application from flash. But it fails to boot my real application flash file. The real application firmware (.elf) can be loaded through nios2-download -g app.elf and runs ok. I debugged bootloader and the application is copied from flash memory into DDR memory successfully. CRC32, signature, length are all correct. The entry point address is at DDR memory (0x0000000), which is the same as loaded through nios2-download. In the debug, I can trace to target() of the entry point. after that, I am sure the application is not running (as it suppose to ). 

Both the Hello and the real Application are at same flash memory location.  

Here is highlights between hello and app: 

Hello can be bootloaded through bootloader: APP not 

Both Hello and App can be loaded through nios2-download. 

Hello can be loaded through running/debug running botloader under nios. APP not. 

Can someone give me some hints that what could be wrong with APP or bootloader? 

 

My development platform is CycloneIII NEEK. Nios2 version 11.0 

 

 

Thank you, 

David
0 Kudos
0 Replies
Reply