Other Parts Discussed in Thread: C2000WARE
I adapted one TI example to work with SPI and DMA with an EEPROM. Everything worked fine but then I introduced the code to the main project and it does not work. When I debug step by step and I activate some register bits which my code is supposed to work, the ISR gets triggered.
I've managed to create minimal examples of both codes:
- I've created a minimal example that reproduces the problem: https://drive.proton.me/urls/GBKNS0ND5C#r8Htr91tPpMs. Symptoms to watch out for:
- Only two bytes sent. It should either read an array of bytes after the first two bytes or - if no eeprom connected - keep reading status register undefinitely, constantly reading a byte.
- spiFinished stays at 0 after the first bytes are sent.
- RX isr counters don't get incremented.
- Here's the original project which did work: https://drive.proton.me/urls/DEE57V03MC#lktOnD1HAOWD. If there is no EEPROM it will keep querying the status register and if there is then it will read it to a buffer.
Example one was created exporting with 'in CCS, go to you project and right click and "Export" Then pick "file System" and also check "resolve and export linked resources"' but somehow some headers are missing. I think it has something to do with the project being created using Simulink (C2000 Support Package). I've tried copying by hand. It should contain everything (except maybe C2000Ware files). You also got a .out precompiled. Let me know if you can work with this:
https://drive.proton.me/urls/N81Y8SBK5G#lrPlB1bNKvEQ