Quantcast
Channel: Microcontrollers
Viewing all 222820 articles
Browse latest View live

Forum Post: RE: TMS570LS3137: Unable to communicate with target on JTAG interface

$
0
0
Thank you for suggestions. I can load the SW to MCU. However, this brings another issue - MCU reports an error code in ESM Error Group 3, ESM Status Register 3 (ESMSR3) is set to 0x00000002 so _c_int00 function enters an infinite loop by evaluation condition ( if ((esmREG->SR1[2]) != 0U) ) as true as shown in attached snippet of sys_startup.c module generated by HALCoGen. Unfortunately, the resolution of related thread does not help. Table 6-35 in SPNS162C describes that error 2 is reserved. Thank you. /* Check if there were ESM group3 errors during power-up. * These could occur during eFuse auto-load or during reads from flash OTP * during power-up. Device operation is not reliable and not recommended * in this case. * An ESM group3 error only drives the nERROR pin low. An external circuit * that monitors the nERROR pin must take the appropriate action to ensure that * the system is placed in a safe state, as determined by the application. */ if ((esmREG->SR1[2]) != 0U) { /* USER CODE BEGIN (24) */ /* USER CODE END */ /*SAFETYMCUSW 5 C MR:NA "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */ /*SAFETYMCUSW 26 S MR:NA "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */ /*SAFETYMCUSW 28 D MR:NA "for(;;) can be removed by adding "# if 0" and "# endif" in the user codes above and below" */ for(;;) { }/* Wait */ /* USER CODE BEGIN (25) */ /* USER CODE END */ } /* USER CODE BEGIN (26) */ /* USER CODE END */ /* Initialize System - Clock, Flash settings with Efuse self check */ systemInit();

Forum Post: RE: TMS320F280025: error "No source available for "_system_post_cinit()" after enabling watchdog

$
0
0
Vivek, Thank you for the great insight. I found it worked now if changed the emulation boot setting. It seems we can only change it in the Memory debugger, and no peripheral registers could be configured for the emulation boot setting, right?

Forum Post: RE: TMS320F28054F-Q1: C2000 MCU(Instaspin-FOC), Recommend a replacement.(less software modifications)

$
0
0
Thank you for your answer. I'm using TMDSCNCD28054MISO & TMDSHVMTRINSPIN, Instaspin-FOC Solution. ( C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\hvkit_rev1p1\f28x\f2805xF\projects\ccs ) When changing MCU from 28054M to 28052F, Can I use it without software changes? When the memory address is different, Need software changes? ex) .cmd file , etc... Thanks and regards,

Forum Post: TMS320F28388D: DMA continue mode reading incorrect data from ADC SOC

