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.

Compiler/TMS570LS1227: Is SPNA192 Bootlader sample file applicable to TMS570LS1227PGE?

Part Number: TMS570LS1227
Other Parts Discussed in Thread: TMS570LS1224, , HALCOGEN

Tool/software: TI C/C++ Compiler

We know that the SPNA192 example was validated with the TMS570LS12x Hercules Development HDK using the TMS570LS1227ZWT.

I have successfully verified the SPNA192 sample file using my TMS570LS12x Hercules Development HDK.

The IC used for actual development is TMS570LS1227PGE.
Is it possible to use the SPNA192 sample file if the memory map is the same for each package?

Other things based on the package I confirmed are as follows.

  • Hi Dongwook,

    I don't think there is any problem to run the sample code on PGE package.

  • I am careful because there is only one ASSY PCB, but I will take the courage!!!! Thank you for your response.

  • Hi QJ Wang

    After the answer, the test was conducted.

    In the case of the example, the value of the SCI register is 0xFFF7E400, and the value of this register is the register value of the LIN Port in the PGE Package.

    I used the register value 0xFFF7E500 which I use as it can be done using only the SCI port in the circuit.(SCI register value based on PGE type)

    As a result of the confirmation, the value of the hyper terminal input into the register RD.

    However, the transmitter does not send data.

    No data is sent even when checked with an oscilloscope.

    I am not sure which part to check. I need help. TuT

  • Hello,

    Do you use TI LS122x launchpad? 

  • I just tested on TI Tms570LS1224 launchpad, it works without any issue.

    What is the error message you got?

  • Version Used: 00.20.00ver (TMS570LS1227)

    sciREG1-> sciREG2 Received when all is changed. We confirmed that the TD register value was entered through the memory browser. But there was no actual hardware output (there was no problem with the build).

    Bootloader communication was successful using a new example.

    Version used: 00.30.00 (ls12_can_boot)(2019.05.01)

    I should only use Uart. Therefore, some examples have been modified.

    1. Enable UART_ENABLE_UPDATE in bl_config.h, disable CAN_ENABLE_UPDATE

    2. In this example, all Halcogen Genetate code files have been deleted and the SCI1 port has been activated with the TMS570LS1227PGE version.

           

    3. An example is #include hw.SCI.h. Changed to #include reg.sci.h (HalCogen code generation)

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    There is a new problem.....
    00.30.00 An error occurs when building the example.

    By disabling this part, the communication function was confirmed with the Hyper terminal.

  • Please check this function in bl_flash.c too see how many arguments are in this function. 

  • Thank you so much for your continued friendly answer. QJ Wang

    As a result of checking in bl.flash.c, the version is different from the 00.20.00 version.

    Temporarily applied bl_flash.c and Header of version 00.20.00. We confirmed that it is written from 0x00020000 (Start address) of the memory browser.

    I checked the binary file extracted with upload function #2 of the created program and the binary file used to download (using program : winmerge).

    I checked with the same file.

    But... it doesn't work after downloading. Debugging is currently in progress....

    1. Currently, the TMS570LS1227 Memory Map value is being checked. (The used value is the same as the CMD value of the example.)

    2. I would like to change the starting address value to 0x20000000. (See data sheet)

    3. When executing the main program to be downloaded, I will to compare the value of the Memory Browser.

    Can you please advise the direction of debugging?

  • The bootloader implementation using the example was all successful. Thank you for your continued response.

    Debug sharing
    TMS570LS1227 ZWT Uart Boot example PGE type Application conditions.

    bl_config.h

    UART   sciREG1 ==> sciREG2  (Use the SCI Port)

    Change all sciREG1 in SCIinit() to sciREG2

    system.c

    after periphinit()

    /*user code*/

    Gladiator_IOMM_UNLOCK();
    Gladiator_PINMUX_SCI2();                (SCI Port Mux)
    Gladiator_IOMM_LOCK();

    ---------------------------------------------------------------------------------------------------------------

    Problems in my project

    sys_intvecs.asm Vector Interrupt Address Value Problem

    Change all to match the starting address

    and delete list

    Finally, we disabled esmHighInterrupt in Startup.c.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    Both versions have been used successfully.
    Thank you for QJ Wang.