Part Number: AM3354
Tool/software: Code Composer Studio
Hello
Since I write the code in assembler
IF :DEF:MixPremption
LDRB R4,[R2,#1]
ELSE
LDRB R4, [R2, #1]
I got the two error message 'Illegal mnemonic specified' in IF and ELSE,
why?
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.
Part Number: AM3354
Tool/software: Code Composer Studio
Hello
Since I write the code in assembler
IF :DEF:MixPremption
LDRB R4,[R2,#1]
ELSE
LDRB R4, [R2, #1]
I got the two error message 'Illegal mnemonic specified' in IF and ELSE,
why?
I presume you use the assembler from the TI ARM toolchain.
All ARM assemblers support the same syntax for the instructions such as LDRB. But the syntax for the directives is different. In the TI ARM assembler, for instance, all the directives begin with the dot character. For example .if and .else. Please search the TI ARM assembly tools manual for the chapter titled Assembler Directives.
Thanks and regards,
-George
thanks for your reply George, but which symbol can I use to replace the character DEF?
What should I write the code in TI assembler to replace the sentence "IF DEF: MIXPREEMPTION" ?
Best Regards
Jack
in addition
I want to inquire that can I get the demo which show me how to use the chip AM3354?
For example, if I want to write a simple code to use pwm or gpio function, do we have
the code show me how to use this?
Best regards
Jack
zemin shan said:What should I write the code in TI assembler to replace the sentence "IF DEF: MIXPREEMPTION" ?
Please search the TI ARM assembly tools manual for the sub-chapter titled Defining Symbolic Constants. Look at the examples that use the operator $$isdefed. You need to do something similar.
Thanks and regards,
-George
zemin shan said:I want to inquire that can I get the demo which show me how to use the chip AM3354?
Please start with the Processor SDK for AM335x Sitara Processors - Linux and TI-RTOS support. I am not an expert on this software development kit. If you have further questions, please post them in the Processors Forum.
Thanks and regards,
-George