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.

'asm' undeclared (first use in this function)

Other Parts Discussed in Thread: SYSBIOS

Hi,

Clean install of CCS 6.1 and TI-RTOS for Tiva 2.10.1.38. Import TCP Echo GNU example and compile. Gives the following error:-

C:/ti/tirtos_tivac_2_10_01_38/products/bios_6_41_00_26/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h:85:5: error: 'asm' undeclared (first use in this function)
asm volatile (
^

Guess because there is no double underscore in front of asm. Fix?

Thanks

  • Looking at the Hwi__epilogue.h source file, I can see there were changes since that release to add double underscores to the asm statements.  But it isn’t clear to me why you are seeing a build problem.  Normally I think no underscores are allowed with GNU, unless an option is thrown to ensure ANSI compliance.  Maybe you have that set in your build?  Or, that might be a default in CCS 6.1?  I don’t know.

    Regardless, you can download a later kernel with the asm changes here: software-dl.ti.com/.../index_FDS.html 

    If you install this new version, you can select it over the previous kernel by specifying the ordering, as described in “3.3 Controlling Software Versions for Use with TI-RTOS” in the TI-RTOS User’s Guide.

    There should be a new TI-RTOS for TivaC release in the next few weeks, which will include the later kernel.

    Scott