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.
Part Number: MSP432P401R
I'm trying to set the SPI bit rate to 24M (or even higher) but SPI init failed, since the clock picked for the SPI is low due to the power level.
How do i set the highest power level (force AWAKE) and make the SPI use higher clock?
The highest that i'm able to set is 6M SPI bit rate, and it is with 12M SMCLK. I saw that with power level 3 I can get higher SMCLK.
LL Flow: in SPIMSP432DMA_open calling PowerMSP432_getFreqs- which is calling Power_getPerformanceLevel()
Level returned is 2, which returnes SMCLK value of 12M.
I see that if i will be able to set the level to 3, the SMCLK will be 24M thus ill be able to set the SPI to higher bit rate
Power Switches, Applications Manager
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Priya Thanigai:
yes this is the launchpad.
my code is based on the "powerperformance" example code on CCS with ti-rtos
In reply to Gilboa Shveki:
You will have to create a custom performance level. Please take a look at this post:
Your "new" performance level should look something like this:
PowerMSP432_PerfLevel myPerfLevels =
.activeState = PCM_AM_DCDC_VCORE1,
.VCORE = 1,
.clockSource = CS_DCOCLK_SELECT,
.DCORESEL = CS_DCO_FREQUENCY_48,
.DIVM = CS_CLOCK_DIVIDER_1,
.DIVHS = CS_CLOCK_DIVIDER_1,
.DIVS = CS_CLOCK_DIVIDER_1,
.flashWaitStates = 1,
.enableFlashBuffer = true,
.MCLK = 48000000,
.HSMCLK = 48000000,
.SMCLK = 48000000,
.ACLK = 32768
Having said that, the maximum SPI speed that we guarantee is 16Mbps and please keep in mind that we cannot guarantee anything that's not listed in the msp432 datasheet.
Hopefully this helps.
In reply to DavidL:
that works perfectly. had to upgrade to latest SDK for this. thanks!
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.