Hi!
Following System: C6678, CCS5.3 with SYS/BIOS 6.34.2.18, OpenMP 1.1.3.02, Compiler: 7.4.0
I'm using the Mathvec-Example-Project with following changes: renamed omp_matvec.c in omp_matvec.cpp and compile with -gcc. This works fine when building and running the project on my device.
When i add the include <iostream> and change the main function to print something (std::cout << "hello") , it compiles fine, but i get following exception as soon i call the cout statement:
A0=0xff7cdeff A1=0x0
A2=0x0 A3=0x8292f4
A4=0xff7cdeff A5=0x1
A6=0x70 A7=0x0
A8=0x0 A9=0x3
A10=0x0 A11=0x0
A12=0x0 A13=0x0
A14=0x0 A15=0x0
A16=0xa010b070 A17=0x0
A18=0xa010b038 A19=0x30
A20=0x100 A21=0x4c
A22=0x300110 A23=0xa806005
A24=0x80289462 A25=0x50131008
A26=0x8208c008 A27=0x80c0
A28=0xc0122048 A29=0xc048ed8
A30=0x2 A31=0xa019205c
B0=0x1 B1=0x1
B2=0x0 B3=0xc035674
B4=0xefffffff B5=0xa010b068
B6=0x90000180 B7=0x1
B8=0x90000088 B9=0x0
B10=0x0 B11=0x0
B12=0x0 B13=0x0
B14=0xa0194878 B15=0xa010ad88
B16=0x0 B17=0xc047954
B18=0xff B19=0x20
B20=0x20 B21=0x201d3df8
B22=0x40400d1 B23=0x0
B24=0x8012d612 B25=0x8080000c
B26=0x80a60003 B27=0x86202100
B28=0x42810a0a B29=0x0
B30=0x21 B31=0x828ee4
NTSR=0x1000f
ITSR=0xf
IRP=0xc040840
SSR=0x0
AMR=0x0
RILC=0x0
ILC=0x0
Exception at 0xeffffffe
EFR=0x2 NRP=0xeffffffe
Internal exception: IERR=0x2
Fetch packet exception
ti.sysbios.family.c64p.Exception: line 248: E_exceptionMin: pc = 0xeffffffe, sp = 0xa010ad88.
i stepped to the assembly line after the exception is thrown:
0c035670: 01858162 ADDKPC.S2 $C$RL31 (PC+20 = 0x0c035674),B3,4
with following call stack:
std::basic_ostream<char, std::char_traits<char>>::_Sentry_base::_Sentry_base(std::basic_ostream<char, std::char_traits<char>>&)() at ostream:73 0x0C035670
std::basic_ostream<char, std::char_traits<char>>::_Sentry_base::_Sentry_base(std::basic_ostream<char, std::char_traits<char>>&) [subobject](class _Sentry_base *, class _ZSo<signed char, char_traits> &) [aOMPmathvec.out] at 0x0C040850
std::basic_ostream<char, std::char_traits<char>>::sentry::sentry(std::basic_ostream<char, std::char_traits<char>>&)() at ostream:92 0x0C032F0E
std::operator <<<std::char_traits<char>>(std::basic_ostream<char, T1> &, const char *)() at ostream:664 0x0C01AFB0
main() at omp_matvec.cpp:30 0x0C012A9C
ti_omp_utils_OpenMP_mainTask__I(unsigned int, unsigned int)() at OpenMP.c:212 0x0C038578
ti_sysbios_knl_Task_exit__E() at Task.c:396 0x0C01C2E0
std::basic_ostream<char, std::char_traits<char>>::_Sentry_base::_Sentry_base(std::basic_ostream<char, std::char_traits<char>>&)() at ostream:73 0x0C035660
in 0xeffffffe is no code to execute
Thanks, Matthias