Using Visual Studio to develop MSP430 firmware
Hi am migrating a Code Composer Studio project to Visual Studio 2017 (Visual GDB)
I created a new sample project as explained here for MCU: MSP430 FR5729
Then included(copied) all .c and .h files to the Source files folder in my solution explorer
When I try to build the project I get four errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
I have done similar migration for other MCU MSP430 F149 and that worked like a charm.
Here is the code segments where it throws errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
#elif defined(__GNUC__)
/**
* brief
*/
void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A1_VECTOR (0x0056) /* 0xFFE6 USCI A1 Receive/Transmit */
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER1_A0_VECTOR
__interrupt void Timer1_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer1_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
Any help would be greatly appreciated
Version Info for msp430fr5729.h
/********************************************************************
*
* Standard register and bit definitions for the Texas Instruments
* MSP430 microcontroller.
*
* This file supports assembler and C development for
* MSP430FR5729 devices.
*
* Texas Instruments, Version 1.23
*
* Rev. 1.0, Setup
* Rev. 1.1 Fixed definition of RTCTEV__0000 and RTCTEV__1200
* Removed not availabe bits RTCMODE and RTCSSELx
* Added PxSELC registers
* Rev. 1.2 Removed Port Drive Strenght Registers
* Rev. 1.3 updated PxSELC register address to offset 0x16 (instead of 0x10)
*
********************************************************************/
c visual-studio msp430 firmware visualgdb
|
show 3 more comments
Hi am migrating a Code Composer Studio project to Visual Studio 2017 (Visual GDB)
I created a new sample project as explained here for MCU: MSP430 FR5729
Then included(copied) all .c and .h files to the Source files folder in my solution explorer
When I try to build the project I get four errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
I have done similar migration for other MCU MSP430 F149 and that worked like a charm.
Here is the code segments where it throws errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
#elif defined(__GNUC__)
/**
* brief
*/
void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A1_VECTOR (0x0056) /* 0xFFE6 USCI A1 Receive/Transmit */
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER1_A0_VECTOR
__interrupt void Timer1_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer1_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
Any help would be greatly appreciated
Version Info for msp430fr5729.h
/********************************************************************
*
* Standard register and bit definitions for the Texas Instruments
* MSP430 microcontroller.
*
* This file supports assembler and C development for
* MSP430FR5729 devices.
*
* Texas Instruments, Version 1.23
*
* Rev. 1.0, Setup
* Rev. 1.1 Fixed definition of RTCTEV__0000 and RTCTEV__1200
* Removed not availabe bits RTCMODE and RTCSSELx
* Added PxSELC registers
* Rev. 1.2 Removed Port Drive Strenght Registers
* Rev. 1.3 updated PxSELC register address to offset 0x16 (instead of 0x10)
*
********************************************************************/
c visual-studio msp430 firmware visualgdb
USCI_A0_VECTORshould have the value 49. What is the version of yourmsp430fr5729.hfile?
– CL.
Nov 14 '18 at 14:13
@CL.I think its Version 1.23, updated the question with header info
– HaBo
Nov 14 '18 at 15:50
That's the same version I have. And what is the value ofUSCI_A0_VECTOR(at the bottom)?
– CL.
Nov 14 '18 at 16:06
@CL.#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
– HaBo
Nov 14 '18 at 16:16
@CL.its actually failing at 4 incidents for USCI_A0_VECTOR, USCI_A1_VECTOR and TIMER_A0_VECTOR, updated the question with all details
– HaBo
Nov 14 '18 at 16:33
|
show 3 more comments
Hi am migrating a Code Composer Studio project to Visual Studio 2017 (Visual GDB)
I created a new sample project as explained here for MCU: MSP430 FR5729
Then included(copied) all .c and .h files to the Source files folder in my solution explorer
When I try to build the project I get four errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
I have done similar migration for other MCU MSP430 F149 and that worked like a charm.
Here is the code segments where it throws errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
#elif defined(__GNUC__)
/**
* brief
*/
void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A1_VECTOR (0x0056) /* 0xFFE6 USCI A1 Receive/Transmit */
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER1_A0_VECTOR
__interrupt void Timer1_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer1_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
Any help would be greatly appreciated
Version Info for msp430fr5729.h
/********************************************************************
*
* Standard register and bit definitions for the Texas Instruments
* MSP430 microcontroller.
*
* This file supports assembler and C development for
* MSP430FR5729 devices.
*
* Texas Instruments, Version 1.23
*
* Rev. 1.0, Setup
* Rev. 1.1 Fixed definition of RTCTEV__0000 and RTCTEV__1200
* Removed not availabe bits RTCMODE and RTCSSELx
* Added PxSELC registers
* Rev. 1.2 Removed Port Drive Strenght Registers
* Rev. 1.3 updated PxSELC register address to offset 0x16 (instead of 0x10)
*
********************************************************************/
c visual-studio msp430 firmware visualgdb
Hi am migrating a Code Composer Studio project to Visual Studio 2017 (Visual GDB)
I created a new sample project as explained here for MCU: MSP430 FR5729
Then included(copied) all .c and .h files to the Source files folder in my solution explorer
When I try to build the project I get four errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
'interrupt' attribute requires an integer constant msp430fr5729
I have done similar migration for other MCU MSP430 F149 and that worked like a charm.
Here is the code segments where it throws errors
'interrupt' attribute parameter 96 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A0_VECTOR
__interrupt void USCI_A0_ISR(void)
#elif defined(__GNUC__)
/**
* brief
*/
void __attribute__ ((interrupt(USCI_A0_VECTOR))) USCI_A0_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
'interrupt' attribute parameter 86 is out of bounds msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=USCI_A1_VECTOR
__interrupt void USCI_A1_ISR(void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(USCI_A1_VECTOR))) USCI_A1_ISR (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h file contains
#define USCI_A1_VECTOR (0x0056) /* 0xFFE6 USCI A1 Receive/Transmit */
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
'interrupt' attribute requires an integer constant msp430fr5729
#if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
#pragma vector=TIMER1_A0_VECTOR
__interrupt void Timer1_A0 (void)
#elif defined(__GNUC__)
void __attribute__ ((interrupt(TIMER_A0_VECTOR))) Timer1_A0 (void)
#else
#error Compiler not supported!
#endif
msp430fr5729.h does not contain TIMER_A0_VECTOR defined
Any help would be greatly appreciated
Version Info for msp430fr5729.h
/********************************************************************
*
* Standard register and bit definitions for the Texas Instruments
* MSP430 microcontroller.
*
* This file supports assembler and C development for
* MSP430FR5729 devices.
*
* Texas Instruments, Version 1.23
*
* Rev. 1.0, Setup
* Rev. 1.1 Fixed definition of RTCTEV__0000 and RTCTEV__1200
* Removed not availabe bits RTCMODE and RTCSSELx
* Added PxSELC registers
* Rev. 1.2 Removed Port Drive Strenght Registers
* Rev. 1.3 updated PxSELC register address to offset 0x16 (instead of 0x10)
*
********************************************************************/
c visual-studio msp430 firmware visualgdb
c visual-studio msp430 firmware visualgdb
edited Nov 14 '18 at 16:31
HaBo
asked Nov 14 '18 at 12:44
HaBoHaBo
6,7432686168
6,7432686168
USCI_A0_VECTORshould have the value 49. What is the version of yourmsp430fr5729.hfile?
– CL.
Nov 14 '18 at 14:13
@CL.I think its Version 1.23, updated the question with header info
– HaBo
Nov 14 '18 at 15:50
That's the same version I have. And what is the value ofUSCI_A0_VECTOR(at the bottom)?
– CL.
Nov 14 '18 at 16:06
@CL.#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
– HaBo
Nov 14 '18 at 16:16
@CL.its actually failing at 4 incidents for USCI_A0_VECTOR, USCI_A1_VECTOR and TIMER_A0_VECTOR, updated the question with all details
– HaBo
Nov 14 '18 at 16:33
|
show 3 more comments
USCI_A0_VECTORshould have the value 49. What is the version of yourmsp430fr5729.hfile?
– CL.
Nov 14 '18 at 14:13
@CL.I think its Version 1.23, updated the question with header info
– HaBo
Nov 14 '18 at 15:50
That's the same version I have. And what is the value ofUSCI_A0_VECTOR(at the bottom)?
– CL.
Nov 14 '18 at 16:06
@CL.#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
– HaBo
Nov 14 '18 at 16:16
@CL.its actually failing at 4 incidents for USCI_A0_VECTOR, USCI_A1_VECTOR and TIMER_A0_VECTOR, updated the question with all details
– HaBo
Nov 14 '18 at 16:33
USCI_A0_VECTOR should have the value 49. What is the version of your msp430fr5729.h file?– CL.
Nov 14 '18 at 14:13
USCI_A0_VECTOR should have the value 49. What is the version of your msp430fr5729.h file?– CL.
Nov 14 '18 at 14:13
@CL.I think its Version 1.23, updated the question with header info
– HaBo
Nov 14 '18 at 15:50
@CL.I think its Version 1.23, updated the question with header info
– HaBo
Nov 14 '18 at 15:50
That's the same version I have. And what is the value of
USCI_A0_VECTOR (at the bottom)?– CL.
Nov 14 '18 at 16:06
That's the same version I have. And what is the value of
USCI_A0_VECTOR (at the bottom)?– CL.
Nov 14 '18 at 16:06
@CL.#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
– HaBo
Nov 14 '18 at 16:16
@CL.#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
– HaBo
Nov 14 '18 at 16:16
@CL.its actually failing at 4 incidents for USCI_A0_VECTOR, USCI_A1_VECTOR and TIMER_A0_VECTOR, updated the question with all details
– HaBo
Nov 14 '18 at 16:33
@CL.its actually failing at 4 incidents for USCI_A0_VECTOR, USCI_A1_VECTOR and TIMER_A0_VECTOR, updated the question with all details
– HaBo
Nov 14 '18 at 16:33
|
show 3 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300554%2fusing-visual-studio-to-develop-msp430-firmware%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53300554%2fusing-visual-studio-to-develop-msp430-firmware%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
USCI_A0_VECTORshould have the value 49. What is the version of yourmsp430fr5729.hfile?– CL.
Nov 14 '18 at 14:13
@CL.I think its Version 1.23, updated the question with header info
– HaBo
Nov 14 '18 at 15:50
That's the same version I have. And what is the value of
USCI_A0_VECTOR(at the bottom)?– CL.
Nov 14 '18 at 16:06
@CL.#define USCI_A0_VECTOR (0x0060) /* 0xFFF0 USCI A0 Receive/Transmit */
– HaBo
Nov 14 '18 at 16:16
@CL.its actually failing at 4 incidents for USCI_A0_VECTOR, USCI_A1_VECTOR and TIMER_A0_VECTOR, updated the question with all details
– HaBo
Nov 14 '18 at 16:33