I'm trying to compile a firmware for Crazyradio PA (but the issue is not specific to it), in which I added a library I needed from Nordic Semiconductor's SDK.
The library is initially meant to be compiled under Keil µVision IDE, so I naturally changed everything in the code for it to work with SDCC without too much hassle, but a simple pointer definition is making me struggling. SDCC compiler gives me this error:
syntax error: token -> 'unsigned' ; column 10
Which corresponds to this line in the code:
unsigned char * buf = (unsigned char *)pbuf;
pbuf being an unsigned char pointer passed as an argument of the function where all this code is.
I tried the following, unsuccessfully:
- Change the data type of buf (to anything, just to see)
- Isolate the problem by commenting out lines before and after
- Assigning a simple value instead of (unsigned char *)pbuf
The problem remains the same (to the difference of the data type that of course changes as well). The solution may be simple, but I've come short with ideas and I'm only a trainee with little experience with SDCC so I hope you'll be indulgent.
Thanks again and please educate me on anything I did wrong ! :)