Hi there!
I have connected a SD Card to the SSC0-module of the Infineon XC167 Card. I am able to initialize the card in SPI mode, read data from the card and write data to the card.
The problem is that Keil's demo-compiler has a limit of the code size generated by the compiler.
Before settling with this card and the compiler I would like to evaluate the card more. That is why i have tried the free GNU KPIT Corona compiler for XC16x.
But although I am using the same code, I cannot even configure the SSC0-module. -If I try to enable the SSC0 module by setting the SSC0.EN = '1', the bit remains '0'. In fact the entire SSC0 register is '0'. I am using a general unlock function, MAIN_vUnlockProtecReg() but it doesn't seem to help.
Any ideas?
With kind regards, Michael
If this is a bona fide evaluation of the Keil tools with a genuine view to purchase (ie, you're not just after a freebie), then you should speak to Keil and/or your distributor - you might be able to come to some arrangement... (I am not Keil - I can't make any promises!)
eg, Hitex do short-term licences on (some) Keil tools...
" i have tried the free GNU KPIT Corona compiler for XC16x."
The Keil forum isn't really the place for support on that, is it?
"But although I am using the same code"
Hmmm... you really can't just assume that you can take code written for one compiler and have it "just work" on another - especially with embedded stuff like this which is going to be very implementation-specific.
:-(
Have you tried looking at the generated assembler?
Of course the code is adapted for the specific compiler which has different naming conventions than the Keil compiler....
I assume that different compilers initialize the controller modules differently, but I wanted to check if there are other explanations....