Hi all
We are trying to use MibSPI1 bus of TMS570LC4357 to read and write an entire page of SPI e2prom
having a page size of 256 bytes. Consequently, we need to use a group made of 130 buffers (16 bits each)
We have used SPI1 bus having a 256 buffers Tx/Rx RAM, but we face some problems and have some
questions :
1/ We want ot use a group made of 130 buffers (2 for command word and 24 bits address + 128 buffers for the 256 bytes of data)
but we are not sure that LPEND field of LTGPEND register accepts an end address greater than 127 (but an 8 bits value
in this field is still writable).
2/ We have defined three groups, in following order
- group 0, starting at address 0 : one buffer (for 8 bits sendings such as write enable commad)
- group 1, starting at address 1 : one buffer (for 16 bits sendings such as read status reg of e2prom)
- group 2, starting at address 2 : 130 buffers (for read/write commadn+ 24 bits address + 256 bytes)
When trying to send group 2, the transfert works only up to buffer 127 (so the end of "non extended" RAM)
and transfert never ends
So our questions are
1/ Can we program and use a single group of more than 128 buffers ?
2/ Can we program a single buffer even smaller than 128 buffers but lying between end of normal mode buffer (addresse 127) and beginnig og extended buffer (address 128 and greater). If yes, which value do we have to program in LPEND field of LTGPEND register when end of buffer is greater than 127 ?
Hoping you can help us
Regards
Sylvain BALSSA