Hi,
I'm facing some problems on the c6748 boot using SPI slave mode.
the test code consists only of:
EXEC_CMD (OpCode + FXN_NUM&ARG_CNT + Arguments)
EXEC_CMD
LOAD_CMD (OpCode + Address + Size + Datas)
LOAD_CMD
LOAD_CMD
JMP_CLS (OpCode + Address)
I think the problem is due the mixing of words, because 32 bits (ABCD) should be sent the least significant word first (CDAB).
The way I send:
- 32 bits: ABCD -> C D A B
- 16 bits: ABCD -> A B C D
- 8 bits: ABCD -> A B C D
Which arguments are 16 and which are 32 bits long?
EXEC_CMD:
- OpCode (32)
- FXN_NUM (16)
- ARG_CNT (16)
- Arguments (16)
LOAD_CMD:
- OpCode (32)
- Address (32)
- Size (32)
- Datas (16)
JMP_CLS
- OpCode (32)
- Address (32)
Am I right?
I tried to send all like 32bits (except the FXN_NUM&ARG_CNT from EXEC_CMD) but still didn't work.