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.
Hi Ti experts,
I have more questions about MSPM0G1107TRHBR how to readout protection(for flash memory 0x.0000.0000 to 0x1FFF.FFFF).
We need protect flash memory region (0x000.0000 to 0x1FFF.FFFF from reference manual ) and prevent read out them from flash memory. Following instructions 1.4.3.2.2 BSL read-out policy. By default, BLS is disable and can read partial segment of a memory. But Actually we can still read entire flash memory region(0x0000.0000 to 0x1FFF.FFFF). It looks like BSL doesn’t protect the data of flash memory.
And another improtant thing, we need to update ( read and write ) data to flash after protect flash memory (I'm not sure if can read and write assuming after protect the flash memory)
Could you please share how to configure MSPM0G1107TRHBR and make it meet our requirements.
Please share detailed steps, such as what steps need to be done for the first, the second and so on.
Here is memory map from reference manual
Here is actual used size( we want to protect these segment, don't want to be read out by unauthorized method)
Three levels descriptions for security.
Hi,
You can add a BSL password to prevent unauthorized BSL access.
In sysconfig BCR configuration, there are eight groups 32bit BSL Access Password, Eight goups of passwords are independent of each other and collectively protect the access permission of the BSL.
Best regards,
Cash Hao
Hi,
There is also another option in the BCR configuration which can prevent flash reading. By default, this function is disable and can prevent reading the flash region.
Best regards,
Cash Hao
Dear Cash,
Thanks for your supporting.
Could you please share an example of BSL settings can work. And does eight group 32bit BSL have conflict if settings are wrong
Dear Cash,
Thanks for your supporting.
I have tried 'By default, this function is disable and can prevent reading the flash region.' Actually the flash region(0x0000.000 to 0x1FFF.FFFF) still are read by SWD tools.
I'm not sure if MSPM0G1107 can lock flash region(0x0000.0000 to 0x1FFFF.FFFF)
HI,
This function only prevents reading the flash region through BSL interface, not SWD interface.
Best regards,
Cash Hao
Hi,
If MSPM0G1107 exists a mechanism which can prevent read flash memory area(0x0000.0000 to 0x1FFF.FFFF) by SWD interface.
Best regards
Frank.Peng
There is also SWD interface password which can be used to prevent unauthorized SWD access. Which is similar to BSL password.
Please follow the attach guide about how to connect MCU with password through SWD.
How to use SWD password in CCS.pdf
Best regards,
Cash Hao
The SWD password setting is in Sysconfig BCR configuration.
Best regards,
Cash Hao
Hi
I will try and check
And another questions. if MSPM0G1107 can read and write data to 0x0000.0000 to 0x1FFF.FFFF after setting SWD password.
Best regards,
Frank. Peng
Yes, you can read and write data with the correct SWD password.
Best regards,
Cash Hao
Hi
' Read and Write' means using UART port, Not SWD protocol
Best Regards
Frank.Peng
Hi,
Do you mean you have an UART function in your software which can read and write the flash region? Adding the SWD/BSL password will bot affect your UART function in the software.
Best regards,
Cash Hao
Hi
Further explanation. I need program MSPM0G1107 with SWD. But don't want to readout with SWD by un-authorized.
And in next using environment. I need to read and write data to flash area(also 0x0000.0000 to 0x1FFF.FFFF) with UART protocol.
Best Regards
Frank. Peng
Hi
Yes, I have an UART function in my application. For SWD. it is only used to program. But don't hope it can be readout if un-authorized.
Best Regrads
Frank.Peng
Hi,
Get it. Adding a SWD password will work for your requirement.
Best regards,
Cash Hao