Other Parts Discussed in Thread: TMS570LC4357, SYSCONFIG, TMDS273EVM
Tool/software:
I need help to make MIBSPI works each mode: peripheral and controller.
![](/resized-image/__size/320x240/__key/communityserver-discussions-components-files/908/pastedimage1731978899947v4.png)
![](/resized-image/__size/320x240/__key/communityserver-discussions-components-files/908/pastedimage1731978885466v3.png)
![](/resized-image/__size/320x240/__key/communityserver-discussions-components-files/908/pastedimage1731978914976v5.png)
![](/resized-image/__size/320x240/__key/communityserver-discussions-components-files/908/pastedimage1731978921409v6.png)
![](/resized-image/__size/320x240/__key/communityserver-discussions-components-files/908/pastedimage1731978927631v7.png)
![](/resized-image/__size/320x240/__key/communityserver-discussions-components-files/908/pastedimage1731978947314v8.png)
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.
Tool/software:
I need help to make MIBSPI works each mode: peripheral and controller.
Hi Tanaka-san,
In check_mibspiA_as_peripheral_am273x-evm_r5fss0-0_freertos_ti-arm-clang, you set SPI to 4-pin mode with expected CS to be F19, but in syscfg you actually set the CS pin to be A2
As a peripheral, you have to wait for the controller to send the expected amount of data. When you run the script-FT4232HL, please check the following pins:
F19 (CS), G19 (CLK) and H18(MOSI)
Best regards,
Ming
Hi Ming.
Thank you for reply.
I tried to fix it but situation is same.
When python script for FT4232HL, waveform is watchable as above.
Did attached project make MIBSPI works in your environment?
Situation in my environment is below:
- check_mibspiA_as_periferal_am273x-evm_r5fss0-0_freertos_ti-arm-clang
- SPICLK, MOSI, CS is worked by python script.
- They are seen by oscilloscope.
- but it is stucking.
- check_mibspiB_as_controller_am273x-evm_r5fss0-0_freertos_ti-arm-clang
- no waveforms can see.
Best regards.
Hi Tanaka-san,
1. For check_mibspiA_as_periferal_am273x-evm_r5fss0-0_freertos_ti-arm-clang
- SPICLK, MOSI, CS is worked by python script.
- They are seen by oscilloscope.
- but it is stucking.
[MW] It may be caused by the mis-matching between the FT4232 and the MIBSPIA on AM273x.
2. For check_mibspiB_as_controller_am273x-evm_r5fss0-0_freertos_ti-arm-clang
[MW] can you try to change MIBSPIB to MISPIA like the MIBSPI loopback example and see whether you can get any CLK, CS and MOSI?
Best regards,
Ming
Hi Ming.
Thank you for advise.
I would like to know that did attached project make MIBSPI works and could you can see waveform in your environment.
>[MW] It may be caused by the mis-matching between the FT4232 and the MIBSPIA on AM273x.
My thinking is below. Mis-matching and I/O problem seems unlikely.
- Waveform FT4232 outputs is correct.
- It is seen by image in my first post.
- Same pins are works with no problem.
- It is seen by GPIO input project.
FT4232HL script and peripheral project are attached.
Could you see setting which cause mis-matching?
> [MW] can you try to change MIBSPIB to MISPIA like the MIBSPI loopback example and see whether you can get any CLK, CS and MOSI?
Result of setting MIBSPIA as controller is seem like same the case of MIBSPIB.
No waveforms are watchable.
Waveform check method I tried is below.
MIBSPA and FT4232HL have been connected above My board: TMDS273EVM.
I have checked waveforms by attaching oscilloscope to FT4232HL pins directly.
MIBSPIB has been connected to open pin.
I have checked waveforms by attaching oscilloscope to points in below image.
Best regards.
Dear Ming.
SPIB controller mode problem is solved.
It had already been working. Problem was my usage of oscilloscope.
I had to use single mode of that.
Because of DebugP_log, main loop is too slow to show with auto mode.
SPICLK, MOSI, CS0 are correct waveforms.
SPIA peripheral mode problem is remain.
When set SPIA to controller mode, SPICLK and MOSI is shown as correct waveform.
CS0 is not shown.
I tried 3pin mode, but it is not works too.
Best regards.
Hi Tanaka-san,
Glad to see that the MIBSPI controller mode is working on both SPIA and SPIB. We will look into the MIBSPI peripheral mode issue you reported. Will update you as soon as we have any progress.
Best regards,
Ming
Hi Tanaka-san,
Due to the coming Thanksgiving holiday, we will get back to you the week of Dec 2nd, 2024.
Best regards,
Ming
Hi Tanaka-san,
After discussion with our software development team, we have no plan to add example of the MIBSPI peripheral mode. The current MIBSPI driver will not be updated. If you want to use the MIBSPI as peripheral mode, you have to figure it out on your own.
Best regards,
Ming
Hi Tanaka-san,
Due to the resource limitation, we are not able to debug your program for the features we do not officially support.
Best regards,
Ming