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.

Trouble with ae674 files

Hello, 

 I'm a beginer in this topic. How can I change/rebuild evm.ae674 file from biospsp_03_00_01_00 audio example? I'm using LCDK6748, so I have to change PINMUX1 configuration from the audio_evmInit.c file to run this example. I change like this : 

 syscfgRegs->PINMUX1 = (savePinmux1 | 0x00000110); 

But this changes have no effect on my registers value in working project. What should I do ? 

Mirek

  • Hi Mirek,

    First, you have write the KICK registers (default value for unlock)  to unlock the SYSCFG registers.

    Please read C6748 TRM to know more.

  • Hi Titus,

     Thanks for Your response. I forget to mention that I write Kick registers before change PINMUX configuration, That's my function after changes : 

    void configureAudio(void)
    {
    CSL_SyscfgRegsOvly syscfgRegs = (CSL_SyscfgRegsOvly)CSL_SYSCFG_0_REGS;
    Uint32 savePinmux0 = 0;
    Uint32 savePinmux1 = 0;
    Uint32 savePinmux4 = 0;

    #ifdef KICK_REG_ENABLE
    /*Enable write access to PINMUX and CFG registers in KICK0R and KICK1R */
    KICK0_REGISTER = KICK0_ENABLE_KEY;
    KICK1_REGISTER = KICK1_ENABLE_KEY;
    #endif

    savePinmux0 = (syscfgRegs->PINMUX0 &
    ~(CSL_SYSCFG_PINMUX0_PINMUX0_3_0_MASK |
    CSL_SYSCFG_PINMUX0_PINMUX0_7_4_MASK |
    CSL_SYSCFG_PINMUX0_PINMUX0_11_8_MASK |
    CSL_SYSCFG_PINMUX0_PINMUX0_15_12_MASK|
    CSL_SYSCFG_PINMUX0_PINMUX0_19_16_MASK|
    CSL_SYSCFG_PINMUX0_PINMUX0_23_20_MASK|
    CSL_SYSCFG_PINMUX0_PINMUX0_27_24_MASK|
    CSL_SYSCFG_PINMUX0_PINMUX0_31_28_MASK));

    savePinmux1 = (syscfgRegs->PINMUX1 &
    ~(CSL_SYSCFG_PINMUX1_PINMUX1_7_4_MASK|
    CSL_SYSCFG_PINMUX1_PINMUX1_19_16_MASK|
    CSL_SYSCFG_PINMUX1_PINMUX1_15_12_MASK|
    CSL_SYSCFG_PINMUX1_PINMUX1_11_8_MASK));

    savePinmux4 = (syscfgRegs->PINMUX4 &
    ~(CSL_SYSCFG_PINMUX4_PINMUX4_11_8_MASK |
    CSL_SYSCFG_PINMUX4_PINMUX4_15_12_MASK));

    /* write to the pinmux registers to enable the mcasp0 and i2c0 */
    syscfgRegs->PINMUX0 = (savePinmux0 | 0x01111111);
    syscfgRegs->PINMUX1 = (savePinmux1 | 0x00000110);
    syscfgRegs->PINMUX4 = (savePinmux4 | 0x00002200);
    }

    Function works, if I will use it "manualy". But I have no signs of changes when I try to use it with ae674. 

  • Hi Mirek,

    Able to change KICK registers value ?

    Please confirm that KICK registers got correct value.

  • Hi, 

     if I copy function configureAudio() to any other file, anywhere else, and then I change name of this function, let's say for  configureAudio2(). And then call configureAudio2() from my main, it  works. So I guess that all the code I've got inside this function is  working correctly and kick registers change their value properly.  

    But whatever I do with this function via ae674 file, nothing seems to change. 

     I'm a begginer with DSP programming and haven't got big experience with using ae674 file. Could You give me any clue how to solve this problem ? ?

    Mirek