Other Parts Discussed in Thread: MSP430FR5959,
Hi!
I am trying to port the example codes supported with slau320ai.pdf: "User’s Guide MSP430 Programming With the JTAG Interface".
At the moment I've ported only the relevant functions to get a first access to the device over 2-wire SBW (Spy-Bi Wire) interface.
I am calling GetDevice_430Xv2(). Within the function GetDevice_430Xv2, the first call to GetCoreID() works, then IsLockKeyProgrammed() also works, then GetCoreipIdXv2() works, but then the last call ReadMemQuick_430Xv2() to read the DeviceID does not give the correct response. It should return the value 0x8311 (according to datasheet page 56). Instead it returns 0x3FFF which seems like an error because access to vacant memory is also to described to return this value.
So I tried some accesses to various memory locations.
I can read and write RAM starting from 0x2000.
Descriptor type:
00FF0: 7F80
00FF2: 3524
Start address of descriptor structure:
00FF4: 1A00
00FF6: 0000
--> points to address 0x1A00. That looks correct.
But reading from those addresses gives these results:
01A00: 3FFF
01A02: 3FFF
01A04: 3FFF
01A06: 3FFF
Also I noted a difference between the MSP4302422 and the User's Guide. On page 306 it says the reset value of the FRCTL0 Register is 0x9600. But when I read it, it returns 0x9608. Bit 3 is set. But in the User's Guide bit 3 is zero and marked as "reserved".
I am stuck. In the documentation there is nothing about this area being locked. Why is this behavior?
Does anyone know what's going on here?