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.

LIN2 module not configurable

Other Parts Discussed in Thread: HALCOGEN

Hi folks,

 

I have a problem with the LIN bus on my MCBTMS570. According to the schematics of the IO-Board the LIN transceiver is driven by LIN2RX/TX. The problem is the LIN2 module can not be configured because the memory starting at 0xFFF7E500 is read and write protected. I am working with the drivers from the HALCoGen. The following picture illustrates the memory view from a debug session in CSS v4.

Could anyone help me, please?

  • Is there not even a TI employee, who can help me?

  • Hi Greg,

    Sorry for the delayed response. The picture shows a case of the memory region starting at address 0xfff7e500 to not have been defined in the debugger's memory map. There is a default gel file that is included with CCS v4.x.x This gel file includes commands that start with "GEL_MapAdd(...". These commands do not include the memory map for the LIN2 module. See pasted below from the file TMS570LS202x6S.gel:

        /* Peripheral Register Definition */

        GEL_MapAdd(0xFFF7F800, 0, 0x00000200, 1, 1); /* SPI3       - PS01         */

        GEL_MapAdd(0xFFF7F400, 0, 0x00000200, 1, 1); /* MIBSPI1    - PS02         */

        GEL_MapAdd(0xFFF7E400, 0, 0x00000100, 1, 1); /* LIN        - PS06         */

        GEL_MapAdd(0xFFF7E000, 0, 0x00000200, 1, 1); /* DCAN3      - PS07         */

    You can modify this file under the <install directory>\ccsv4\emulation\gel\ directory and add the below line:

       GEL_MapAdd(0xFFF7E500, 0, 0x00000100, 1, 1); /* LIN2 - PS06 */

    Then when you restart CCS, it will include this definition in the memory map.

    Regards, Sunil

  • Hi Sunil,

    Thanks for answering my question. Now it works fine!

    So thank you very much. :)

     

    Regards, Gregor