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.

PSCModuleControl problem?

Other Parts Discussed in Thread: SYSBIOS, OMAPL138

Hello everyone,

I'm using EVM OMAP l138 and working on ARM processor . i have made project using SYSBIOS to configure GPIO pin as output ,the project is built successfully but i got run time error while executing this function :

"PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON,

PSC_MDCTL_NEXT_ENABLE);"


this error will appear during the execution of the above function :

[ARM9_0] in handle: 0x0.
Main stack base: 0xc3016c18.
Main stack size: 0x2000.
R0 = 0x01e2700c R8 = 0xc3008da4
R1 = 0x00000003 R9 = 0x000000ae
R2 = 0x00000000 R10 = 0x0cca0000
R3 = 0x00000003 R11 = 0x0000000a
R4 = 0xc3006f08 R12 = 0x00000003
R5 = 0x00000000 [ARM9_0] SP(R13) = 0xc3018bf0
R6 = 0xc3018b24 LR(R14) = 0xc300cc70
R7 = 0xc300cc70 PC(R15) = 0xc3008da4
PSR = 0x600000df
ti.sysbios.family.arm.exc.Exception: line 174: E_dataAbort: pc = 0xc3008da4, lr = 0xc300cc70.
xdc.ru[ARM9_0] ntime.Error.raise: terminating execution

Actually i made the same project and it works fine on the DSP ,could you tell me how to solve this problem please!.

Thanks in advance.

  • This may help you to answer my question.

    I found that i can't access any of the GPIO registers although i already configured the PINMUX registers (which i can access correctly ).

    Here is a screen shot tells that i cant read any data from GPIO register :

      

    Void main()
    {
    /* The Local PSC number for GPIO is 3. GPIO belongs to PSC1 module.*/

    * PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON,
    PSC_MDCTL_NEXT_ENABLE);


    GPIOBank4Pin0PinMuxSetup();

    ** GPIODirModeSet(SOC_GPIO_0_REGS, GPIO7P9, 0); // Set Pin direction

    GPIOIntTypeSet(SOC_GPIO_0_REGS, GPIO7P9, GPIO_INT_TYPE_NOEDGE); // Configure no interrupt
    GPIOPinWrite(SOC_GPIO_0_REGS,GPIO7P9,0); // Initial Pin value


    BIOS_start(); 
    }

    while executing the ' * ' i get the error in the above post , if i comment this function then i got the same error while executing the " ** " .

    Also i can't  access I2C or LCDC registers .


    The GEL file i used in the attachment .

    Any help will be appreciated .

    Thanks. 


    Edit :

    Could anyone try to run this project , all you need just install OMAPL138_StarterWare_1_10_03_03 in C:/ti 

    Project in the attachment.

    project + gel.rar