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.

RM46L852 Hercules SCI Configuration problem

Other Parts Discussed in Thread: HALCOGEN, RM46L852

Hi,

I am working on the RM46L852 MCU using RM46XHDK board.Now this MCU is having two SCI port provision, one in the form of SCI/LIN driver and another only SCI. We are able to test and transmit data through the SCI/LIN port from the example code given in HALCOGEN.

Our problem arises when we try to transmit data using the other SCI port of this board.The data is not transmitted in this case.

Can anybody kindly guide us how to go ahead with the actual SCI port of this MCU for serial communication(not the SCI/LIN port).

Kind Regards,

Avik

  • Did you set the pin mux for the other SCI?

    The other SCI pin is muxed with NHET pins, and,

    By default, they are NHET pins.

    Regards,

    Haixiao

  • Dear Haixiao Weng ,

    Thanks for your reply.

    We have set the pin Mux for the original SCI and generated the code using halcogen and finally loaded it on MCU using CCS.But we didn't get any results. Whereas we are able to access the other SCI port which is a prt of LIN also.The pin mux for the actual SCI was pin number 6 and pin 13.

    I am new to this.Kindly guide us so that I can achieve communication using the actual SCI port of the board.

    Waiting to get detailed guidance from your end.

    Kind Regards,

    Avik

  • I did not see anything wrong here. Two options:

    1) upload your project.

    2) I create a project with this SCI port communicating with PC.

    Let me know what prefer.

    Regards,

    Haixiao

  • Dear Haixiao Weng ,

    I must appreciate your support and help to crack my issue.

    Now,it would be great if we try both of the options suggested by you.

    So,here I am uploading my code along with the steps I followed to do my experiment.Please check it out and also kindly give us a fresh code of creating a project with this SCI port communicating with PC that you mentioned in option 2.

    Awaiting to hear from you.

    Kind Regards,

    Avik

    8132.To_Send_CODE.rar

  • Avik,

    Looks like pin mux was not set correct. HalCoGen does not lesson to your command. Browse Pinmux.c,

    Change from:

    pinMuxReg->PINMMR7 = PINMUX_BALL_V5_MIBSPI3NCS_1 | PINMUX_BALL_W3_HET1_06;

    pinMuxReg->PINMMR8 = PINMUX_BALL_N2_HET1_13 | PINMUX_BALL_G3_MIBSPI1NCS_2 | PINMUX_BALL_N1_HET1_15;

    To:

    pinMuxReg->PINMMR7 = PINMUX_BALL_V5_MIBSPI3NCS_1 | PINMUX_BALL_W3_SCIRX;

    pinMuxReg->PINMMR8 = PINMUX_BALL_N2_SCITX | PINMUX_BALL_G3_MIBSPI1NCS_2 | PINMUX_BALL_N1_HET1_15;

     Regards,

    Haixiao