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.

MSP430F5438A BSL430_PI_USCIA not working in BSL scripter.PLS Help!!

Other Parts Discussed in Thread: MSP430F5438A

Hi Katie,

I want to create a custom BSL based on MSP430F5438A which directly jump to 0x1000 into running the BSL from application code without TEST and RST pin. I am using a third party BSL interface and I have successfully run and tested the preloaded BSL via TEST, RST, P1.1 (TX) and P1.2 (RX) which are the default Timer_A UART in the BSL by using BSL_scripter.  Does it also means that my interface support even parity since that is the default setting? So there will not be any problem in the interface right?

Just like you mentioned before, I imported the example BSL project from the SLAA450\Custom_BSL_Zip_File\5xx_6xx_Example_BSL_Source\CCS_v4.2.0_BSL-5438A, then I change some compiler setting and successfully build and load the program into my chip. The BSL also run correctly using the same interface. I also do some comparison between the code in the BSL CCS project and the one coming from IAR BSL example project, both are the same just in different platform.

The next thing I did is to remove the BSL430_PI_TA from the CCS_v4.2.0_BSL-5438A and replace it with BSL430_PI_USCIA which is inside SLAA450\Custom_BSL_Zip_File\5xx_6xx_BSL_Source\Peripheral_Interfaces\USCIA_UART.

Also like what you mentioned in the forum, I did some modification:

1)      I add #define USCI_PORT_SEL P3SEL in the BSL_Device_File.h

2)      Since I want to configure the UART port using P3.4 and P3.5, so I just need to change BIT4+BIT5 since the default is already UCA0:

3)      Next, I remove all the __no_init as well as the #pragma required=BSL430_PI_Version , and also change all the setting liked mentioned in the forum, then the project built successfully. I managed to load the program into F5438A.

4)      So before dealing with the software entry, I retry the custom BSL via the previous interface using BSL scripter. This time, I change the TX pin on the interface to P3.4 and and RX pin to P3.5 and run the scripter. I am using the same script.txt which is as follow:

                                                MODE 5xx COM1

                                                DELAY 1000

                                                MASS_ERASE

                                                RX_PASSWORD BSLPassword.txt

                                                TX_BSL_VERSION

                                                RX_DATA_BLOCK test.txt

                                                DELAY 100000

Unfortunately, the process fail once MASS_ERASE begin. I have also try the  UCA0CTL0 &= ~UCPEN; for none parity together with the scripter_no_parity you post in the forum. Besides, i also try the same modification for the example in IAR, yet the same result come out. i am out of idea now, So can you please give me any hint? Thank You.

 

Regards,

michaelng

**Attention** This is a public forum