Tool/software: TI C/C++ Compiler
Hi,
I have a function that is setting up a write over a SPI bus, the prototype looks like:
uint32_t fpga_write_burst(uint8_t length, uint8_t bank, uint8_t addr, uint16_t *txdata, uint8_t channel)
Curiously, it doesn't seem like the last parameter is passed into the function. I've also tried swapping out the last parameter length to channel, and have the same result.
The results of step by step debugging are shown in the images:
I'm not familiar enough with assembly to decypher exactly what's going on here, but it would seem like it isn't storing the values in the stack properly during the function call?
Here's the disassembly from the call when it works:
Any help would be greatly appreciated, thanks!
Nick