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.

TDA4VH-Q1: J784S4XG01EVM internal SPI

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: AM69, TDA4VH

Dear support, 

According to 
"SPRUJ52C – JUNE 2022 – REVISED JULY 2023
Technical Reference Manual
J784S4, TDA4AP, TDA4VP, TDA4AH, TDA4VH, AM69"

p. 411 last sentence 
"The MCU_MCSPI2 and MCSPI4 modules are not pinned out externally, but MCSPI4 is connected directly as a
Target to the MCU_MCSPI2 module as an Initiator as shown in Figure 5-27"


The SPI bus between MCU and SOC cannot be accessed by outside pins; how can the SPI be debugged when MCU should be master of the SPI?

We have the requirement that MCU is SPI master. I am worried if there is any timing problems or other issues with SPI that we need to monitor the SPI bus between MCU and SOC.

Best regards
Erwin

  • Hello, 

    Please expect some delay in response due to holiday in TI India

    Regards

    Tarun Mukesh 

  • Hello,

    sorry for the delay.

    The "MCU_MCSPI2 and MCSPI4 modules are not pinned out externally" is an unsupported functionality in the device but you can use MCU_MCSPI1 which can be pinned out externally .By default, the MAIN MCSPI3 is connected as Initiator to MCU_MCSPI1 as Target. Alternatively, MAIN MCSPI3 and MCU_MCSPI1 can be pinned out externally. System-level muxes controlled by MCU_SPI1_CTRL[SPI1_LINKDIS], MCU_SPI1_CLKSEL[MSTR_LB_CLKSEL], and SPI3_CLKSEL[MSTR_LB_CLKSEL] allow MCU_MCSPI1 inputs to be controlled from either the I/O pin inputs or the MCSPI3 module.

     

    Regards

    Tarun Mukesh

  • Hello,

    Thanks for your response.

    Our requirement is that MCU is SPI master; as far as I understood MCU_MCSPI1 can only be used as a SPI slave. On p.410 in the block diagram the clock goes only into the MCU, which indicated that it is a slave.

    Could you please let me know how to use MCU as SPI master and get the SPI signals out for debugging.

    Best regards

    Erwin

  • Erwin,

    By default MCU_MCSPI1 is connected as slave to MAIN MCSPI3 but we can pin out independently then MCU_MCSP1 can be used as master.You can use MCU_MCSPI0 as well if you are unable to follow the details on MCU_MCSPI1.

    You can see the example mcusw/mcal_drv/mcal/examples/Spi/mcspi_app/soc/j784s4/mcu1_0/McspiApp_Startup.c.

    Regards

    Tarun Mukesh