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 have been trying to figure out why my ADC14 application is so flaky. Sometimes it seems to work and sometimes not. I would really like to go at full speed if possible to make measurements from several different analog inputs at as near to the same time as possible with the ADC14. Because of this I was trying to set the clock so it would go at that frequency. I have narrowed my problem down to the following code. When I change the CS_DCO_FREQUENCY_48 to CS_DCO_FREQUENCY_24 it works wonderfully, but when I don't, single stepping along, it goes picking daises as soon as the MCLK is set at 48 MHz, and ends up at:
No source available for "0x9b28"
* This was modified by Rob Frohne
// Halting WDT
// Set to Vcore1
// Set to use DCDC
// Initializes Clock System
CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
//CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_1 );
CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, CS_CLOCK_DIVIDER_2 );
//CS_initClockSignal(CS_ACLK, CS_REFOCLK_SELECT, CS_CLOCK_DIVIDER_1);
This is with a "Red Launchpad". Any ideas?
You need some flash wait states:
FlashCtl_setWaitState( FLASH_BANK0, 2);
FlashCtl_setWaitState( FLASH_BANK1, 2);
PCM_setPowerState( PCM_AM_DCDC_VCORE1 );
CS_setDCOCenteredFrequency( CS_DCO_FREQUENCY_48 );
CS_initClockSignal(CS_MCLK, CS_DCOCLK_SELECT, 1);
CS_initClockSignal(CS_SMCLK, CS_DCOCLK_SELECT, 1);
CS_initClockSignal(CS_HSMCLK, CS_DCOCLK_SELECT, 1);
In reply to Keith Barkley:
In reply to Rob Frohne:
A couple of things. Keith has already correctly pointed up the need to change the wait states and the Vcore settings per the datasheet:
Please also be aware that the ADC also has a maximum of 25Mhz:
And to your original question, I could not find the explicit instructions for the factory reset, so I am providing a link to another post:
Hope that helps,
In reply to Chris Sterzik:
Rob, I am not sure I understand what you are saying. You should be able to find the GEL script here: C:\ti\ccsv7\ccs_base\emulation\gel\msp432_factory_reset.gel Are you saying that when you follow the instructions here (e2e.ti.com/.../1843789 )that the MSP432_Factory_Reset is not one of the default scripts (Scripts->default)? Thanks, Chris
Yes, that is correct, but furthermore, things have changed with the .ccxml file as well, so I can't even get past #4, and if I did, the reset script is not there either. I found a gel script that I could possible load, but I can't find up to date instructions on how to do that with Code Composer Studio 7.1.
Thanks for taking the time to help me out!
Thanks for the additional details. Can you try the following?
That got a lot closer, but I still get an error about configuration not being correct. Here are a couple screen shots. The first shows my config (also the source is pasted below the screen shot), and the second is the error.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><configurations XML_version="1.2" id="configurations_0"><configuration XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0"> <instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe_0" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe_0" xml="TIXDS110_Connection.xml" xmlpath="connections"/> <connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe_0"> <property Type="choicelist" Value="1" id="SWD Mode Settings"/> </connection> </configuration></configurations>
So sorry to report I'm still unable to resuscitate this board.
Thanks again for your persistence helping me with this problem!
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. 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 respect to these materials. 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.