Part Number: MSP430FR2633
Other Parts Discussed in Thread: CAPTIVATE-FR2633, CAPTIVATE-BSWP, , MSP430WARE
Tool/software: Code Composer Studio
Hi,
I have a question about the captivate ROM firmware of a fr2633.
I am trying to get a TI example to work on a captivate-fr2633 board
with a captivate-bswp attached. I am using Linux 64 bit ccs 10.
The software compiles without error's but when run it locks up at
address 0x37ffe. Strangely enough the jump there is from a call
to addres 0x40e2 :
CAPT_calibrateSensor():
150A PUSHM.W #1,R10
0CCA MOVA R12,R10
C3EA 001C BIC.B #2,0x001c(R10)
403D 248B MOV.W #0x248b,R13
434E CLR.B R14
1292 40E0 CALL &0x40e0 -> komt op adres 0x7ffe terecht
0ACC MOVA R10,R12
403D 248B MOV.W #0x248b,R13
434E CLR.B R14
1292 40E2 CALL &0x40e2
170A POPM.W #1,R10
4130 RET
When I import the software into the ccs-cloud ide it compiles correctly
and the firmware will run as expected on the fr2633.
I have been searching but unable to find an answer. All the information
I found does not describe how to use the ROM functions, apparently an
assumption is made it should work out of the box.
The code calls the MAP_CAPT_stopTimer function for instance which is
in ROM because in rom_map_captivate.h the following define is selected :
#define MAP_CAPT_stopTimer ROM_CAPT_stopTimer
That should call the function in ROM, right ?
If I understand the define rom_captivate_apitable, in rom_captivate_msp430fr2633_family.h,
the address in ROM is 0x4000 and on.
So at address 0x40e0, to where the original call is made, is code :
0x40e0 7FFF 0000 SUBC.B @R15+,0x0000(R15)
0x40e4 8000 SUB.W PC,PC
0x40e6 7FFF 0000 SUBC.B @R15+,0x0000
Where can I find usefull information about how to setup the calls to ROM ?
Or to even troubleshoot this ?
Roelof