$
0
0
Part Number: TMS320F28388D Hello, I am trying to have DMA reading ADC data at the end of SOC15. SOC is triggered by ePWM. The example of "adc_ex6_soc_continuous_dma" only runs once, so I modified the DMA configuration from DMA_CFG_CONTINUOUS_DISABLE to DMA_CFG_CONTINUOUS_ENABLE. I also removed the trigger disable in dma interrupt. I also would like to have all SOC triggered by epwm1, so I changed the software tigger in the example. I get correct data if the DMA_CFG_CONTINUOUS_DISABLE is set: But the data reading is incorrect if I changed it to DMA_CFG_CONTINUOUS_ENABLE: I have my modified c file attached. I am not sure what configuration I missed. //########################################################################### // // FILE: adc_ex6_soc_continuous_dma.c // // TITLE: ADC continuous conversions read by DMA. // //! \addtogroup driver_example_list //! ADC Continuous Conversions Read by DMA (adc_soc_continuous_dma) //! //! This example sets up two ADC channels to convert simultaneously. The //! results will be transferred by the DMA into a buffer in RAM. //! //! \b External \b Connections \n //! - A3 & B3 pins should be connected to signals to convert //! //! \b Watch \b Variables \n //! - \b adcADataBuffer \b: a digital representation of the voltage on pin A3\n //! - \b adcBDataBuffer \b: a digital representation of the voltage on pin B3\n //! // //########################################################################### // $TI Release: F2838x Support Library v3.03.00.00 $ // $Release Date: Sun Oct 4 16:00:36 IST 2020 $ // $Copyright: // Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // // Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the // distribution. // // Neither the name of Texas Instruments Incorporated nor the names of // its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // $ //########################################################################### // // Included Files // #include "driverlib.h" #include "device.h" // // Function Prototypes // __interrupt void dmach1ISR(void); void configureEPWM(uint32_t epwmBase); void configureADC(uint32_t adcBase); void setupADCContinuous(uint32_t adcBase, uint16_t channel); void initializeDMA(void); void configureDMAChannels(void); // // Defines0 // #define RESULTS_BUFFER_SIZE 256 // Buffer for storing conversion results // (size must be multiple of 16) #define EX_ADC_RESOLUTION 16 // // Globals // #pragma DATA_SECTION(adcADataBuffer, "ramgs0"); #pragma DATA_SECTION(adcBDataBuffer, "ramgs0"); uint16_t adcADataBuffer[RESULTS_BUFFER_SIZE]; uint16_t adcBDataBuffer[RESULTS_BUFFER_SIZE]; volatile uint16_t dma_done; void main(void) { uint16_t resultsIndex; // // Initialize device clock and peripherals // Device_init(); // // Disable pin locks and enable internal pullups. // Device_initGPIO(); // // Initialize PIE and clear PIE registers. Disables CPU interrupts. // Interrupt_initModule(); // // Initialize the PIE vector table with pointers to the shell Interrupt // Service Routines (ISR). // Interrupt_initVectorTable(); // // Set up ISRs used by this example // // ISR for DMA ch1 - occurs when DMA transfer is complete // Interrupt_register(INT_DMA_CH1, &dmach1ISR); // // Enable specific PIE & CPU interrupts: // DMA interrupt - Group 7, interrupt 1 Interrupt_enable(INT_DMA_CH1); // // Stop the ePWM clock // SysCtl_disablePeripheral(SYSCTL_PERIPH_CLK_TBCLKSYNC); // // Call the set up function for ePWM 2 // configureEPWM(EPWM1_BASE); // // Start the ePWM clock // SysCtl_enablePeripheral(SYSCTL_PERIPH_CLK_TBCLKSYNC); // // Configure the ADCA & ADCB and power it up // configureADC(ADCA_BASE); configureADC(ADCB_BASE); // // Setup the ADC for continuous conversions on channels A3 and B3 // setupADCContinuous(ADCA_BASE, 2); setupADCContinuous(ADCB_BASE, 2); // // Initialize the DMA & configure DMA channels 1 & 2 // initializeDMA(); configureDMAChannels(); // // Initialize results buffer // for(resultsIndex = 0; resultsIndex > 4), -14, 2); DMA_configMode(DMA_CH1_BASE, DMA_TRIGGER_ADCA2, (DMA_CFG_ONESHOT_DISABLE | DMA_CFG_CONTINUOUS_ENABLE | DMA_CFG_SIZE_32BIT)); DMA_enableTrigger(DMA_CH1_BASE); DMA_disableOverrunInterrupt(DMA_CH1_BASE); DMA_setInterruptMode(DMA_CH1_BASE, DMA_INT_AT_END); DMA_enableInterrupt(DMA_CH1_BASE); // // DMA channel 2 set up for ADCB // DMA_configAddresses(DMA_CH2_BASE, (uint16_t *)&adcBDataBuffer, (uint16_t *)ADCBRESULT_BASE); // // Perform enough 16-word bursts to fill the results buffer. Data will be // transferred 32 bits at a time hence the address steps below. // DMA_configBurst(DMA_CH2_BASE, 16, 2, 2); DMA_configTransfer(DMA_CH2_BASE, (RESULTS_BUFFER_SIZE >> 4), -14, 2); DMA_configMode(DMA_CH2_BASE, DMA_TRIGGER_ADCA2, (DMA_CFG_ONESHOT_DISABLE | DMA_CFG_CONTINUOUS_ENABLE | DMA_CFG_SIZE_32BIT)); DMA_enableTrigger(DMA_CH2_BASE); DMA_disableOverrunInterrupt(DMA_CH2_BASE); DMA_setInterruptMode(DMA_CH2_BASE, DMA_INT_AT_END); DMA_enableInterrupt(DMA_CH2_BASE); } // // End of file // e2e.ti.com/.../adc_5F00_ex6_5F00_soc_5F00_continuous_5F00_dma_5F00_modified.c

Forum Post: RE: TM4C1294NCPDT: I need the OrCAD files for MMWAVEICBOOST.

$
0
0
Hi Yoshitsugu-san, I will forward your post to the Sensors forum where their experts can better assist.

Forum Post: RE: TMS570LS3137: FEE functions inFreeRTOS

$
0
0
thank you. I tryed and running normal。

Forum Post: RE: RM44L920: Safety Power Circuit

$
0
0
Hi QJ Wang, So these are what i understand. Am i understand right? 1. If Hercules MCU's status is operational and Core voltage get lower than 1.14V, VMON couldn't take action. 2. If I wanna check Vcc and Vccio, I should use external safety regulator. thank you.

Forum Post: TMS320F280039C: Memory map errors in CMD file and gel file for F280033/34 in CCS 11.0

$
0
0
Part Number: TMS320F280039C Hi Champs, I found some misinformation on the memory map of F280033/34 in CCS 11.0. F280033/34 has 128KB flash located in two Banks(Bank0:64KB, Bank1:64KB), but all 128KB memory maps in CCS are in one Bank0. Pleas fix the wrong information if it has not yet been corrected. Thanks, Steve

Forum Post: RE: LAUNCHXL-F280049C: About PMBCTRL.I2CMODE bit in PMBus module

$
0
0
Hi, There has no eeprom in LAUNCHXL-F280049C, so I can't test. Is there a wave format with I2C Mode? I can explain to the customer conveniently. Thanks!

Forum Post: RE: MSP430G2313: BSL issue

