CCS 5.1, MSP430 compiler 4.01, MSP430F5438
I am having an issue with getting 32-bit muliply results out of the RES0, RES1... values.
The multiply appears to be correct. But when I start debugging and looking at long values
I can't see any correct values.
Here is a sample code I made that will not correctly show "results" or "test"
#include <stdio.h>
#include <msp430.h>
/*
* hello.c
*/
void main(void) {
register unsigned long results = 0;
unsigned int test;
MPY32L = 86400UL & 0x0000FFFF;
MPY32H = 86400UL >> 16;
OP2L = 15401;
OP2H = 0x0000;
test = RES1;
results = (unsigned long) RES1;
results = (results<<16) | RES0;
}
Issues: No value is shown when I try and look at results or test.
I look at the RES values and they have the correct answer.
Is there some setting need to set in the compiler/debug options! This same code works in IAR.
I just started a new workspace, created a new project "hello world" and added this code with the "MSP430.h" include.
thanks
Dan
