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.

RTOS/AM3352: Standby mode issue

Part Number: AM3352

Tool/software: TI-RTOS

Hi all,

This issue report by customer.

Below it the steps to enter standby mode:

1,save peripherals context

2,Config CM3

3,enable wake up source

4,disable module clock

5,config minimum OPP

6,disable IRQ

7,Save A8 context

8,waiting for wake up....

9,restore A8 context

10,enable IRQ

11,enabble module clock

If customer use starterware(no bios), it working well.

But if customer use BIOS when do "10, enable IRQ" after wake up, the program will crash. 

Here is the IRQ fuction

/*
        **
        ** Wrapper function for the IRQ disable function
        **
        */
        void CPUirqd(void)
        {
            /* Disable IRQ in CPSR */
            asm("    dsb    \n\t"
                "    mrs     r0, CPSR\n\t"
                "    orr     r0, #0x80\n\t"
                "    msr     CPSR, r0");
        }

        /*
        **
        ** Wrapper function for the IRQ enable function
        **
        */
        void CPUirqe(void)
        {
            /* Enable IRQ in CPSR */
            asm("    dsb    \n\t"
                "    mrs     r0, CPSR\n\t"
                "    bic     r0, #0x80\n\t"
                "    msr     CPSR, r0");
        }

Could you please provide some advise? thanks!

BR,
Denny