Hello,
TRM spnu499a on the page 245 states:
• bw - Normal data space bank data width of a Flash bank. The bw is 128 bits (144 bits including the error correction bits).
• bwe - EEPROM emulation bank is 128 bit wide (144 bits including the error correction bits).
Flash API reference spnu501d on the page 16 (Fapi_issueProgrammingCommand()) states:
Fapi_DataOnly – This mode will only program the data portion in Flash at the address specified. It can program from 1 byte up to the bank width (8,16,32) bytes based on the bank architecture.
Based on the above mentioned information I would assume that the function Fapi_issueProgrammingCommand() can write from 1 up to 16 Bytes (128 bits + 2*8 ECC bits) on the TMS5703137. But I have got following results:
relative address | length in Bytes | programming mode | function return | remark |
write sequence A | ||||
0x01 | 16 | Fapi_DataOnly | Fapi_Error_AsyncIncorrectDataBufferLength | in contrary to the above mentioned? |
0x17 | 3 | Fapi_DataOnly | Fapi_Status_Success | OK, data length up to bank width |
0x1A | 5 | Fapi_DataOnly | Fapi_Status_Success | OK, data length up to bank width |
write B | ||||
0x04 | 16 | Fapi_AutoEccGeneration | Fapi_Error_AsyncIncorrectDataBufferLength | in contrary to the above mentioned? |
write sequence C | ||||
0x01 |
8 |
Fapi_DataOnly | Fapi_Status_Success | OK, data length up to (or equal to?) bank width |
0x09 | 3 | Fapi_DataOnly | Fapi_Status_Success | OK, data length up to bank width |
0x0C | 5 | Fapi_DataOnly | Fapi_Error_AsyncIncorrectDataBufferLength | oops, why? |
Any ideas?
Thanks a lot for your comments in advance,
cheers, Jiri