Open DoImant opened 2 years ago
Now the board recognizes vscode but it doesn't upload the code properly. How you have the platformio.ini ? (msp430g2553)
l used these settings and it started to work:
[env:lpmsp430g2553] platform = timsp430 board = lpmsp430g2553
board_build.mcu = msp430g2553
board_build.f_cpu = 16000000L
That should actually work.
An example that works for me: ------- snip ------------ [platformio] description = Beispielprogramm I2C default_envs = MSP430F2013 ;default_envs = MSP430G2553
[env] platform = timsp430 board = lpmsp430g2553 monitor_speed = 115200
[env:MSP430F2013] board_build.mcu = msp430F2013 board_build.f_cpu = 16000000L board_upload.maximum_size = 2048 board_upload.maximum_ram_size = 128 build_type = release build_flags = -Os
[env:MSP430G2553] ;board_build.f_cpu = 16000000L
[env:MSP430G2553-Debug] debug_tool = mspdebug debug_build_flags = -O0 -ggdb3 -g3 -------- snap ------
The USB driver for the Launchpad creates two com ports. You may have to specify the correct COM port like "monitor_port = COM12" in the ini file.
The same problem as with the issue "lpmsp5969 Upload Error # 4" also occurs when an upload is to be made to the "MSP430G2553". Error message:
----------------- GRADE ------------------ Modified version of mspdebug for Energia Do not use standalone
Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
Using new (SLAC460L +) API MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: COM12 MSP430_Initialize: COM12 Firmware version is 31000003tilib: MSP430_VCC: Could not set device Vcc (error = 10)
MSP430_VCC: 3000 mV tilib: device initialization failed *** [upload] Error -1
Workarround: Downloaded and installed the MSP flasher 1.3.20 software and copied the msp430.dll into the .platformio\packages\tool-mspdebug\ folder.