Part Number: TMS320F280049
Tool/software: TI C/C++ Compiler
My customer reported an issue with F280049 regarding the optimization for opt_for_speed. They found the ADC result was not available in the watching window with the emulation mode, using the --opt_for_speed=0. When changing --opt_for_speed to 2, it worked. The --opt_level is OFF in the project.
And it showed that PREAD instruction was created with -opt_for_speed =0, to replace two MOV instructions that use the AL register. That makes us confused.
The compiler team has proposed a workaround to solve the issue, that removing the option -mt(--unified_memory), and the PREAD instructions are not generated. Could you please help further check why PREAD caused the issue? Thank you.