Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all 22412 articles
Browse latest View live

MSP432E401Y: DAC Support on TI MSP432E401Y

$
0
0

Part Number:MSP432E401Y

Does MSP432E401Y support standalone DAC (i.e. Digital to Analog Conversion) functionality? Like ADC is supported, as we can see, with the in-built functionalities in the example codes - is that also true for DAC? If not that way, can we still implement it by building our own?


MSP430L092: MSP430L092

$
0
0

Part Number:MSP430L092

Hi,

I need to check the BYPASS, SAMPLE/PRELOAD, EXTEST registers are working. How to set Vector pattens for the three operations. can you help me 

Thanks and Regards,

Vinothkumar.

MSP432E411Y: How to program MSP432E via ROM-Bootloader and USB-DFU

$
0
0

Part Number:MSP432E411Y

I try to program an erased MSP432E via ROM-Bootloader and USB-DFU.

I see the device in the device manager and I am able to connect via dfu-util-0.9-win64. I managed to create a .bin file with the CCS post build command

"${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/ofd470.exe" "${CG_TOOL_ROOT}/bin/hex470.exe" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe"

But there is obviously something wrong, because I get the following error message from dfu-util:

dfu-util 0.9 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Invalid DFU suffix signature A valid DFU suffix will be required in a future dfu-util release!!!

Opening DFU capable USB device... ID 1cbe:00ff

Run-time device DFU version 0110 Claiming USB DFU Interface...

Setting Alternate Setting #0 ...

Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 0110

Device returned transfer size 1024

Could not read name, sscanf returned 0

Failed to parse memory layout

How can I program via USB?

MSP430F5224: Questions about reset

$
0
0

Part Number:MSP430F5224

Hi,

I have a few questions from customer about MSP430 reset.

Q1) Below is a part of figure 5-2 in data sheet.
http://www.ti.com/lit/ds/symlink/msp430f5224.pdf
What does “V(SVSH_+), min” exactly mean? There is no such term in data sheet.



Q2) What is each pin’s condition under reset and just after reset release?

Thanks and regards,
Koichiro Tashiro

EVM430-FR6047: Frequency Sweep Curve

$
0
0

Part Number:EVM430-FR6047

Hi,

I had downloaded the new USS DC app just recently and i found that the same transducer was showing different frequency sweep in two different versions of USS DC app.

 In USS 02.20.00.16,we get a peak at 1000 KHz and a drop at 1020 KHz

 while in USS 02.20.00.18 ,we get a peak at 1020-1030 KHz 

What could be the reason?

Best Regards,

Divya Harikumar

Linux/MSP430AFE223: test - will delete

MSP-TS432PZ100: Is "MSP-TS432PZ100" the right kit to load the program into "MSP432P401RIPZR" microcontroller IC?

$
0
0

Part Number:MSP-TS432PZ100

Hello,

I am looking for a kit which can be used to load the program into "MSP432P401RIPZR" microcontroller IC. Is "MSP-TS432PZ100" the right kit to do that? Because I need to program a few of "MSP432P401RIPZR" microcontroller ICs. 

Thank you,

Mohammad Arifur Rahman

MSP432E401Y: Create a FATFS system with internal flash

$
0
0

Part Number:MSP432E401Y

I am trying to reference the sample project fatsdraw and implement the fatfs with the internal flash on MSP432E401Y.

I set the flash base address as the following in MSP_EXP432E401Y.c:

#define SECTORSIZE (0x4000)
#define NVS_REGIONS_BASE (0x80000)
#define REGIONSIZE (SECTORSIZE * 32)

For the block size, sector count and sector size, I set them in the new created NVSFatFS_diskIOctrl:

GET_SECTOR_COUNT=1024

GET_SECTOR_SIZE=512

GET_BLOCK_SIZE=512

Then I run the f_mkfs to create the file system for the flash memory:

fresult = f_mkfs(STR(DRIVE_NUM), FM_FAT, 0x1000, src.obj.fs->win , sizeof(src.obj.fs->win));

The size of the allocation unit (cluter) is set to 4096 bytes in f_mkfs().

The fresult is result with FR_OK. However, when trying to get the free cluster with running fresult = f_getfree(driveNumber, &freeClusterCount, fatfs);, the freeClusterCount always return 0. (fresult is FR_OK)

Can you please suggest the more proper sector count/sector size/block size or any other configuration setting for creating FATFS on flash?


CCS/MSP-FET430UIF: MSP-FET430UIF EMULATOR ERROR (INITIALIZING, RECOGNIZING, CONNECTING ERRORS)

$
0
0

Part Number:MSP-FET430UIF

Tool/software: Code Composer Studio

I bought MSP-FET430UIF, Rev.2.0.6.

When I connect the emulator with my computer, multiple errors occur.

First, it says "Error Initializing Emulator" and asks me to update the emulator.

Even after the update,

