This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hi Guys
I've set up a project based off the MSP432 Wifi SDK plug in (1.40.00.02) "power measurement" example using TIRTOS in MSP432P4 SDK 1.50.00.12 and XDC Tools 3.50.3.33_core.
Using either the Debug or Release build configurations I get the same build warnings as part of the linked TIRTOS project:
Looking at the generated file debug_pem4f.c, the offending functions/line all looks similar to this one:
I also get these warnings when I drop a .cfg into the main project instead of link in the RTOS.
Although the program appears to work correctly I'd like to get rid of these warnings. Any help?
Stewart
It seems my pictures didn't show up. The generated code has the warning on the last return line.
/* Object__get__S */ xdc_Ptr ti_sysbios_hal_Hwi_Object__get__S(xdc_Ptr oa, xdc_Int i) { if (oa) { return ((ti_sysbios_hal_Hwi_Object__ *)oa) + i; } if (ti_sysbios_hal_Hwi_Object__count__C == 0) { return NULL; } /* the bogus 'const' in the cast suppresses Klocwork MISRA complaints */ return ((ti_sysbios_hal_Hwi_Object__ * const)ti_sysbios_hal_Hwi_Object__table__C) + i; }
I imported power_measurement fresh using Resource Explorer (TI-RTOS, CCS). The warning doesn't seem to show up in the "problems" window, but it's definitely there for me in the Build Console of project tirtos_builds_MSP_EXP432P401R_release_ccs - just need to scroll up a page:
`C:/tiworkspace_v7/tirtos_builds_MSP_EXP432P401R_release_ccs/src/sysbios' Build of libraries done. clem4f package/cfg/release_pem4f.c ... "package/cfg/release_pem4f.c", line 9721: warning: statement is unreachable "package/cfg/release_pem4f.c", line 10490: warning: statement is unreachable "package/cfg/release_pem4f.c", line 10853: warning: statement is unreachable "package/cfg/release_pem4f.c", line 11135: warning: statement is unreachable "package/cfg/release_pem4f.c", line 11396: warning: statement is unreachable "package/cfg/release_pem4f.c", line 11639: warning: statement is unreachable 'Finished building: ../release.cfg' ' ' gmake[1]: Leaving directory 'C:/tiworkspace_v7/tirtos_builds_MSP_EXP432P401R_release_ccs/Debug' 1 file(s) copied. making ../src/sysbios/sysbios.aem4f ... gmake[1]: Nothing to be done for 'all'. gmake[1]: Nothing to be done for 'configPkg/linker.cmd'. making ../src/sysbios/sysbios.aem4f ... gmake[2]: Nothing to be done for 'all'. **** Build Finished ****
XDCtools 3.50.2.20 or 3.50.3.33 doesn't matter.
SimpleLink MSP423P4 SDK 1.50.0.12
The WiFi plug in is not enabled on the separate RTOS project so I don't think it's having an effect.
**Attention** This is a public forum