Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHi!
I've been testing with different hardware settings, but for the last try I have used the standard 1c20 Altera example (altera/kits/nios2/examples/vhdl/niosII_cyclone_1c20/standard/standard) leaving only the cpu, ram, flash, timer and jtag_uart. I open the ptf with the nios2configtool, and change the text, rodata and rwdata regions to ext_ram. I also uncheck "Work with a ROM monitor". I also set the startup type to ROMRAM Then, I start the eCos kernel building, and the eCos tests building. It works OK. In order to test the tests, I have created a new custom project, and copied the elf executable test files to my project tree. Then I configure the project with the ptf of the evaluation board, and I try to run it with the ISS emulator, and the result is: " Info : Successfully read SOPC Builder PTF file 'C:\altera\NIOS2_Projects\NIOSII_standard\std_1c20.ptf' Info : The SOPC Builder system contains the following modules: Info : Bus module 'cpu_instruction_master_bus' - avalon.dll Info : Bus module 'cpu_data_master_bus' - avalon.dll Info : Master module 'cpu' - altera_nios2.dll Info : Slave module 'ext_flash' - altera_avalon_flash.dll Info : Address span: 0x0000-0x7FFFFF (cpu_instruction_master_bus) Info : Address span: 0x0000-0x7FFFFF (cpu_data_master_bus) Info : Slave module 'ext_ram' - altera_memory.dll Info : Address span: 0x800000-0x8FFFFF (cpu_instruction_master_bus) Info : Address span: 0x800000-0x8FFFFF (cpu_data_master_bus) Info : Slave module 'sys_clk_timer' - altera_avalon_timer.dll Info : Address span: 0x920800-0x92081F (cpu_data_master_bus) Info : Slave module 'jtag_uart' - altera_avalon_jtag_uart.dll Info : Address span: 0x920820-0x920827 (cpu_data_master_bus) Warning : SOPC Builder system component reconfig_request_pio is not supported by the simulator. Simulation may be incorrect if your software attempts to access it Info : Slave module 'reconfig_request_pio' - altera_avalon_pio.dll Info : Address span: 0x920890-0x92089F (cpu_data_master_bus) Info : Slave module 'uart1' - altera_avalon_uart.dll Info : Address span: 0x9208A0-0x9208BF (cpu_data_master_bus) Warning : SOPC Builder system component sysid is not supported by the simulator. Simulation may be incorrect if your software attempts to access it Info : Slave module 'sysid' - altera_avalon_sysid.dll Info : Address span: 0x920828-0x92082F (cpu_data_master_bus) Info : Configuring 'std_1c20' model Info : PTF Setting jtag_uart/SYSTEM_BUILDER_INFO/Iss_Launch_Telnet="0" detected Info : 'jtag_uart' character stream will be displayed in this window Info : The host communication device for stdin is jtag_uart Info : The host communication device for stdout is jtag_uart Info : The host communication device for stderr is jtag_uart Info : PTF Setting uart1/SYSTEM_BUILDER_INFO/Iss_Launch_Telnet="0" detected Info : 'uart1' character stream will be displayed in this window Info : Running 'std_1c20' model INFO:<Stress threads test compiled on Feb 15 2005> State dump 1 (0 hours, 1 minutes) [numbers >>0] Handler-invocations: 4 4 4 3 3 3 3 2 1 1 1 1 1 1 0 0 0 0 0 malloc()-tries/failures: -- 3200 0 client_makes_request: 0 Memory system: Total=0x000b9fb0 Free=0x000b9d8c Max=0x000b9d8c Error! : Failed memory access in component cpu - Reading data 0x12f1db from uninitialised memory (addr = 0x8ff000) cpu::nios2ModelRun: ERROR: [14781352] load signed byte access to address 0x8ff000 returned uninitialized memory (valid mask=0x0) Stack usage: Info : Component cpu's program has terminated Info : Instructions executed = 14781352 Info : cpu simulation return code 10 Info : Exiting std_1c20 model with return code 10 (0 fatal errors, 1 error, 2 warnings) " I have not been able yet to run it in the development board because we have some problems with it, but the fact is that we have had similar results with other hardware configurations, so we don't know what the reason could be. Also notice that when we run it in the board, it also hangs, and the debug does not respond. The fact is that other tests work, but I think this test should also work, as it checks the stability of the system. If you know any thing I can try... Thanx Alex