Answer

Jan 23, 2025 - 08:13 PM
To connect the STM8L-DISCOVERY board to your PC, follow these steps:
1. Make sure you have a Windows PC (2000, XP, Vista) and a USB type A to mini-B cable.
2. Download and install the software environment (IDE) of your choice. You can choose between ST's MCU toolset (ST Visual Develop and ST Visual Programmer) or IAR Embedded Workbench for STM8 Kickstart edition.
3. Download and install the compilers required for your chosen IDE. For STVD, you can use either Cosmic 16K or Raisonance 32K compilers.
4. Connect the STM8L-DISCOVERY board to your PC using the USB cable.
5. The board comes pre-programmed with the Discover demo. Once connected, the application starts immediately and is displayed dynamically on the LCD.
6. To run the application examples, make sure your IDE (STVD) is correctly installed.
7. Download one of the application examples from the ST website and extract it on your PC.
8. Configure STVD to use ST-LINK as a debug instrument by selecting "Debug Instrument" and then "Target Settings". Choose the Swim ST-LINK in the target list.
9. Select the appropriate MCU (STM8L152C6) by going to "Projects" > "Settings" > "MCU".
10. Build your application by clicking "Build" > "Rebuild All".
11. Start debugging by clicking "Debug" > "Start Debugging". This will download your application to the STM8L program memory and start the debug session.
12. You can run the application code in either Debug or Stand-alone mode. To run in Debug mode, click "Debug" > "Run". To run in Stand-alone mode, click "Debug" > "Stop Debugging" and the application will start running immediately.
13. Refer to the application note associated with the example you selected to understand how it operates and any additional components required.
For more detailed instructions and support, you can refer to the STM8L-DISCOVERY evaluation board user manual (UM0970) and the STM8L-DISCOVERY software user manual (UM0991), both available on the ST website.
Add New Comment