Part Number: MSP430F5438
Other Parts Discussed in Thread: , MSPBSL
Tool/software: Linux
Hello I'm trying to update a board with a MSP430F5438 with a Raspberry, but without success:
The step I followed:
- Download Python_Firmware_Upgrader for linux on my Raspberry
- Correct the setup scrip by adding the ".py" to the script list inside ("scripts=[..") since it doesn't work otherwise
- launch the command : sudo python setup.py install
- connect the MSP430 pin /RST and TEST to the Raspberry GPIO and the MSP P1.1 and P1.2 to the raspberry UART.
- Launch a python script that :
- trigger the reset(MSP is running) then trigger 3 time the TEST to enter BSL mode
- then launch the command: python -m msp430.bsl5.uart -p /dev/ttyS0 -e -v -P ./firmware.txt
My problem :
is that it seem to go to BSL mode but the flashing doesn't work and output an error message :
./test_flash_MSP_acc.py:26: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(PIN_RST, GPIO.OUT, initial=GPIO.LOW)
./test_flash_MSP_acc.py:27: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(PIN_TEST, GPIO.OUT, initial=GPIO.LOW)
An error occurred:
(22, 'Invalid argument')
Cleaning up after error...
^CTraceback (most recent call last):
File "./test_flash_MSP_acc.py", line 50, in <module>
time.sleep(2)