Other Parts Discussed in Thread: MSP430F2618,
Tool/software: Code Composer Studio
I was applying the RTC code (downloaded from TI website slaa290a.zip) into the project, using Timer B and ISR.
ISR interrupt work but when incremented count, it crashes and reset the MCU every second.
I get warning message during complies which might has to do with this. I wish to note that manual stated the RTC_Calendar.s43 but only has RTC_Calendar.asm in zipped folder.
Description Resource Path Location Type
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "BIN2BCD4" overflowed; the 17-bit relocated address 0x11ba8 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x0000025e, section = ".text") RTC_Calendar.asm /WCOMM_1F line 413 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "BIN2BCD4" overflowed; the 17-bit relocated address 0x11ba8 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x0000026a, section = ".text") RTC_Calendar.asm /WCOMM_1F line 418 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "BIN2BCD4" overflowed; the 17-bit relocated address 0x11ba8 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x0000027c, section = ".text") RTC_Calendar.asm /WCOMM_1F line 426 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "divide" overflowed; the 17-bit relocated address 0x11bd0 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x00000236, section = ".text") RTC_Calendar.asm /WCOMM_1F line 397 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "firstSunday" overflowed; the 17-bit relocated address 0x11ae4 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x0000016e, section = ".text") RTC_Calendar.asm /WCOMM_1F line 293 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "lastSunday" overflowed; the 17-bit relocated address 0x11b0c is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x0000019e, section = ".text") RTC_Calendar.asm /WCOMM_1F line 318 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "lastSunday" overflowed; the 17-bit relocated address 0x11b0c is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x000001b8, section = ".text") RTC_Calendar.asm /WCOMM_1F line 330 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "modulus" overflowed; the 17-bit relocated address 0x11bb8 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x00000254, section = ".text") RTC_Calendar.asm /WCOMM_1F line 409 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "secondSunday" overflowed; the 17-bit relocated address 0x11af4 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x00000152, section = ".text") RTC_Calendar.asm /WCOMM_1F line 281 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "testLeap" overflowed; the 17-bit relocated address 0x119e2 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x00000284, section = ".text") RTC_Calendar.asm /WCOMM_1F line 428 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "TI_daysInMonth" overflowed; the 17-bit relocated address 0x11918 is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x00000094, section = ".text") RTC_Calendar.asm /WCOMM_1F line 187 C/C++ Problem
<a href="processors.wiki.ti.com/.../17003"> relocation from assembly code range "$../RTC_Calendar.asm:132:479$" to symbol "TI_mNumbers" overflowed; the 17-bit relocated address 0x1192a is too large to encode in the 16-bit field (type = 'R_MSP430X_ABS16' (15), file = "./RTC_Calendar.obj", offset = 0x00000244, section = ".text") RTC_Calendar.asm /WCOMM_1F line 403 C/C++ Problem
#include "3_RTC/MSP430_RTC.h"
#include "3_RTC/RTC_Calendar.h"
//==================================================================
//================================================================== ADC12_Init
// Purpose :
// Input :
// Output :
// Note :
//==================================================================
void RTC_Init(void)
{
//FLL_CTL0 |= XCAP18PF; // Set load cap for 32k xtal
setTime( 0x12, 0, 0, 0); // initialize time to 12:00:00 AM
TB0CCR0 = 32768-1;
TBCTL = TBSSEL_1+MC_1; // ACLK, upmode
TBCCTL0 |= CCIE; // enable CCRO interrupt
_EINT();
}
//========================================================================================================================
//=============================================================================================================Timer B7
//=======================================================================================================================
#pragma vector=TIMERB0_VECTOR
interrupt void TIMERB_B7_ISR( void )
{
incrementSeconds();
//zprintf("Tick\n");
//LPM3_EXIT;
}