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.

About HALCoGen 03.05.02 Usage

Other Parts Discussed in Thread: HALCOGEN

Hi,

I have several questions about HALCoGen 03.05.02 .

Q1:  I just want to use few pins of  MibSPI  as GIO.  Do  I have to enable the "MibSPI driver" in "RM48L952PGE--->Driver Enable" of HALCoGen 03.05.02 ?

       if a driver is disable in  "RM48L952PGE--->Driver Enable" of HALCoGen 03.05.02 ,  It's code (like it's *.h and *c  files) will not be compiled and linked, is it correct?

Q2:  When I change the project and generate the code in HALCoGen 03.05.02, Sometimes the CCS5.4 which share the project with HALCoGen 03.05.02  show me an update prompt, Sometimes it does no show the prompt. why?

Thanks,

Chuan

  • Chuan,

    Your question has been forwarded to the HALCoGen team.

    Thanks and regards,

    Zhaohong

  • Hi Chuan,

    Way to configure Module pin as IO

    Step 1)  Enable GIO driver and the coresponding Module ( in this case MIBSPI) in Driver Tab

    Step 2)  Make sure Pin is selected in the PINMUX

    step 3) Go the respective module ( in this case MIBSPI) go to the IO TAB, Selecte the respective pin as GIO and choose the Direction, Dout, Pull configurations for that pin.

    step 4)  Generate the Code

    Step 5) Call Module Init ( in this case mibspiInit()); /* Typically the Pull and direction configurations happen through this API ).

    Step 6) Use GIO driver API's to set / read port/Pin etc. Eg : gioSetBit(mibspiPORT1, 2, 1) -- Sets 1 to pin mapped to Bit number 2.

    Regards
    Prathap

  • Hi Prathap,

     

    Thanks for your answer.

    B.Rs,

     

    Chuan