Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

CCS/TMS320C6745: How to put C6745 into the supervisor mode?

$
0
0

Part Number:TMS320C6745

Tool/software: Code Composer Studio

Hello,

We are writing application as bare-metal (non-OS) on C6745 DSP. We don't need an OS, the DSP should compute samples of a simple function (like sinusoid) on an external interrupt, put these samples into an external memory and go into sleep mode. In previous design we used C6720 DSP processor, which performed well, but now we have to compute the samples faster.

The C6745 is booted by an external host SPI (an STM32F4 series uC). When DSP ends booting (Jump&Close operation), the the DSP runs the main program. Viewing the map file of our project and address of jump (Jump&Close operation), we see that DSP jumps to boot.obj, and next probably to main(), so it seems correct. Because we don't use OS, we use CSLR library to configure all registers as we need.

Unfortunately we are unable to put the C6745 into supervisor mode.

In case of the C6720 we called function CSL_sysInit() when processor had started main(). Probably this function executed a procedure which put this DSP into to privileged (supervisor) state. The C6745 library CSLR, in file csl.h, contains a declaration of CSL_sysInit(), but when we call it, then the compiler can not find this function.

We cannot find the correct procedure to enter the privileged state in the library. And without transition to privileged state we are unable to set any register, for example GPIO, to confirm that the processor runs.

Please advice how to put the C6745 DSP to supervisor mode. A simple example of a code would probably solve our problem.

Thank you and best regards.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>