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.

LAUNCHXL-TMS57004: BQ79606A-Q1 Sample Code "printf()"

Part Number: LAUNCHXL-TMS57004
Other Parts Discussed in Thread: BQ79606A-Q1, , BQ79606EVM-897, TMS570LS0432

Hi Support,

I am evaluating LAUNCHXL-TMS57004 + bq79606EVM-897 board sets for a BMS system. In the BQ79606A-Q1 Sample Code, where can I see the message from the printf()? The PC terminal of Comport via debug usb cable, or the Console of CCS? If it is the terminal, then what is the baud rate?

And should I choose Debug or Release configurations?

Thanks,

Eric

  • Hello Eric,

    The printf() is to print the message to CCS console. To use printf(), the stdio.h should be included in your file.

  • Hi QJ,

    How to make the Launchpad talk to the PC via the Com port? Since R8 is removed for getting the launchpad to talk with the BQ79606EVM.

    Or any example codes to realize this?

    Thanks,

    Eric

  • Hi Eric,

    On the TMS570LS0432 MCU, there is only one UART port that can be used for the communication with the BQ79x device. TMS570LS0432 communicates with the host PC through a UART port emulated by the N2HET module. 

    On the TMS570LS0432 LaunchPad, the TMS570LS0432 UART is connected to the XDS100V2 FT232HL IC for user to communicate with the TMS570LS0432 device through a USB UART port on the host PC. This connection must be replaced by the UART emulated by the N2HET module.

    To achieve this, please remove R8 and R9, and connect J4-1 (N2HET00) to U2(FY2322) pin 39, J4-2 (N2HET02) to U2(FT2322) pin 38.

    Please find the N2HET emulated UART code in the following example: