This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430-GANG通过BSL方式读取代码时不需要BSL密码

Other Parts Discussed in Thread: MSP-GANG, MSP430F149

通过MSP430-GANG的BSL方式读取芯片内部的代码的时候不需要BSL密码,记得之前版本的MSP-GANG上位机是需要BSL密码的。

我用的GANG上位机版本是:msp-gang_1_01_12_00

被读取芯片的型号是:MSP430F149

问:是因为上位机版本问题还是什么问题导致GANG用BSL方式读取代码的时候就算BSL密码错误也能读取芯片内部的代码呢?这样来说BSL的加密机制不就失效了么?

  • Can you please translate this to English?
  • Hi,

    Using Google Translate, it sounds like you are saying that you see the MSP-GANG being able to read out the device using BSL even if the wrong BSL password is provided. Is my understanding correct?

    Looking at the images you provided, I see that you provide a different file for the password file that does not match your code file, and does not have the correct password, yet you were able to read out the part.

    However, there is one missing piece of information - can you please show what you have set under "BSL 1-st Passw" as shown below?

    If you have it set to "Code File", then the MSP-GANG does not care what you have set in the password file slot - rather, it is going to have the correct password because it will get it from the code file (which in your case is the same code image that you just programmed in). If you change this to "Passw.File" with all of the other settings the same as shown in your screen shots, then you should get an error I believe, because in that case it will try to use the password file which has the wrong password in this case. Someone who was trying to steal your code would not have your original code file (or else they wouldn't have any need to read out your part), so the "Passw. File" case is more accurate for that situation.

    I hope this helps to clear things up!

    Regards,

    Katie

  • Hi,Katie Pier:

    I have read your reply carefully.And I understand someting.Uut there is someting wrong.The questions as follow:

    1. I can't find the options for Code File or Passw File when selecting the MSP430F149 and MSP430f1x 、msp430f2x

    • other than MSP430FR6xx...see the follow picture:

    2. What is the format of the Passw.File?

    Notes:The  version of my MSP-GANG is "msp-gang_1_01_12_00".

           Thanks you ,look forward to your reply.

  • Hi loger,

    1.
    Thanks for your response - I see your issue now and can replicate it. I reached out to our MSP-GANG Firmware designer to ask about the issue, and he explained why you see this option for some devices in BSL mode but not others.

    Most MSP430 device BSLs include a " mass erase on wrong password" feature built-in to the part. However, this feature is only on newer devices - some of the older devices (including MSP430F149) do not include it - please see www.ti.com/.../slau319 section 2.7 where it says "BSL versions 2.00 and higher have enhanced security features." and "If an incorrect password is transmitted, the entire flash memory address space is erased automatically". In Table 5-1 at the end of that same document, you can see that the F14x device has BSL version 1.10, so it does not have this feature.

    Because of this, the MSP-GANG designer said that since a bad password won't cause an erase, the MSP-GANG simply tries BOTH the password file, and the code file, as the password, until one of them works - it can do this because a wrong first password won't erase the device. So there is no option on these parts. This also explains why you were able to read out the part - the code file that you provided had a correct password even though the password file didn't, so it was able to access the device.

    If you wanted to see what happens when someone who doesn't already have your code file tries to get into the part, try setting something different for "code file" not just "password file".

    2.
    I believe the password file should also be a TI-txt format file, containing information for the BSL password addresses (32 bytes from 0xFFe0-0xFFFF). I think you can use any TI-txt file that includes those addresses, so for example it could be the code file for the code that you had last loaded into the device so that you can get access to the device.

    Regards,
    Katie
  • Hi,Katie Pier:

    Thanks you for your reply in detail.

    Now,I what to  know that how to make sure the version for a MSP430 device.If there is a document to illustrate the version of MSP430 device.

    I'm looking forward to your reply!

  • Hi loger,

    You can find the device markings, including where to find the revision information, in the device errata document linked off of the product page. For example, for MSP4330F149, on the product page you will find this errata document linked at the top of the page, below the datasheet link: In this document you will find not only the errata information, but there is a section on "Package Markings":

    You will want to look at the diagram for the particular pin package that you are using, and then you should find the position for "DIE Revision" and find what letter is there on your devices.

    Regards,

    Katie

**Attention** This is a public forum