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.

MCU-PLUS-SDK-AM243X: AM2434 issue in MCSPI while printing rx_buffer data, SDK: 08.06.00.45

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: AM2434, ADS1299, SYSCONFIG

Tool/software:

I'm interfacing AM2434 with ADS1299 via SPI. I'm reading data for 8 channels, and storing it in a 27-byte buffer (3 status bytes + 24 channel data bytes).

  • The first 3 bytes (status) match with logic analyzer output.

  • The remaining 24 bytes (channel data) don't match the logic analyzer.

  • I'm using MCSPI in Mode 1, SCLK = 20 MHz.

  • Suspecting a possible issue with MCSPI initialization or timing.

I have attached the MCSPI_transaction initialization image below.

I'm attaching the observed logic analyzer data vs Serial monitor data tried to print.

Has anyone faced a similar issue?
What could be causing the mismatch in channel data?

Thanks in advance.

  • Hi,

    This issue is solved, by TX enable option is enabled for both D0 and D1 in example.sysconfig file, but we don't understand the logic behind it. In all the example reference code which we refered, no where both DO and D1 is enabled. How this works. Could you please explain it?

    Thank you.

  • Hi,

    I have gone through your query.

    Irrespective of the query being resolved now as per your latest response and comments, I do not understand what do you mean by 8 channels? Are these channels associated with ADS peripheral? I am assuming yes.

    This issue is solved, by TX enable option is enabled for both D0 and D1 in example.sysconfig file, but we don't understand the logic behind it

    This should not work at all. There has to be a mismatch between hardware and software settings or configurations.

    If you set both D0 and D1 as TX Enabled, that would mean that both of them are meant to just transmit data and none is used to actually receive data.

    Please check the following:

    • If you set D0 as input, hence D0 is TX Disabled and D1 is TX Enabled.

      In this case, please check the hardware connections for this case. The D0(MISO) should be strictly connected to the MOSI of the Peripheral and D1(MOSI) should be connected to MISO of the peripheral.

    • If you set D1 as input, hence D0 is TX Enabled and D1 is TX Disabled.

      In this case, please check the hardware connections for this case as well. The D0(MOSI) should be strictly connected to the MISO of the Peripheral and D1(MISO) should be connected to MOSI of the peripheral.

    Looking forward to your responses.

    Respectfully,

    Vaibhav