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

Forum Post: RE: AM2432: What is the difference between primary UART boot mode and backup UART boot mode?

$
0
0
Hello Vaibhav, I did register dump for the OSPI register values for the case that ospi_flash_diag_main() is able to read the ID register, and the case that the same code fails to read the ID register after adding flash config in sysconfig. The register values are exactly the same. Today, I got the approval to share the related SPI config code and example.syscfg via Zoom session without recording only. Thanks, Hong

Forum Post: RE: LP-AM243: Boot error.

$
0
0
Hi, I am assuming you are using CCS. Did you try DEV BOOT MODE (11110000)? If so same issue? If DEV BOOT MODE works then you can follow steps to load DMSC FW and initialize the SOC ( loadJSFile "C:/ti/mcu_plus_sdk_{soc}_{sdk version}/tools/ccs_load/am243x/load_dmsc_hsfs.js" Or, you can follow AM243x MCU+ SDK: EVM Setup (ti.com) to flash SBL NULL, and after successfully flashing it, boot from QSPI and load your application *.out from CCS without running load_dmsc_hsfs.js thank you, Paula

Forum Post: RE: TMS320F280039C: DCM totem pole control demo

$
0
0
Hello Joe Please take a look at pmp40988. It is not DCM but CRM based totem pole PFC. Thank you Amir Hussain

Forum Post: RE: TMS320F28P550SJ: ARC insight GUI issue

$
0
0
Hello Hang, Since we already discussed this issue on email, I can assume this thread is closed. Sincerely, Amir Hussain

Forum Post: RE: MSP430F112: I need some 'basic information' to get started

$
0
0
Here's something... a v. good PDF explaining (most) everything I was curious about: https://www.ti.com/lit/ug/slau772a/slau772a.pdf?ts=1615152602107

Forum Post: RE: MSP-EXP430FR5994: Cannot get any of the UART examples to work

$
0
0
Are you running loopback or echo? They require different jumper settings.

Forum Post: RE: MSP430FR2633: New tuning values

$
0
0
Hi DDdoor, Yes, I do this all the time. Much faster than having to generate changes using the GUI. Just remember that if they do update using the GUI it will delete any changes made manually.

Forum Post: RE: TMS570LC4357: CCS stuck in building project with HALCoGen default code

$
0
0
Hi Jagadish, As it turned out, this "messed up" GUI is due to the text size setting on the laptops that we are using. We can consider the issue as resolved. Thanks.

Forum Post: RE: TIDM-HV-1PH-DCAC: Lead lag compensator parameters

$
0
0
Hello Abayomi So far I could not find a document explaining the calculation of coefficient. This design is done by an engineer who does work anymore with TI. I will let you know one I find something. Thank you Amir Hussain

Forum Post: RE: AM2432: Question regarding MULTI_CONTROLLER setting in sysconfig for SPI

$
0
0
If we have it in single controller mode, we can talk to the chip. If we put it in multi mode and don't even define any more channels (so just the 1st one), we can no longer talk to it.

Forum Post: MSPM0G3107: power supply ramp

$
0
0
Part Number: MSPM0G3107 Tool/software: Team, Posting on behalf of my customer. Can you comment on the delta between the max and min dVDD/dt rate for the MSPM0G3107 family power on spec? See snippet below from page 27 of D/S. Customer plans to use an LDO or switcher with a typical ramp-up time from 0VDC to 3.3VDC of 30us. Thanks, Tom

Forum Post: RE: EVM430-CAPMINI: Modifying UART communication

$
0
0
Hi Albert, I believe all you need to do is modify CAPT_UserConfig.h as shown here: Next uncomment line 69 in UART_Definitions.h and set = e(true) Then somewhere in your code copy this code and populate it by selecting a baud rate from the table shown here in code. /* * The host_interface_uart module re-uses the driverlib code and structures used * for Captivate to GUI interface. */ //***************************************************************************** //! def UART_SAMPLING_MODE defines the eUSCI_A LF or HF mode. //! def UART_PRESCALER defines the eUSCI_A pre-scaler. //! def UART_FIRST_STAGE_MOD defines the eUSCI_A first stage modulation. //! def UART_SECOND_STAGE_MOD defines the eUSCI_A second stage modulation. //***************************************************************************** // Assumes SMCLK = 2MHZ #define BAUD_19200 #ifdef BAUD_9600 // EUSCI runs @ 9600 #define UART_SAMPLING_MODE (EUSCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION) #define UART_PRESCALER (13) #define UART_FIRST_STAGE_MOD (0) #define UART_SECOND_STAGE_MOD (69) #elif defined BAUD_19200 // EUSCI runs @ 19.2K #define UART_SAMPLING_MODE (EUSCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION) #define UART_PRESCALER (6) #define UART_FIRST_STAGE_MOD (8) #define UART_SECOND_STAGE_MOD (17) #elif defined BAUD_38400 // EUSCI runs @ 38.4K #define UART_SAMPLING_MODE (EUSCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION) #define UART_PRESCALER (3) #define UART_FIRST_STAGE_MOD (4) #define UART_SECOND_STAGE_MOD (4) #elif defined BAUD_57600 // EUSCI runs @ 57.6K #define UART_SAMPLING_MODE (EUSCI_A_UART_OVERSAMPLING_BAUDRATE_GENERATION) #define UART_PRESCALER (2) #define UART_FIRST_STAGE_MOD (2) #define UART_SECOND_STAGE_MOD (187) #elif defined BAUD_115200 // EUSCI runs @ 115.2K #define UART_SAMPLING_MODE (EUSCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION) #define UART_PRESCALER (17) #define UART_FIRST_STAGE_MOD (0) #define UART_SECOND_STAGE_MOD (74) #elif defined BAUD_230400 // EUSCI runs @ 230.4K #define UART_SAMPLING_MODE (EUSCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION) #define UART_PRESCALER (8) #define UART_FIRST_STAGE_MOD (0) #define UART_SECOND_STAGE_MOD (214) #elif defined BAUD_250000 // EUSCI runs @ 250K #define UART_SAMPLING_MODE (EUSCI_A_UART_LOW_FREQUENCY_BAUDRATE_GENERATION) #define UART_PRESCALER (8) #define UART_FIRST_STAGE_MOD (0) #define UART_SECOND_STAGE_MOD (0) #else #warning "NO BAUD RATE SELECTED" #endif /* * CREATE A LOCAL INSTANCE OF UART PARAMETERS * REFER TO TRACKPAD_DEMO.H FOR DEFINITIONS */ static const tUARTPort appUARTPort = { .pbReceiveCallback = NULL, .pbErrorCallback = 0, .peripheralParameters.selectClockSource = EUSCI_A_UART_CLOCKSOURCE_SMCLK, .peripheralParameters.clockPrescalar = UART_PRESCALER, .peripheralParameters.firstModReg = UART_FIRST_STAGE_MOD, .peripheralParameters.secondModReg = UART_SECOND_STAGE_MOD, .peripheralParameters.parity = EUSCI_A_UART_NO_PARITY, .peripheralParameters.msborLsbFirst = EUSCI_A_UART_LSB_FIRST, .peripheralParameters.numberofStopBits = EUSCI_A_UART_ONE_STOP_BIT, .peripheralParameters.uartMode = EUSCI_A_UART_MODE, .peripheralParameters.overSampling = UART_SAMPLING_MODE }; #endif UART_openPort(&appUARTPort); Last, make the call to enable the UART -> UART_openPort(&appUARTPort);

Forum Post: RE: TM4C129XNCZAD: How to switch from using IQmathLib to using hardware floating point capability

$
0
0
I checked, and this option is specified in my project already. So if this option is specified as you have directed, the compiler will do what it needs to do and prefer hardware floating point support over the IQmath that is also listed in the include options?

Forum Post: RE: TM4C129XNCZAD: How to switch from using IQmathLib to using hardware floating point capability

$
0
0
I think it depends what you are trying to achieve. If you are simply doing simple floating point operations like multiplying some floating numbers then I believe the integrated hardware floating unit will do the job fine. If you have some routines that are used in computationally intensive real-time applications where optimal execution speed and high accuracy is critical then you can still use IQMath library, Refer to the IQMath user's guide for details. e2e.ti.com/.../SW_2D00_TM4C_2D00_IQMATH_2D00_UG_2D00_2.1.4.178.pdf

Forum Post: RE: F28M35H52C: Error 1170 after setting CSM Password and GRABSECT values

$
0
0
There is no "Wait-In-Reset" option in the debugger configuration for the Blackhawk XDS200 debugger I am using. I did try all the options related to holding the device in reset until the debugger is connected but no success. This is a custom board so I don't have access to the boot option pins. Unless there is another way to get to that boot option? Finally, I have NOT set a ECSL password. Only a CSM password and the GRABSECT register settings. Next step? --Keith

Forum Post: RE: TMS320F28335: Guidance on Implementing Custom Bootloader for TMS320F28335 Controller

$
0
0
Hello Dipak, Unfortunately, this device only inherently supports items 4 and 8 on your requirements ( as per datasheet Features ) , so the rest are not supported by the hardware and/or need to be implemented by the user. For example, Secure Boot is only available on newer devices . However, we have a Serial Flash Programming Application Note that you can reference for item 4 and there's example code located in C2000ware SDK. The serial flash kernel example can be found at \device_support\f2833x\examples\f28335_flash_kernel Regarding general information about custom bootloaders, the Boot ROM source code (device bootloaders) is available in C2000ware at \libraries\boot_rom\f2833x\v2_0\rom_sources\source. These can be referenced when developing your custom bootloader. Warm regards, Matt

Forum Post: RE: TM4C129XNCZAD: How to switch from using IQmathLib to using hardware floating point capability

$
0
0
Okay, unless you tell me otherwise, I'm not going to change anything. The program is just doing multiplication and division. I thought maybe I had to remove any reference to IQMath and use a new include file or something like that.

Forum Post: RE: TMS320F28P659DK-Q1: error: C28xx_CPU1: File Loader: Verification failed: Values at address 0x078000@Program do not match Please verify target memory and memory map.

$
0
0
Hi, For the FlashAlignCombineToggle Setting (set to true), it is related to the Settings & Utilities -> Performance settings section of the Flash Plugin. In generating your .out file, the linker command file alignment size, you can try to use an alignment value of 0 ( ALIGN(0)). Thanks, Charles

Forum Post: RE: LAUNCHXL-F28379D: LAUNCHXL-F28379D

$
0
0
Hi Chirag, How do you connect DACVAL register to CANIFDATA register? Have you check the IFDATA register to make sure the data is copied to IFDATA correctly. After the data in DACVAL is copied to IFDATA register, you need to enable the TX request and write the message number to CAN CMD register to trigger the message transmission.

Forum Post: RE: TMS320F28P650DK: Problems with ADC SOC EOC IRQ generation. ISR should be entered after specific SOC EOCs in a SOC chain. Instead ISR is only entered after all SOCs in that SOC chain are sampled.

$
0
0
Hi Martin, At which point in the ISR did you set the breakpoint? Also can you check the value of TBCTL.FREE_SOFT field? Value of this field should be 0 so that any breakpoint would stop the time base counter. Another alternative to setting up the breakpoint in CCS is to write an ESTOP0; macro at the line you wish to put a breakpoint. My guess is the counter is probably not reflecting the current value in the register. Seems like you want to profile the exact conversion times for the SOC combinations for your control loop. You can also do this with GPIO toggles and observe the toggle duration from a scope. GPIO function GPIO_writePin() will set the output of a GPIO provided that the GPIO is configured as an output. This function takes very few clock cycles to execute so it is one reliable way to profile time duration between different points in your code. Regards, Joseph
Viewing all 216415 articles
Browse latest View live


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