John Hendrie schrieb:
Hello,
I searched the archives but couldn't find anything relevant. I'm using
an msp430x1611 and have two pieces of almost identical assembler, one
works the other doesn't:
mov #88, r4
mov r4, 0(r15)
mov @r15, 0(r15)
where 0(r15) offsets to 0x1114
thats MAIN Flash
mov #88, r4
mov r4, 0(r5)
mov @r5, 0(r15)
where 0(r5) offsets to 0x10FE
while this is INFO Flash.
Reading the contents of memory the top snippet correctly contains #88,
the second contains 0xFFFF. The only difference is the the memory
locations. I grepped the msp430 directory and couldn't find any defines
for 0x10FE relating to the msp430f1611 (there was one for msp430x21x1:
#define CALDCO_1MHZ_ 0x10FE /* DCOCTL Calibration Data for
1MHz */). Am I missing something here?
are you're sure you're configure the flash controller for writes using
the correct clock? you probably want to erase the flash pages too,
before writing (but erasing something above 0x1100 isn't a good idea
unless you took special care like reserving memory in the linker script)
chris
--John
------------------------------------------------------------------------
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users