Thanks ! My code is same as the slau320,such as follows: //---------------------------------------------------------------------------- //! \brief Function to take target device under JTAG control. Disables the //! target watchdog. Sets the global DEVICE variable as read from the target //! device. //! \return word (STATUS_ERROR if fuse is blown, incorrect JTAG ID or //! synchronizing time-out; STATUS_OK otherwise) word GetDevice_430Xv2(void) { if(GetCoreID () != STATUS_OK) { return(STATUS_ERROR); } if (IsLockKeyProgrammed()) // Stop here if fuse is already blown { return(STATUS_FUSEBLOWN); } if (GetCoreipIdXv2()!= STATUS_OK) { return(STATUS_ERROR); } if(SyncJtag_AssertPor() != STATUS_OK) { return(STATUS_ERROR); } // CPU is now in Full-Emulation-State // read DeviceId from memory ReadMemQuick_430Xv2(DeviceIdPointer + 4, 1, (word*)&DeviceId); return(STATUS_OK); }
↧