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

MSP430G2553: Failed to stop after restart at main()

$
0
0

Part Number:MSP430G2553

Hello,

For one of my test, I am running while loop in DSS script which will restart the code every time the code hits at one specific breakpoint. This works fine for near about 2000 times, but after that when the restart occurs, the code does not halt at main() function and I got below error.

SEVERE: MSP430: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0xd876: Could not write device memory

SEVERE: MSP430: Trouble Setting Breakpoint with the Action "Remain Halted" at 0xd876: Could not read device memory

SEVERE: MSP430: Can't Run Target CPU: Could not run device (to breakpoint)

SEVERE: MSP430: Trouble Halting Target CPU: Internal error

The Address 0xd876 is the address of the main() function. I believe that at every restart execution must halt at main() function.

Please help me to resolve this issue. Is this any source code issue or some environment setup issue? 

Thanks,

Rakesh Modi


MSP430FR6989: launch problem

$
0
0

Part Number:MSP430FR6989

I just got my MSP430FR6989 launchpad and I can turn it on.  the box  isn`t damaged.  all jumpers are connected, when I plug usb in PC, PC does not recognize device I mean PC does not reacts at all when I am plugging microcontroller. I have also checked  COM ports and my board wasn`t  displayed. also demo code isn`t running, LCD do not turn on. I have video how I am connecting it. can anyone help me?

EVM430-FR6047: ADC waveform concern

$
0
0

Part Number:EVM430-FR6047

Hi,

I noticed that I always have some waves in the ADC waveform capture that are "attenuated" in the middle as shown in the picture below, what can have caused that? Is there something I can check/do to make it look cleaner? (I tried enabling the ADC filter without success).

Thanks in advance! 

Best regards,
Thibault 

MSP430FR2355: How to dedtect the position of the pcb inside a matrix?

$
0
0

Part Number:MSP430FR2355

Dear all,

I have a small square pcb 2cmX2cm that has the mentioned MCU, I'm looking for something that I can include it in this pcb to detect its position in a matrix of 3X3 PCBs, any idea?

Thanks

MSP430G2553: 1 second interrupt with 32kHz Xtal

$
0
0

Part Number:MSP430G2553

Hi, 

I am using master clock and exploring interrupts. Port1 and Timer0 interrupt works fine. 

I dont understand Timer1 interrupt 32kHz XTAL clock source.

I want 1 second interrupt using Timer1.

How to configure P2SEL bits and timer register?

#include "MSP430G2553.h"

#define LED1 BIT6
#define LED2 BIT4
#define BUTTON   BIT3 // Port 1.3

int main( void )
{

  WDTCTL = WDTPW + WDTHOLD;
  
  CCTL0|=CCIE;                            
  TACCR0 = 3;
  TACTL = TASSEL_0 + MC_1;                  
  TACTL |= TACLR;
  __enable_interrupt(); 

  CCTL1|=CCIE;                             // CCR0 interrupt enabled
  TA1CCR1 = 32768-1;
  TA1CTL = TASSEL_1 + MC_1 +TAIE;                  
P2DIR&=~BIT6; P2DIR|=BIT7; P2SEL|=BIT6 + BIT7; P1DIR &= ~BUTTON; // button is an input P1OUT |= BUTTON; // pull-up resistor P1REN |= BUTTON; // resistor enabled P1IES |= BUTTON; // interrupt on low-to-high transition P1IE |= BUTTON; // interrupt enable __enable_interrupt(); P1DIR|=LED1; P1OUT&=~(LED1); P1DIR&=~BIT0; P1SEL|=BIT0; while(1) { } } #pragma vector=PORT1_VECTOR __interrupt void PORT1(void) { P1OUT^=BIT6; P1IES^=(BIT3); P1IFG&=~(BIT3); } #pragma vector=TIMER0_A0_VECTOR __interrupt void Timer0 (void) { P1OUT^=LED1; TACTL|= TACLR; } #pragma vector=TIMER1_A0_VECTOR __interrupt void Timer1 (void) { P1OUT^=LED2; TA1CTL|= TACLR; TA1CTL&=~TAIFG; }

CCS/MSP-EXP430FG4618: Setup of CCS for the MSP-EXP430FG4618 via RS232

$
0
0

Part Number:MSP-EXP430FG4618

Tool/software: Code Composer Studio

CCS can't download the code to the board.

Hi dear friend;
I have just now bought the experimenter's board with  MSP430FG4618/F2013 and tried to download some code from CCS( Version: 8.2.0.00007) via RS232. The connection from the PC to the end of the RS232 is all right, because I can see the reaction (+ and - Pulses) after I have presset" Identify" in the CCS. So I assume,  the selection of the COM PORT and the setting of the UART-Connection are OK.
But CCS can't download the program and the error massage from the Launching Debug Session is: Load failed.

What else have I to do to run the Board? Any suggestion?

 

MSP430F5528: I2C using internal pull ups

$
0
0

Part Number:MSP430F5528

In a re-spin of our circuit board we inadvertently left off the pullup resistors on the I2C clock and data lines. The MSP is acting as the lone master talking to a single device. Looking at the IO structure it seems that it might be possible to enable the pull-ups during the receive portion of the transaction assuming the MSP drives the output during transmit, as opposed to merely turning off the driver to emulate an open collector.  

Some insight into this hoped-for solution would be appreciated.

thanks 

MSP432E401Y: How to wake up the MCU from sleep mode?

$
0
0

Part Number:MSP432E401Y

Hello!!,

I have programmed the board MSP432E401Y to the sleep mode without any wake up scenarios or switches or interrupts.

How do I make the board back to its operational mode? and how do I reprogram it ? 

Thank You..

Bindu


CCS/MSP430G2533: Debugging problem 430G2533 Controller TIDM-SUB1GHZ-MESH-NETWORK Reference Design

$
0
0

Part Number:MSP430G2533

Tool/software: Code Composer Studio

Hello!
I am new here and have the following problem.
I have built two circuit boards with the following instructions with a MSP430G2533.

My debugger does not find the controller. The following error message appears.
MSP430: Error connecting to the target: Unknown device

I'm using Code Composer Studio v8.2 and the MSP FET -
Debug Probe, MSP MCU Programmer and Debugger

Does anyone have an idea why this might be?

CCS/MSP432P401R: MSP432P401R rev.D JTAG programming error

$
0
0

Part Number:MSP432P401R

Tool/software: Code Composer Studio

Hello,

I have designed a working PCB with the MSP432P401R LQFP100 chip.
On this PCB I can program this microcontroller with the rev. D and the 7CA7V4W G4 production number using JTAG witout any problems.
However with the rev. D and 87CEY1W G4 series I have problems, they do not want to be programmed by 4 pin JTAG.
I am using CCS 8.2 and the XDS110 programmer from the MSP-EXP432P401R Launchpad rev. 2.1. This setup is running on Win10 computer.

Do processors from the same revision, but from a different production series, have something different that affects the work of JTAG ?
In order to exclude the possibility of interference with other circuits on the board, I tried to program processors with only minimal components: decoupling capacitors 100nF and 4.7uF,
32kHz and 48MHz oscillators with 22pF capacitors and a 4.7uH inductor with capacitors and a 47k and 1nF reset circuit, Supplied with 3.3V power from an external power supply.
I always get the same results with 87CEY1W G4 series:

CORTEX_M4_0: GEL: Error while executing OnTargetConnect(): Target failed to read 0x0020100C
     at gGEL_DeviceID=*((unsigned int *) 0x0020100C) [msp432p401r.gel:247]
     at OnTargetConnect()
CORTEX_M4_0: Error initializing flash programming: Target failed to read 0x00201004
CORTEX_M4_0: File Loader: Verification failed: Values at address 0x00000001 do not match Please verify target memory and memory map.
CORTEX_M4_0: GEL: File: C:\Users\Pawel\workspace_v8\Test\Release\test.out: a data verification error occurred, file load failed.

MSP430F5419A: MSP430 and shadow register

$
0
0

Part Number:MSP430F5419A

I am working with the MSP430F5419A and I need to turn on the Shadow Register for the PWM signal I am using. While scanning the spec I ran into this line:

17.2.3.1.1 Changing Period Register TAxCCR0
When changing TAxCCR0 while the timer is running, if the new period is greater than or equal to the old
period or greater than the current count value, the timer counts up to the new period. If the new period is
less than the current count value, the timer rolls to zero. However, one additional count may occur before
the counter rolls to zero.

Is it true MSP430 family does not support Shadow Register feature?

Thanks,

ED

CCS/MSP432P4111: Customer BSL or main memory bootloader for MSP432P4111

$
0
0

Part Number:MSP432P4111

Tool/software: Code Composer Studio

Hi,

I am working on the MSP-EXP432P4111 LaunchPad with CCS8.3.

I want to do a bootloader with some new features. For example (1) getting into the booloader if "Enter" key is pressed when system power up; (2) the bootloader can write the firmware into flash memory on chip, the new firmware is a file from the file system in an external spi flash chip.

(1) I download the BSL package "MSP432BSL_1_01_00_00" and try to build/debug/program this BSL firmware into my launchpad. I did not modify the source code.

I follow the instruction steps in Part5 of the user guide(SLAU622G).

Import project, Build Debug_BSL_P4111 and Release_BSL_P4111 configuration, New Target configration for MSP432P4111 and Launch this new configuration, Debug...

But at this time I find a problem as following. How can I fix it?

(2) I have some other questions about the BSL.

the BSL f/w will be programmed into the information memory. I would add more codes into the customer BSL and its size will be bigger than the default one. what is its maximum size?

8KB(Bank 0 Sector 2 and Sector 3) or

24KB(Bank 0 Sector 2 and Sector 3, 4 sectors from Bank 1). which one is correct?

(3) I tried to use the override mailbox to enable the hardware BSL invocation. I add file "msp432-flashmailbox.c" into the original BSL project which will make a new BSL configure. Finally it works because the correct answer "0xACE" is found in the mailbox and the BSL configure command is removed.

I am curious that where did the BSL configure command change? Where I can find this modification about the hardware BSL invocation?

(4) Is it permitted to the change BSL configuration in TLV? Maybe I want to use another UART pins for my bootloader.

(5) The BSL firmware size in the information memory is limited, maybe it is feasible to make a main memory bootloader for MSP432. it is correct?

I found the main memory bootloader for MSP430, but not for MSP432.

From Page 122 of MSP432P4111 datasheet.

6.4.1.1 Flash Main Memory (0x0000_0000 to 0x001F_FFFF)
The flash main memory on MSP432P4x1x devices can be up to 2MB. Flash main memory consists of up
to 512 sectors of 4KB each, with a minimum erase granularity of 4KB (1 sector). The main memory can be
viewed as two independent identical banks of up to 1MB each, allowing simultaneous read or execute
from one bank while the other bank is undergoing a program or erase operation.

As showed in the datasheet, the main memory bootloader and the application must in different bank(the first 1MB bank and another 1MB bank)?

there are 512 sectors of 4KB each. Is it possible that the bootloader uses the first 64 sectors, the application uses the following 192 sectors and both of them share the Bank0?

Thank you very much. 

MSP430F5658: RESET not restarting program

$
0
0

Part Number:MSP430F5658

During product ESD testing a condition was found where the processor would not respond to a reset. It would however respond to connecting the IAR IED and FET430UIF interface, selecting "attach to running project" selecting break (it showed address 0) and reset. Thus the program was still there but asserting the reset (from an external watchdog chip) had no effect, the JTAG could restart the program. Is there something beyond asserting the reset that needs to be done by the external watchdog?

EVM430-FR6047: result is liters per hour?

$
0
0

Part Number:EVM430-FR6047

Hi,

I'm working on a water meter, based on this example

I'm not sure if the result stored in the struct USS_Algorithms_Results.volumeFlowRate at ussSwLib.h is on liters/meter or another option.

Please, can you help me?

Thanks.

MSP430FR2633: Require support for pcb design verification

$
0
0

Part Number:MSP430FR2633

Hello, I had gerber files for capcitvie touch and need to verify the gerber files.

where can i upload the files to share with you.


MSP430G2553: Should I learn some assembly for better general understanding understanding of uC?

$
0
0

Part Number:MSP430G2553

I listened to a podcast today, and one of the hosts mentioned an assembly course on-line with some sort of graphics user interface to make the learning more visual. Can't remember what it was called, sadly. But he said after having completed the course, he better understood how microprocessors (I'm guessing the knowledge translates to controllers as well) worked.

My programming skills are limited, I've only coded some very basic stuff, and I've "completed" the book "C for absolute beginners", which I enjoyed. Now I am fighting my way through the K&R book, which I find not as easy as the other one, to say the least.

Now my interest is not to become fluent in assembly, but would some basic knowledge of it help my understanding of microcontrollers?

All of this is purely on a hobby level, I don't live on this. But the bare metal aspect of it does interest me.

CCS/MSP430FR2633: Captivate development board

$
0
0

Part Number:MSP430FR2633

Tool/software: Code Composer Studio

i am using captivate MCU development board but UART Code not working in this development board  so send me example code with this device and direct used to development board.

MSP430FR6989: launch problem, doesn`t turn on and doesn`t run demo code, please help

$
0
0

Part Number:MSP430FR6989

I just got my MSP430FR6989 launchpad and I can turn it on.  the box  isn`t damaged.  all jumpers are connected, when I plug usb in PC, PC does not recognize device I mean PC does not reacts at all when I am plugging microcontroller. I have also checked  COM ports and my board wasn`t  displayed. also demo code isn`t running, LCD do not turn on. I have video how I am connecting it. can anyone help me?

MSP430FR2355: Examples [SLAC740A]: Missing ReadMe file(s)

$
0
0

Part Number:MSP430FR2355

It appears that a new rev of the Examples came out on 10 December, and I still don't see the ReadMe (list of Examples) files there.

There's a (new?) Manifest .html file, but that doesn't have a list either. 

TIDM-RF430FRLSENSE: Code for the RF430FRL152H temperature sensing patch

$
0
0

Part Number:TIDM-RF430FRLSENSE

Hello,

I am making a prototype of the TIDM-RF430FRLSENSE using the same components but trying out a different analogue sensor. I intend to use CCS and use the JTAG interface for programming the chip using the MSP-FET430UIF programmer. I am also thinking of using the TRF7970A+MSP-EXP430G2 as the reader. I had a look at the firmware's guide and a few example initialization codes (Default / NFC Only), and I was wondering whether I could just use the NFC project code and insert the code for the sensor into the main function to make the device work? I read that the main function already exists in the ROM, so I am also not sure if I have to repeat that in the code I'll use or not. If yes, where can I get that?

Viewing all 22233 articles
Browse latest View live


Latest Images

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