$
0
0
Hi, Thanks for your reply and the detailed document info is as follows: The document is slau319ae: Looking forward to your reply! Best Regards, Cherry

Forum Post: TMS320F280049: can XDS200 use 2 pin (TMS TCK) download 280049?

$
0
0
Part Number: TMS320F280049 Like the question, can XDS200 use 2pin (TMS, TCK) to program 280049? I bought an XDS200, but I can’t use the 2pin cJtag mode to connect to 280049. Is it because XDS200 doesn’t support it? I can use 2pin (TMS, TCK) to burn 280049 with the XDS110 that comes with TI DEMO. tks!!

Forum Post: RE: TMS320F280025: SW library for HASH, AES, and Random generator

$
0
0
Hi Dave, Thank you for your clarification. Will take care of it. Best regards, Hitoshi

Forum Post: RE: TMS320F28379D: GPIO setting during program download.

$
0
0
during reset or boot up all GPIOs are in input mode (high impedance). Would that work for your application?

Forum Post: RE: TMS320F280049: can XDS200 use 2 pin (TMS TCK) download 280049?

$
0
0
my XDS200 config is like this: but when i connect 280049, the result is fail: [Start: Texas Instruments XDS2xx USB Debug Probe_0] Execute the command: %ccs_base%/common/uscif/dbgjtag -f %boarddatafile% -rv -o -S integrity [Result] -----[Print the board config pathname(s)]------------------------------------ C:\Users\fhx336\AppData\Local\TEXASI~1\CCS\ ccs920\0\1\BrdDat\testBoard.dat -----[Print the reset-command software log-file]----------------------------- This utility has selected a 560/2xx-class product. This utility will load the program 'xds2xxu.out'. The library build date was 'Aug 26 2019'. The library build time was '12:55:28'. The library package version is '8.3.0.00003'. The library component version is '35.35.0.0'. The controller does not use a programmable FPGA. The controller has a version number of '13' (0x0000000d). The controller has an insertion length of '0' (0x00000000). This utility will attempt to reset the controller. This utility has successfully reset the controller. -----[Print the reset-command hardware log-file]----------------------------- This emulator does not create a reset log-file. -----[An error has occurred and this utility has aborted]-------------------- This error is generated by TI's USCIF driver or utilities. The value is '-233' (0xffffff17). The title is 'SC_ERR_PATH_BROKEN'. The explanation is: The JTAG IR and DR scan-paths cannot circulate bits, they may be broken. An attempt to scan the JTAG scan-path has failed. The target's JTAG scan-path appears to be broken with a stuck-at-ones or stuck-at-zero fault. [End: Texas Instruments XDS2xx USB Debug Probe_0]

Forum Post: RE: TMS320F28379D: OTP CAN Boot mode

$
0
0
The answer is in the similar topics TMS320F28379D: Configuring OTP BOOTCTRL Register It will no longer jump to flash, must use your own boot loader from flash copy to ram, can't use the internal CAN boot to load the Kernel.

Forum Post: RE: MSP430G2313: BSL issue

$
0
0
Hi Cherry Thanks for your feedback! 0xA0 (1010 0000) is received abnormally while 0x90 (1001 0000) should be received. I think you can consider check the UART setting firstly: Please check the baud rate and PLL locked on system clock.

Forum Post: RE: RM46L852: RM46L : How to know when eqep index event occurs

$
0
0
Hi Wang-san, It worked, thanks, I will use interrupt to know index event. Best regards, Yamai

Forum Post: EVM430-FR6047: Endress & Hauser

$
0
0
Part Number: EVM430-FR6047 Hi, Good Day. I have a customer who is working with EVM430-FR6047. Please see below his query for your reference. Thank you very much. https://training.ti.com/ultrasonic-water-flow-meter-demonstration I have found a video in which Flow sensor tests are conducted, there two Endress+Hauser sensors model were used for calibration because I want to repeat this test. , would it be possible to know the model of these sensors? Best Regards, Ray Vincent

Forum Post: TMS320F28388D: Get 0% or 100% duty cycle with HRPCTL[HRPE]=1

$
0
0
Part Number: TMS320F28388D Hello, Experts I want to get 0% or 100% duty cycle with high-resolution period is enabled. And, I see Duty Cycle Range Limitation in F28388D TRM. Referring following site, to against changing HRPE bits during runtime, I tried to Initialize (HRPCTL[HRPE]=1) and HRPRD = 0, then change duty dynamically from 0% or 100% with HR PWM duty control. From the waveforms, PWM output looks to work fine without undefined behavior. https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/565544/tms320f28075-epwm-configuration?tisearch=e2e-sitesearch&keymatch=change%252520HRPCTL# Is my solution workable? Do you have any suggestion? Thank you for help. Best regards, Wenjing

Forum Post: RE: LAUNCHXL-F280049C: Some question about example can_ex4_loopback_dma.c

$
0
0
Hi Joseph, After the first burst is completed, I check the value of the RUNSTS bit on the DMA channel, and then adjust my program appropriately. Now it can run normally. Thank you for always replying patiently. Best Regards, Sean
Viewing all 222820 articles
Browse latest View live