Forum Discussion
Altera_Forum
Honored Contributor
21 years agoThe fact is I don't think ASSERT is the problem, because before activating the "use asserts" option, the test didn't worked at all. I only did it in order
Also, if I now simulate with ISS the SAME program, it does not show any assert, only the same error " Failed memory access in component cpu - Reading data 0x12f1db from uninitialised memory (addr = 0x8ff000) cpu::nios2ModelRun: ERROR: [14859983] load signed byte access to address 0x8ff000 returned uninitialized memory (valid mask=0x0) " So it's very strange that the execution and the ISS differ that way. And now... I have made "make clean" in eCos, rebuild (without changing anything), and the error in the stress_threads has changed. Now it says: " ASSERT FAIL: <1>malloc.cxx[144]void* malloc() Allocator has returned badly aligned data! ASSERT FAIL: <1>malloc.cxx [ 144] void* malloc() " So... it's strange...again. I don't know exactly what to test next, because I've removed the asserts, and I'm the same point that I began: the program hangs. I can hardly debug, and when I get the program to stop (for some reason I CAN'T add breakpoints) the PC is at 0x1013c, or similar, which is not goog, having the RAM at 0x800000 ¿¿?? Alex Alex