Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: MSP GANG programmer: how to blow fuse programmatically

$
0
0
Hi Gorazd, You are using C# with the MSP-GANG .dll for your main programming and testing, correct? But then you separately call a .bat file to have the MSP-GANG executable open a project file and then blow the fuse after the testing? I can think of a couple of different ways to blow the fuse as part of your C# program using the MSP-GANG dll that you are already using. Option 1. I think that you should be able to use the command MSPGANG_SetTmpGANG_Config(CFG_TMP_TASK_MASK, CONNECT_TASK_BIT | SECURE_TASK_BIT) , where CFG_TMP_TASK_MASK = 4, CONNECT_TASK_BIT = 0x1 and SECURE_TASK_BIT = 0x20 to mask the current image tasks to be performed to only perform the secure task. See section 4.2.36 MSPGANG_SetTmpGANG_Config and section 3.5.3.3 the section on CFG_TMP_TASK_MASK for more details. Then I think you have to call Main Process again to get the tasks to execute, but it will only connect and then secure the device this time, instead of doing all the programming. Option 2. I think you could save a 2nd MSPGANG image that just is set up for blowing the fuse, then use the APIs to select that image and execute it using main process. I hope that this points you in the right direction. Regards, Katie

Viewing all articles
Browse latest Browse all 62309

Trending Articles