"No USB FET was found", "Could not set device Vcc", "The voltage 1167 value is not connect/allowed for the USB FET", "Interface Communication error", "MSP-FET430UIF already in use"

comes up each time.

I tried to solve this problem based on your previous solutions to similar questions, opening the emulator and connect J5.

However, there is no J5, available to connect in this the most recent version of the board.

Here I attached the image of errors and image of the board.

I did all my best to sol ve this problem but none of them are working. 

Please help me. I need to use this emulator ASAP.

RTOS/MSP432E411Y: GPIO_init without spikes

$
0
0

Part Number:MSP432E411Y

Tool/software: TI-RTOS

This post is a remark to those posts:

https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/733174

https://e2e.ti.com/support/microcontrollers/other/f/908/t/499828?tisearch=e2e-sitesearch&keymatch=MSP432E%20GPIO%20init

They deal with the sequence to enable an output pin without glitches, which might occur when the sequence is wrong.

I had to realize, that writing to a pin, which has a direction setting as input has no effect at all. Unlike other processors the written value is NOT saved and NOT used when configuring the pin as output.

For the MSP432E the trick is the DEN (Digital Enable) bit in the GPIODEN register. As long as the corresponding bit is cleared, the pad is high-Z and not connected to the processor. Thus the right order to configure a pin is

  1. Power_setDependency
  2. GPIODirModeSet
  3. GPIOPinWrite
  4. GPIOPadConfigSet

Thus my proposal given in the first referred post is wrong.

MSP430F5359: JTAG lock down

$
0
0

Part Number:MSP430F5359

Hi Peter,

In our application, I also see the issues with JTAG locking up preventing the programing of the  MSP430F5359  From you response we  do not see in detail how to solve JTAG locked down.  Could you please give example  how to unlock JTAG so  it can continue to program the device?

Thank you.

Paul

MSP432P4111: What happens if an interrupt is enabled in the controller when peripheral interrupt is already enabled with the corresponding flag 'high'?

$
0
0

Part Number:MSP432P4111

As can be argued from the title, I am looking for a summary on interrupts latching: at which level in the exception handling system does the ISR fire on rising edge only? At peripheral level, at interrupt controller level, or both?

Does the situation change from an interrupt source to the other?

MSP430FR5739: Pin usage selection

$
0
0

Part Number:MSP430FR5739

PxSEL0 and PxSEL1 select 4 uses that a pin can have. However, some pins have more than 4 uses so something else must be included. What????

Also, I do not see which of the possible pins uses correspond to primary, secondary, and tertiary pin functions.

All of this should be in the users guide or data sheet, but I can not find it. 

Please define how the registers are set to get all of the possible pin uses or functions. 

 

MSP430FR2433: About the method of DCO optimization in extremely cold environment

$
0
0

Part Number:MSP430FR2433

Hi community member,

I have the following questions about the "DCO" and "FLL" of MSP430FR2433 .

<Background>
The customer's application is considered to be used from normal temperature environment to extremely cold environment (around -30°C).
Since the environmental temperature changes, DCO software trim is implemented. (Refer to msp430fr243x_cs7.c)

However, when the MSP430FR2433 is active mode from reset state in a very cold environment (around -30 ° C), the DCO tap will reach the maximum value of 511 at DCO initialization.

<Question>

  1. When the MSP430 runs in Active mode at all times, what is the recommended frequency of software trimming for the DCO?
  2. Please tell me the best initialization method when releasing the microcomputer reset under extremely cold environment.
  3. In a very cold environment, is it also necessary to change DCORSEL?

It is set as follows in DCO initialization.

  • DCO frequency: 4.9125 MHz
  • DCORSEL: 2
  • DCOFTLIM: 4

Best regards.
Cruijff

MSP-EXP430FR2433: ADC does not return right value for temperature/reference voltage.

$
0
0

Part Number:MSP-EXP430FR2433

Hello!

I am having some issues with ADC on the MSP430FR2433.  It's not working. I went back to the very basic example but can't get it to work either. Can you please check if this works on your board? It fails for my 2 dev-kits.

I expect that when a == ADC_INPUT_DVCC I get 1023, and a == ADC_INPUT_DVSS I get 0, and a == ADC_INPUT_TEMPSENSOR I get temp and a == ADC_INPUT_REFVOLTAGE I get ~1/2. 


However I get 300 for all of these. How come?

#include <msp430.h>
#include <driverlib.h>
#include "adc.h"


