This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am encountering a problem migrating from CCS v3.1 to v4.2. I was using v3.1 that came with the DSK6713 board. We have upgraded to v4.2 as we are getting towards the stage were we wish to manufacture our own prototype board. I did not use the migration tool because it seemed to make a big mess, probably due to the amount of versions being skipped.
I have successfully created a project with a bios (v5), imported our source files and got aspects of our program working on the DSK6713 with the bsl and csl included. The problem I am having is getting the hardware interrupts to function. In particular the MCBSP0 Rx interrupt. The MCBSP is actually configured in the source code not the bios, everything in the bios is the same and the source code hasn’t been changed (other than to include the different cfg.h file). The first of six 8 bit transmissions is sent on a periodic function. We have scoped the pins and data is sent from and sent back to the DSP but the interrupt is not triggered.
Do you have any suggestions as to why I am having this problem? Any advice/tips would be very much appreciated.
On another note I am also getting a "function declared implicitly" warning when using sprintf, stdio.h is included at the start of the file, again any help would be great.
Kind regards
Sean Bedford
Hi Sean,
Sean Bedford said:I have successfully created a project with a bios (v5)
Did you migrate from BIOS 4.9 (the default in 3.1 I believe) or were you already using BIOS 5?
Hi Ki-Soo,
The bios was one of the bits that wouldnt migrate properly so I created a knew one and used all the same settings.
Sean
It seems it was down to me not initilising the CSL ( CSL_init(); ), which im guessing was being done for me else where in v3.1. Now the main issue is the function inplicitly declered. It seems to be a problem with sprinf, I undenstand that this may be down to a slimmed down version of stdio.h used by ccs v4. If this is correct could you please tell me how to go about including the full version, or at least the sprinf section.
At the minute the DSP crashed during umulation.
Many thanks
Sean
Sean,
If stdio.h is included, then you should not get a "function declared implicitly" message for sprintf. Are you sure that is the function it is giving the warning for?
Did you try increasing your stack and heap to see if that helps with the crash?
Other considerations when using printf/sprintf: http://processors.wiki.ti.com/index.php/Tips_for_using_printf
Hi Aarti,
Thank you very much for your reply, I increases the stack size from 400 to 800 and it all works fine. However, it is definitely the sprintf that is causing the "function declared implicitly" error and im am definitely including stdio.h.
Any ideas how I can stop it reporting the warning?
Sean