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.

TMS570LC4357: TMS570LC4357: Hercules™︎ safety microcontrollers forum - ENABLING 256 BUFFERS OF MIBSPI1

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi Dear Sir/Madam,

I am trying to achieve 256 buffers at the mibspi1, just like Karthikeyan tried to do.  I have modified the HL_mibspi.c file as below.

I have deleted the line which is created automotically by Halcogen and put the new code line as seen at 77th . By doing this, I wrote 0xA to EXTENDED_BUF_ENA bits of MIBSPIE register. Thus, I expect that this setting will ensure writing 256 byte in MIBSPI1.


The TGs configuration can be seen in the figure pressented below. TG0 uses 4, TG1 uses 222 and TG3 uses 30 byte buffers. That means I am trying to use totally 256 buffers.  When I compile the code and loaded to MCU, my code stucks at "while(mibspiIsTransferComplete(mibspiREG1,1)==0);" while I was tried to send 222 Byte.  

It is looking like there is something missing in the settings. Making Ah the EXTENDED_BUF_ENA  bits of the MIBSPIE register is not enough. What else should I do?

Thank you in advance..

Best regards.