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.

TMS320F28034 使用汇编时,出现Instructions not permitted in structure/union definitions 是什么原因,谢谢

Other Parts Discussed in Thread: TMS320F28034, CONTROLSUITE

我在使用 TMS320F28034  汇编时,如果在 添加头文件 PeripheralHeaderIncludes.h ,就会出现 [E0800] Instructions not permitted in structure/union definitions错误,这是什么原因。

如果我不添加 PeripheralHeaderIncludes.h,,可以正常编译,可是在汇编中,不能使用  ADC ,EPWM的寄器

    ;.cdecls   C,LIST,"PeripheralHeaderIncludes.h"

--diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="Source/App/DPL-ISR.d_raw" --obj_directory="Source/App" "../Source/App/DPL-ISR.asm"
1 Assembly Error, No Assembly Warnings

>> Compilation failure
Source/App/subdir_rules.mk:16: recipe for target 'Source/App/DPL-ISR.obj' failed
"C:\Users\ADMINI~1\AppData\Local\Temp\{5636A755-D0E4-4075-AAEC-329890F4C5D2}", ERROR! at line 4140: [E0800] Instructions not permitted in structure/union definitions
DP .bits 1 ; bit field, 1 bits, 24 bit offset


Errors in Source - Assembler Aborted
gmake: *** [Source/App/DPL-ISR.obj] Error 1

  • 是使用的什么来源的头文件?试一下controlSUITE中的:
    C:\ti\controlSUITE\development_kits\~SupportFiles\F2803x_headers
  • 我用的就是C:\ti\controlSUITE\development_kits\~SupportFiles\F2803x_headers的文件。
    以前有一个工程可以编译成功。在这个基础上,增加了一条语句, 编译后,失败。

    再将增加一语句 删除,就一直编译错误。

    能解释一下,下面这个错误,是 由什么引起的吗?
    "C:\Users\ADMINI~1\AppData\Local\Temp\{5636A755-D0E4-4075-AAEC-329890F4C5D2}", ERROR! at line 4140: [E0800] Instructions not permitted in structure/union definitions
    DP .bits 1 ; bit field, 1 bits, 24 bit offset
  • 抱歉对汇编不太了解,重新删除添加一下头文件是否能解决?
    这个错误代码你可以去英文E2E上咨询一下,那边有全球资深的工程师,应该有人能解答这个问题。
  • 您增加的是什么语句?请您看一下 www.ti.com/.../spru513p.pdf 的相关定义规则
  • 这个问题解决了吗,我现在也碰到了这样的问题: