Altera_Forum
Honored Contributor
8 years agoC++ and nios/e
Hello guys,
I wonder if NIOS/e core supports C++ mode. My system is OK until I add a class and run the class constructor. System hangs and loop around in this --- Quote Start --- else { # ifdef NIOS2_HAS_DEBUG_STUB NIOS2_BREAK(); # else while(1) ; # endif /* NIOS2_HAS_DEBUG_STUB */ } --- Quote End --- Tracing assembly code https://www.alteraforum.com/forum/attachment.php?attachmentid=13607 it leads to the alt_main function but the memory content is all 0xFFFFFFFs https://www.alteraforum.com/forum/attachment.php?attachmentid=13606 I'm not sure what's happening here. Never debugged at this level before. As soon as I remove the object instantiation. It runs. It boots from onchip flash then the bootcopier jumps to the .text which should be located in SDRAM :( Any hint would be really appreciated. Thanks A separate application that runs mem test reports memory is OK.