This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I use tow exe region for ucos task stack

I am using ucos+uctcp/ip to learn now.

I want a stack of ucos task such as

#define WEB_TASK_SIZE      800
static OS_STK  webTaskStk [WEB_TASK_SIZE];

or other array
be placed in usb SRAM ,
how can i define two exe region in the scatter file?

Its a scatter file for lpc2378 in keil IDE below:

;******************************************************************************
;
;                         SCATTER LOADING DESCRIPTION
;                                    ARM
;                             KEIL's uVision3
;                   (RealView Microprocessor Developer Kit)
;
; Filename      : LPC2378_Flash.scat
;******************************************************************************

LR_IROM1 0x00000000 0x00080000                                                                  ;; Load region
{
    ER_IROM1 0x00000000 0x00080000
    {
        vectors.o (VECT, +First)
        init.o (INIT)
        * (+RO)
    }

    RW_IRAM1 0x40000000 0x0000e800
    {
        * (+RW,+ZI)
    }                                                           ;; The following declarations select the "two region model" ;
                                                                ;; A default __user_initial_stackheap() will be used        ;
    ARM_LIB_HEAP  0x40007000 EMPTY  0x00000100   {}
    ARM_LIB_STACK 0x40008000 EMPTY -0x00000E00   {}
}

I want the 32 kb ram of lpc2378 be the first exe region,and the 10kb usb sram be the second exe region.

pls hlp me.

I am sorry my bad English.

I had post a question message , then so many friends post answer message to hlp me ,,I thanks them very much.

Best Regards,
Derek

0