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.

Hercules RM48 quickstart guide - how to get UART to work?

Other Parts Discussed in Thread: HALCOGEN

Hello,

I got Hercules RM48 Cortex R4 board with RM48L950ZWT processor. Attached is the walk-through of steps I'm doing. Target: get UART to work, so that I can print stuff on serial terminal. Status: it doesn't work.

Can somebody explain me what I'm doing wrong?

Can somebody point me to the document which explains SCI/LIN stuff well, so that I can understand what "sciREG" and "scilinREG" is?

There's no documentation for this board whatsoever.

Basically I'd expect to find "how to get UART" to work guide, but unfortunately there isn't anything. I looked at HalCoGen examples, but this is only couple of C code files. There are no guides/explanations on how to set the IOMUXing etc.. correctly in HalCoGen.

Studying forum is my only choice. I browsed through several projects. Some were made under Linux, which made projects break under Windows. Others don't use HalCoGen, which apparently is a standard now.

Thanks,

wkoszek_ti_rm48_quickstart.pdf
  • Hello Koszek,

    sciREG is the pointer to SCI2 module register, and scilinREG is th epointer to SCI1 module register. 

    On HDK, the SCI1 is routed to the mini USB connector through FTDI chip. Please make sure TI XDS100V2 Channel A/B are listed under USB Controllers in Device Manager.

    Regards,

    QJ

  • QJ,

    Can you confirm you looked at my PDF and that no step is omitted? I suspect I might be missing something, since I'm using HalCoGen for the 1st time. Do you change SCI settings from the default ones in any way?

    XDS devices are visible (image below).

    What are you next suggestions?

    Can you send me the project where USB UART is known to work, so that I can verify that my board is actually operational?

    The only thing I can tell is that while I send characters from PuTTY to the board, the SCITX LED is blinking.

    Wojciech

  • Wojciech,

    I have attached a description of a lab from my workshops, which guides you step by step through HalCoGen and CCS to setup a SCI2 communication.

    Regards

     

    RM48HDK_Lab4_1(Light sensor and UART).pdf
  • Frank, QJ,

    First of all, I appreciate your help. I find this forum responsive to reported stuff.

    I solved my problem. In HalCoGen, in Driver Enable section, I must mark the "Enable SCI2 driver" checkbox. It's unchecked by default. Below is an example of correct settings.

    So my understanding is: JTAG UART = SCI2. Another UART = SCI1. scilinREG is the base address to use when I (a) either use LIN or (b) SCI2.

    Could you please confirm it makes sense? I'd like to update and release my PDF with "Hello world" quick-start guide.

    Suggestion - make HalCoGen select "Enable SCI2 driver" the default option, since getting "Hello world" should be very easy.

    2nd suggestion: make all sci* operations accepting "sciBASE_t" fail with assertion unless sciInit() correctly initialized sciREG and scilinREG. In other words: I'd expect sciSendByte(scilinREG, 'x') to fail with an assertion if scilinREG (and HW registers) hasn't been initialized correctly by sciInit().

    Thanks,

    Wojciech