Hi all, I have to include an ASM file into my C project, this ASM file cannot be modified since it is also a part of another project using this same file. the ASM file is asm_inc.h and contains only some defines : FW_VERSION EQU 0 FW_SUB_VERSION EQU 9 HW_VERSION EQU 1 I need to use these defines into a C table, defined as follow : unsigned char code identity[] = { FW_VERSION,FW_SUB_VERSION,HW_VERSION }; The problem is that I cannot see these defines from my C file : error C202: 'FW_VERSION': undefined identifier error C202: 'FW_SUB_VERSION': undefined identifier error C202: 'HW_VERSION': undefined identifier I've tried to include this asm file directly into my C file with no success How can I include this ASM definitions into my C file ? thanks to all J
Looks like you have defined the interrupt and startup vectors in more than just one assembler source file. Note that the C51 compiler will add the STARTUP.A51 file that also contains a startup vector.