I tested dev_cdc_vcom_lite_bm example from NXP and it worked great. However, I want to use C++ for my project. There was a guide online on how to migrate C to C++ in Eclipse, however, experts suggested to create a new C++ project instead. That is what I did. I added all the files from the original dev_cdc_vcom_lite_bm example. Initially this caused some linker issues due to lack of extern "C" safeguard, but after I wrapped the declarations in C files, everything compiled and linked. I use NewlibNano and in linker I have selected -nostdlib.
What happens now is after upload the debugger does not stop anywhere, and if I stop the debug session it seems to be stuck at 0x21aaca or around there. In reference manual memory region 0020_0000 0021_FFFF is defined as ROMCP.
It is unclear to me why it is stuck there, what could be the reasons?
If additional info is necessary to debug this issue, please let me know!