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-EP: EMAC data transmitting zeros when Cache enabled.

Part Number: TMS570LC4357-EP
Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN

We are using device is TMS570lc4357 and doing the EMAC testing (HalcoGen generated code). When we enable the cache, the Wiresharak receiving all zeros. however we didn't observe any issues when Cache is disabled. Could you please help us to resolve the issue. 

Thanks,

Subash

  • Hi,

      I think the reason is that by default, HalcoGen setup the cache for write-back scheme. When it is in write-back, the SRAM is not updated as the data is only in cache. You can do Google search for write-back vs write-through to get a better understanding between the two. EMAC is trying read the Ethernet packets stored in the SRAM which has nothing in it. You will need to change the cache scheme from write-back to write-through. See below highlighted in yellow for write-through. 

  • Hi Charles,

    Thank you very for your quick response! It as working now as expected.

    -Subash