Hi Code Composer Forum
I have a customer who appears to have a potential compiler bug in CCS v3.1 (for C28xx)
I requested a much reduced dummy Code Composer project (attached) and as such does not build executable code. However, if you compile the file tb/rs485/uart_option/rs485_uart_option.c and take a look at the assembly code produced in the function received_interrupt() (a function called from an interrupt function). The instruction before the first BF instruction in this function is correct. However, if you comment out the redundant asm(" NOP") instruction in the C file, the assembly code changes and the instruction before the BF instruction is wrong:
With asm(" NOP"), the instruction before BF is MOV AH, @_g_time_overrun
With asm(" NOP") commented out, the instruction before BF is NEG AL
Is this a known problem and if so is there a workaround or will they need to update to CCSv3.3 or even v4
Many Thanks
Bob Bacon