Questions tagged [msp432]
42 questions
3
votes
2 answers
How does ARM cortex handle PendSV Handler
I am creating a RTOS kernel and need to use the PendSV handler for context switching. I trigger the PendSV handler by doing : 0xE000ED04 = (0x1 << 28);. This sets the PendSVset register to 1, so theoretically, the handler should trigger. I do…

Mperez
- 85
- 1
- 6
2
votes
1 answer
How to write C++ ISR with MSP432 DriverLib'c C code?
I want to use C++ as my main programming language for my microcontroller (MSP432) projects.
I wrote some simple scripts not involving interrupt service routines (ISR). They all worked fine. The code had looked like the following:
/* MSP and…

burnersk
- 3,320
- 4
- 33
- 56
1
vote
1 answer
How to display a result on built in LCD on a msp-EXP432P4111
I've been trying to display a simple program result on my msp-EXP432P4111 board's built in LCD display. However, I'm having trouble figuring out how to get it to work since it doesn't need pins like external LCD's do. I'm unsure if I need to do…

MLuu
- 13
- 3
1
vote
0 answers
Why doesn't my conditional Branch and Link Statement work?
I am relatively new to the world of ARM so I apologize if I am missing something obvious. For some context, this code is being executed on a microcontroller based on the ARM Cortex-M4F.
When running this code I expected the branch & links with…

bushwacker1000
- 19
- 1
1
vote
0 answers
MSP432 Memory Address 0x40004c04
I am creating an RTOS kernel using a MSP432. This may be a loaded question but my PendSV Handler is not getting called. I use the memory address 0xE000ED04 and the first time around the value of 0xE000ED04 is "E000 1000" which this calls the PendSV…

Mperez
- 85
- 1
- 6
1
vote
0 answers
MSP432 Launchpad Board using the same pins for two different devices
I am currently doing a Smart Metering device that uses NFC technology to communicate with a mobile phone. This device consists of 3 parts:
An MSP432P401R launchpad.
A TRF7970 (tag sensor) device connected to J1 and J2 pin arrays
A temperature or…
1
vote
2 answers
How to create inline assembly functions in C?
I am using a MSP 432 and have to create an assembly functions in C. I tried creating the functions using __asm void PendSV_Handler{}. But that does not work and says Expected an Identifier.
Also, I am trying to run this assembler command cpsid …

Mperez
- 85
- 1
- 6
1
vote
0 answers
MSP432 Lauchpad return error 614 while debug
Yesterday it is very normal when I run debug in MSP432 Lauchpad. But today, I don't know why and how when I run debug, the Code Composer Studio (CCS) return an error code -614 like this following image:
CS_DAP_0: Error connecting to the target:…

Anh Tu
- 75
- 7
1
vote
1 answer
Bit-Band Alias Offset Address for TI MSP432P401 board
Would anyone explain, please, in this formula below for calculating Bit-Band Alias Offset Address for TI MSP432P401R board, why we should add to (addr & 0xF0000000) + BB_OFFSET, this value ((addr & 0xFFFFF) << 5) ?
#define TA0CTL_ADDR…
1
vote
0 answers
MSP432 : Error connecting to the target: (Error -615 @ 0x0)
I am trying to debug code on MSP432P401R design board using XDS110 emulator with CCSV 7.0.0..
When I debug code it is showing following error:
CS_DAP_0: Error connecting to the target: (Error -615 @ 0x0) The target failed to see a correctly…

SAU
- 21
- 4
1
vote
1 answer
MSP432 LaunchPad pushbutton initialization
I am struggling to initialize the LEDs and pushbuttons on my MSP432p401R LaunchPad.
The problem:
Write a code that reads input of the two pushbuttons S1 & S2 (P1.1 & P1.4) and changes the state of the LED correspondingly:
none - off
S1 - RED
S2 -…

Kyle Bains
- 19
- 2
1
vote
1 answer
Macro compiles in C but not in C++ (MSP432 BSL invocation)
I'm trying to invoke the BSL(bootloader) on a TI MSP432P401R device.
The following macro gets compiled correctly in C, but fails when using C++, with the error "Too many arguments to function".
What is the C++ preprocessor/compiler doing…

Santos
- 37
- 7
1
vote
1 answer
MSP432 Interrupt With Encoder Count
I am using a MSP432 for a project and I would like to know how to generate a interrupt when a incremental encoder has reached a specified count. The interrupt should stop a motor from moving in a particular direction.
Background: I'm using a…

crazydude
- 21
- 2
1
vote
2 answers
MSP432 ARM - Declare array of constants by using Assembly
How to declare array of constants in flash using only assembly not C?
The question says it all, I believe. Other than within the assembly code itself, I will want to access and iterate through that constant array of values.
I am using Code Composer…

ecorrales
- 137
- 11
1
vote
1 answer
how to create an assembly-only project in Code Composer Studio (CCS) for TI MSP432 series
I can copy some existing assembly project, however there are a lot files associated with it that I wonder if they are necessary.
Another way of re-phrasing this question would be, is I wanted to set up either CCS or Eclipse to build/install/debug an…

ecorrales
- 137
- 11