AnsweredAssumed Answered

Using BL instruction to jump to an absolute address in C file

Question asked by jie ZHANG on Jul 8, 2019
Latest reply on Jul 10, 2019 by jie ZHANG

Hi Support Team:

 

I am using the codewarrior for one boot project using the Pictus MCU.

Now I met an problem about using BL instruction.

I want to jump to the application software when I check the condition is OK, so I write it in one C file:

 

#define _APPL_ENTRY    0x2004

......

if (Main_u16ApplMakrker != 0xFFFF)

{

      asm (" bl _APPL_ENTRY");

}

else

{

    /* stay at boot  */

}

 

but there is the fault that "illegal operand" about bl.

 

How I should do it?

Thanks very much!

Outcomes