void main(void)
{
    WDT_A_hold(WDT_A_BASE);
    //init_clock();
    PMM_enableInternalReference();
    PMM_enableTempSensor();
    __delay_cycles(6000);
    GPIO_setAsOutputPin(GPIO_PORT_P1,GPIO_PIN_ALL8);
    GPIO_setAsOutputPin(GPIO_PORT_P2,GPIO_PIN_ALL8);
    GPIO_setAsOutputPin(GPIO_PORT_P3,GPIO_PIN_ALL8);
    GPIO_setOutputLowOnPin(GPIO_PORT_P1, GPIO_PIN_ALL8);
    GPIO_setOutputLowOnPin(GPIO_PORT_P2, GPIO_PIN_ALL8);
    GPIO_setOutputLowOnPin(GPIO_PORT_P3, GPIO_PIN_ALL8);


    PMM_unlockLPM5();
    ADC_init(ADC_BASE, ADC_SAMPLEHOLDSOURCE_SC, ADC_CLOCKSOURCE_ADCOSC, ADC_CLOCKDIVIDER_1);
    ADC_enable(ADC_BASE);
    ADC_setupSamplingTimer(ADC_BASE, ADC_CYCLEHOLD_64_CYCLES, ADC_MULTIPLESAMPLESDISABLE);
   volatile uint16_t a = 0;
   volatile uint16_t res[16];
    while (1) {
        ADC_configureMemory(ADC_BASE, a, ADC_VREFPOS_AVCC,ADC_VREFNEG_AVSS);
        // Start a single conversion, no repeating or sequences.
        ADC_startConversion(ADC_BASE, ADC_SINGLECHANNEL);
    // Wait for the Interrupt Flag to assert
        while( !(ADC_getInterruptStatus(ADC_BASE,ADCIFG0)) );
        res[a] = ADC_getResults(ADC_BASE);
    // Clear the Interrupt Flag and start another conversion
        ADC_clearInterrupt(ADC_BASE,ADCIFG0);
        __delay_cycles(5000);
        a++;
        if(a==16) a=0;
    }


Compiler/MSP430FR2355: msp430 compiler not work proper

MSP430L092: MSP430L092

$
0
0

Part Number:MSP430L092

Hi,

where we can get the BSDL file of MSP430L092PWR for customer? thanks in advance.

Thanks,

vinoth

MSP430F6723A: XT1 oscillator stops

$
0
0

Part Number:MSP430F6723A

32768 Hz crystal is connected to XT1. For some devices sometimes XT1 becomes to be stopped and REFOCLK starts to be used.

We use following commands to restart XT1: 

UCSCTL7 &= ~(XT1LFOFFG | DCOFFG);

SFRIFG1 &= ~OFIFG /* Clear OSC Fault flag */

But we can't restart XT1.

Only using hardware reset we can restart XT1.

We need your advice how to manage this problem.

MSP432P401M: Delay for RST deassertion duing power up

$
0
0

Part Number:MSP432P401M

Hello

I have a question about RST pin input of MSP430P401M,
I think MCU usually requires some delay for RST deassertion during/after power-up like the below which is from C2000 MCU(!XRS is Reset input in this case).

Doesn’t MSP432 require this kind of delay for RST deassertion?
I could not find any information like that in the datasheet. 

Regards,
Oba

RTOS/MSP432E401Y: NDK HTTPServer cookie handling -> passing cookies to URLhandler

$
0
0

Part Number:MSP432E401Y

Tool/software: TI-RTOS

Hi all,

I have the same problem of cookies handling as described in this thread and I have written a small extension to httpserver.c from the NDK to handle the cookies header. (see below)

Identifying the cookies works but now I am not sure how to pass the cookies string to the URL handler in my project (I am using urlsimple.c).

One idea is to extend the process handler, but I am not sure if this is a good idea:

int URLSimple_process(URLHandler_Handle urlHandler, int method,
                      const char * url, const char * urlArgs,
                      int contentLength, int ssock, char * cookies)

Any ideas / help is greatly appreciated.

Best regards,
Christian

P.S.
It is a bit annoying that the NDK is not natively supporting cookies. Is there some plan to do this in the future?

My changes to httpserver.c:

// Cookie-fix
// Added additional tag id 6 for cookies
#define TAG_COOKIE      6
#define TAG_CLEN        7
#define TAG_AUTH        8
#define TAG_HOST        9
#define TAG_DONTCARE    10
#define TAG_LASTMETHOD  TAG_COOKIE
// Cookie-fix

static int httpExtractTag(char * tag)
{

    static int x = 1;
    x++;

    if (!strncmp("GET", tag, 3)) {
        return (TAG_GET) ;
    }
    if (!strncmp("PUT", tag, 3)) {
        return (TAG_PUT);
    }
    if (!strncmp("PATCH", tag, 5)) {
        return (TAG_PATCH);
    }
    if (!strncmp("DELETE", tag, 6)) {
        return (TAG_DELETE);
    }
    if (!strncmp("POST", tag, 4)) {
        return (TAG_POST);
    }
    if (!strncmp("Content-Length: ", tag, 16)) {
        return (TAG_CLEN);
    }
    if (!strncmp("Host: ", tag, 6)) {
        return (TAG_HOST);
    }
    // Cookie-fix
    if (!strncmp("Cookie: ", tag, 8)) {
        return (TAG_COOKIE);
    }
    // Cookie-fix

    return (TAG_DONTCARE);
}

Viewing all 22412 articles
Browse latest View live


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