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.

AM625: ti am625 pruss inline assembly

Part Number: AM625

Tool/software:

Hi all,

I have a  question about ti am625 pruss inline assembly. I use ccs(code composer studio)


volatile uint32_t PIN_CLK_TX_HIGH = (1 << 0); //0x00000001;//gpo0
volatile uint32_t PIN_CLK_TX_LOW = ~(1 << 0); //0x00000001;//gpo0

as you see, i want to use that variables for example in inline assembly, but gives warning like this: 

Description    Resource    Path    Location    Type
#17003-D relocation from function "SWD" to symbol "PIN_CLK_TX_LOW" overflowed; the 13-bit relocated address 0x1418 is too large to encode in the 8-bit field (type = 'R_PRU_FORS_U8_C32_So16s8_PCM0XFFFFFFFF' (17), file = "./main.obj", offset = 0x00000080, section = ".text:SWD")    main.c    /Test    line 244    C/C++ Problem

I also tried #define instead of volatile uint32_t but it gives error. what can i use instead of these ? i also used .equ and .set inside the inline assembly code, i saw that in assembly language user guide, but didnt work,

it was like that

__asm(

"definitions:                       \n\t"

          "PIN_CLK_TX_HIGH .set R1   \n\t"
          "LDI PIN_CLK_TX_HIGH , 0x1  \n\t"

);

maybe because that is for assembly only, not inline assembly. Any recommendations or anything else to help ?

Thanks in advance.

Best Regards