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: Generating Driver code in halcogen for TMS57004

Part Number: LAUNCHXL-TMS57004
Other Parts Discussed in Thread: BQ76PL455A, HALCOGEN, BQ76PL455A-Q1

Hello There,

I hope you can help me here.

I'm trying to use HALCoGen for generating the headers and source files for doing the same as the example provided in TI web page to comunicate with the bq76pl455a. Unfortunately no Halcogen file is provided in that example!, please provide if available.

I believe I have configured everything correctly in Halcogen, SCI, GIO, RTI but the code stays waiting for a response from the bq76pl455a-q1.

The code is attached, if that helps.

Resistors R8 and R9 have been already removed from the launchpad.

Could you please tell me what is wrong in this code?

Kind regards,

Pere

2112.pl455_halcogen.zip

  • Hi Pepe,
    What I saw is that you should modify "notification.c" to service interrupts required (follow the example code from TI).
    The following is copied from TI example code ("notification.c").
    void sciNotification(sciBASE_t *sci, uint32 flags)
    {
    /* enter user code between the USER CODE BEGIN and USER CODE END. */
    /* USER CODE BEGIN (29) */
    UART_RX_RDY = 1;
    /* USER CODE END */
    }

    and

    void rtiNotification(uint32 notification)
    {
    /* enter user code between the USER CODE BEGIN and USER CODE END. */
    /* USER CODE BEGIN (9) */
    /** - Clear all pending interrupts */
    //rtiREG1->INTFLAG = 0x0007000FU;

    RTI_TIMEOUT = 1;
    /* USER CODE END */
    }

    Best regards,
    Miro
  • Thanks a lot for that Miro, that solved my problem.

    Regards,
    Pere