Ive done a little more testing on this and found the following:
I added this code
void gs_process_cmd_resp(uint_8 ch, GS_CONTEXT_STRUCT_PTR priv) { uint_8* cmdRspBuff = priv->rxrsp_buf; uint_8 i=0; priv->rxrsp_buf[priv->rxrsp_len] = ch; priv->rxrsp_len++; priv->rxrsp_buf[priv->rxrsp_len] = '\0';#warning TEST if(ch != 0) printf("ch = %c \"%02X\"\n", ch, ch); //Test code if(ch == '\n') {... The output now looks like this:
------------------------------CONSOL-----------------------------------------
adc: device opened
RTCS Created
ENET_get_mac_address
SPI clock mode:0
SPI baud rate:1000000 Hz
GPIO ISR attached...
SPI init success
Starting GS SPI link synchronization..
GS SPI link up.
ch = ¿ "BF"
ch = ¿ "BF"
ch = ¿ "BF"
ch = ¿ "BF"
ch = ¿ "BF"
ch = ¿ "BF"
//.. continues as before ..
------------------------------CONSOL-----------------------------------------
I have also looked at the SPI interface, and while it works, its just doing the same thing over and over again, but CLK, SDO, SDI and CS all appear to work as I would expect, just the data does not appear to be usable as it repeats itself over and over with identical chars
There is no real usable debug information or trouble shooting, I have no idea what to do, the example should work out of the box.