Hi,
I am using CP2102 based usb2uart module to program MSP430f5435 using BSL_Scripter.exe. But I am experiencing few strange situations. I have been able to communicate between the PC and the MSP using the above module. But when i connect the same module to program the msp using cmd I am getting errors. The connections as given below:
usb2uart MSP430
TX TA0.1
RX TA0.0
DTR RST/NMI
RTS TEST
VCC VCC
GND GND.
I have just connected the things and in cmd executing the BSL_Scripter.exe filename.txt . Do i need to do anything explicitly to invoke the BSL..?? I assume just by executing the above command in cmd will invoke the BSL and dumps the code to flash memory of msp.
The snapshot of the error looks like below:
And the code in the script.txt is
MODE 543x_family COM14 MASS_ERASEDELAY 1000RX_PASSWORDRX_DATA_BLOCK passb.txt
Also when i change COM14 to USB in cmd its not showing any error. Even when nothin is connected to the PC.
So can someone please identify where am i going wrong..??
Kailash,
you can check the Launchpad-Based MSP430 UART BSL Interface (Rev. A) App note for more details on the BSL Hardware connection to the Target device.
http://www.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=slaa535a&docCategoryId=1&familyId=342
Hope this helps, otherwise please let me know.
BR,
Mo.
The connections are correct and I ve referred to that document also. Still the staus of the problem I ve posted remains the same.
Regards,
Kailash
Kailash VI assume just by executing the above command in cmd will invoke the BSL and dumps the code to flash memory of msp.
Yes, this is correct. The BSL scripter will automaticaly generate the BSL entry sequence to invoke the BSL.
Can you try it with the below settings?
MODE 5xx COM14VERBOSEMASS_ERASERX_PASSWORDRX_DATA_BLOCK passb.txtDELAY 2000
Also, what is the Vcc voltage level?
On the usb2uart module, are you able to see the BSL entry sequence on a scope (DTR and RTS lines) when runing the BSL scripter?
As I am using MSP430f5435 I think MODE should be 543x_family.
Vcc Voltage is 3.3V and is there any other way to check the signal in DTR and RTS lines. Becuase i don't have an oscilloscope right now.
when i used verbose the cmd looked like this:
I ve studied about verbose but did not understand properly. Can you tell in breif about that?
when nothing is connected to the laptop and when the code is executed the above screenshot itself is displayed in cmd..?? how is this possible?
Hi Kailash,
Kailash V when nothing is connected to the laptop and when the code is executed the above screenshot itself is displayed in cmd..?? how is this possible?
Leo Hendrawan
lhendBSL Scripter doesn't receive any data from MSP430 target
_____________________________________Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.
Thanks Leo,
I am using 5435(non-A).
BTW MSP430f5435(non-A) is a device with dedicated JTAG pins right? So I have to use TST and RST/NMI pins for entering into the BSL. Am I correct?
Kailash V BTW MSP430f5435(non-A) is a device with dedicated JTAG pins right? So I have to use TST and RST/NMI pins for entering into the BSL. Am I correct?
The MSP430F54xx non-A and A devices are devices with share JTAG pins. The easiest way to make the difference is basically to see whether the device have TEST pin. If it has TEST pin, it is then categorized as devices with shared JTAG pins. However your second argument is correct, for devices with shared JTAG pins, you need to apply the BSL entry sequence at RST and TEST pin, See the following wiki:
http://processors.wiki.ti.com/index.php/MSP430_FAQ#How_to_invoke_the_BSL.3F
Can someone test MSP430f5435 uart bsl programming? Because I think its not possible to program it through BSL. I somehow managed to enter the BSL by apllying the proper waveforms on tst and rst pin. But when i sent 80h via hyperterminal o any dataframe for the corresponding commands there was no reply from BSL. This was creating a doubt about if the device has entered BSL or not. For this purpose using FET debugger I programmed the chip such that some LEDs will be on all the time. But after I applied the waveforms on rst and tst pins the leds didnot glow. So I inferred that device has enterd BSL. But not responding to the commands. Any guesses what the reason may be?
i tested the BSL on MSP430F5438 (nonA) device before with the SLAA535:
and it works. This should also apply for the MSP430F5435, since they are more or less the same device (MSP430F5435 is subset from MSP430F5438).
Kailash V But when i sent 80h via hyperterminal o any dataframe for the corresponding commands there was no reply from BSL.
But when i sent 80h via hyperterminal o any dataframe for the corresponding commands there was no reply from BSL.
Sending a single 0x80 will not give you get a reply from the BSL. The 5xx devices have different BSL protocol. Please refer to the "Flash based BSL" in the SLAU319 documentation. I would suggest you to use the BSL Scripter to check this.
Leo,
I did not send only 80h but i sent complete data frames for MASS ERASE and some other commands which are not password protected. Also I have gone through the above mentioned file and i found these commands in that file itself. But I have not tested using launchpad. I guess its not 5xx family it comes under 543x_family right? Because thats what I have written in the BSL Scripter command line apllication code.
BSL Scripter may have bugs.
It may not be able to open COMxx when xx is 10 or higher. You need to go to Windows Hardware Device Manager and change xx to 9 or lower.
That was when i had connected 2 usb-uarts for some purpose. I had used com14 for communicating with the BSL. But after that i used only one module which was com3.
I changed the code correspondingly. But still the result is same.