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.

LAUNCHXL2-570LC43: How to use Launchxl2-570LC for programming another TMS570LC4357 chip in my design? How to drive CMOS image sensor with parallel pixel data with VSYNC and HSYNC?

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN

Dear Friends,

I am doing prototype model which is miniaturized camera using CMOS image sensor. I preferred TMS570LC4357, since it has sufficient capacity of SRAM and Flash memory which are all protected with ECC. I designed a circuit based on MT9P031, 5MP CMOS image sensor interface with TMS570LC4357 controller.

I have few clarifications regarding the usage of TMS570LC4357 suitable for my applications:

1) I have purchased LaunchXL2 TMS570LC development board. How to program TMS570LC4357 which is sitting in my proto model PCB using LaunchXL2 TMS570LC development board with its JTAG or some other peripheral interfaces (I don't want to use separate JTAG emulator or programming board), I have provided JTAG, MiSPI2 pins to connector in proto board

2) I am trying to design interface with MT9P031, which is a 5MP CMOS image sensor (gives PIX CLK, Frame Valid, Line Valid, Parallel pixel data as output) from Onsemi.  Each pixel value of the image is available in every pixel clock, The pixel clock comes out of MT9P031 in this design is 32MHz, with in 32ns of time period I need to collect the pixel data and store the pixel value in two dimensional array (w.r.t PIX CLK, Frame Valid, Line Valid signals) which crosses predefined threshold of pixel value which will be set as per requirement. I have interfaced 12-bit pixel data with N2HET pins which are configured as INPUTs, other control signals like PIX CLK, Frame Valid, Line Valid signals connected to GPIO port A. 

Whether TMS570LC4357 supports my need? If yes, what is the operating frequency and how much the power consumption?, or any other IC in TI supports my requirements (SRAM>=512kB and Flash >=1MB with ECC)

Thanks in advance...

  • Hello Esakkimuthu,

    NHET can be used as GIO, but it doesn't have input interrupt, only polling mode is supported. There are 16 GIO pins (8 GIOA and 8 GIOB), both GIOA and GIOB support interrupt.
  • Thanks for reply. Then, how to program TMS570LC4357 sitting in my custom board? What will happen if double bit error in Flash memory? How to recover my system in case of double bit error?

  • Hello,

    You can program code through JTAG (in chain with another device), or you can program LC4357 through SPI/CAN/UART if the SPI/CAN/UART bootloader has been programmed to LC4357 flash (has to use the JTAG).

    If double bit error occurs in the flash memory, ESM-NMI interrupt (group 2, channel 19) is generated, and ESM->nERROR if it is enabled.
  • Thanks for your reply.
    I have purchased Launchxl2 570LC development board, whether Launchxl2 570LC development board supports programming of external TMS570LC4357 by JTAG or any other modes? I need to read 16 pins of NHET pins as input. How to use NHET as GPIO in TMS570LC4357? How to configure SPI in slave mode?

    Due to timing constraints I want to develop my own code. How to write GIO and SPI without the help of HALCoGen tool and its files. Any example codes ?

  • Hello,

    The NHET can be used as GIO. The NHET Module has GIO port configuration registers which is used to configure the GIO pin (DIR, OUT/IN, PULL, SET/CLEAR, etc).

    You can use the GIO function for NHET IO port, for example:

    /* Set high end timer GIO port hetPort pin direction to all output */

    gioSetDirection(hetPORT1, 0xFFFFFFFF);

    /* Toggle HET pin 0 */

    gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000001);

    To use SPI for slave mode operation, both the MASTER and CLKMOD bits in SPIGCR1 register should be cleared to 0. SPICLK will not be generated internally in slave mode.

    You can use the drivers generated through HALCoGen as a reference to write your own driver for GIO and SPI.