Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hallo,
I`m using the BSL with a flash-based UART plugin to use the BSL over a RS485 physical interface.
I`ve placed the start of the flash plugin at the end of the flash -> 0x0001E000 in order to use the last eight sectors. Why eight? Because the FLASHSWP1
can only set 8 sectors with one bit. The MSP0G1507 has 128kB of flash so the last sector starts at 0x0001E000 and ends at 0x0001FFFF.
In order to protect the last sector I have to set the right bit which should be by my calculation bit 15 -> 1111 1111 1111 1111 0111 1111 1111 1111 -> 0xFFFF7FFF
I`ve set the bits and eversthing else and uploaded the file onto the controller. The flash plugin works (can send commands back and forth) until I´m sending a mass erase command.
I´ve used the write protection from the example code and that worked but sectors used in the example are in the lower region aka FLASHSWP0.
I`ve also tried to set the bit below or above bit 15 and that also didn´t work.
So which bit I have to set? Maybe I misunderstood the docs...
Thanks!
Best regards
Steffen