Build STM8 development environment under Linux

Publisher:Aq123456258Latest update time:2020-04-18 Source: eefocusKeywords:Linux Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Use SDCC+STM8Flash+STLink to build Linux development STM8 development environment. Corresponding MCS51, LPC and the like can also use SDCC


1. Install SDCC

$ sudo apt-get install sdcc


2. Install stm8flash

git clone https://github.com/vdudouyt/stm8flash.git

cd stm8flash

make

sudo make install


3. Install STlink driver

Requirements before installation

1.libusb-1.0

1.1:sudo apt-get install libusb-dev

1.2:sudo apt-get install libusb-1.0-0-dev


2.cmake

2.1:sudo add-apt-repository ppa:george-edison55/cmake-3.x

2.2:sudo apt-get update

2.3:sudo apt-get install cmake

 


git clone https://github.com/texane/stlink.git

cd stlink

make

cd build/Release && make install DESTDIR=_install

Copy st-flash to /usr/bin


Keywords:Linux Reference address:Build STM8 development environment under Linux

Previous article:STVP programming failure prompt
Next article:IAR has SWIM error [30004]

Recommended ReadingLatest update time:2024-11-23 08:22

Green hand_Programmable heater based on STM8
1. Question requirements:       A. Basic part (1) Can display the control temperature and actual working temperature; (2) The operating temperature can be set using the keyboard, and the temperature control error is required to be ±2°C; (3) When the temperature is lower than 30°C, the fan stops dissipating heat and t
[Microcontroller]
Green hand_Programmable heater based on STM8
Wireless Network Data Acquisition Terminal Based on S3C2410 and Linux2.6
introduction Data acquisition technology has a wide range of applications in industrial field control, medical monitoring, environmental testing, and traffic monitoring. Traditional data acquisition uses a design model based on a single-chip microcomputer. Data storage, transmission, and real-time analysis all
[Microcontroller]
Wireless Network Data Acquisition Terminal Based on S3C2410 and Linux2.6
Character collection and recognition system based on ARM and Linux
The digitization of traditional paper readings and character recognition systems such as barcode recognition are inseparable from the reading and recognition of images. However, the widely used character recognition devices currently separate these two parts, that is, they are composed of image reading devices (such
[Microcontroller]
Character collection and recognition system based on ARM and Linux
STM8 MCU ADC analog watchdog Chinese data error
  When debugging the ADC analog watchdog function of the stm8 microcontroller, no matter how you set the values ​​of the ADC_HTR and ADC_LTR registers, the values ​​of these two registers are incorrect when you observe them during single-step debugging using the IAR software.   According to the Chinese manual, t
[Microcontroller]
STM8 MCU ADC analog watchdog Chinese data error
2021EdgeX China Challenge Concludes, Intel Empowers Developers
2021EdgeX China Challenge Concludes, Intel Empowers Developers to Accelerate the Implementation of Intelligent Edge Scenario November 19, 2021, Shanghai - The 2021 EdgeX China Challenge came to a successful conclusion yesterday. The closing ceremony and awards ceremony with the theme of "Digital Intelligence Co-crea
[Embedded]
2021EdgeX China Challenge Concludes, Intel Empowers Developers
Construction and Improvement of YAFFS File System in Embedded Linux System
In the development of embedded Linux, the commonly used storage devices are NorFlash and NandFlash. Among them, NandFlash is more widely used because it is inexpensive and suitable for high-density and large-capacity storage . The YAFFS (Yet Another Flash File System) file system is designed specifically for the specia
[Microcontroller]
Construction and Improvement of YAFFS File System in Embedded Linux System
ARM-Linux kernel transplantation--based on FL2440 development board (modified to Linux single system)
Hardware platform: FL2440 development board Kernel version: 2.6.28 Host: Ubuntu 11.04 Kernel version: 2.6.39   I originally thought that the size of the nand flash of fl2440 was 128M. I asked the customer service and found out that FL2440 now uses modern flash, which is now 256M. However, Feiling's bootloader
[Microcontroller]
ARM-Linux kernel transplantation--based on FL2440 development board (modified to Linux single system)
STM8 timer TIM interrupt cannot enter
I use the IAR compiler. I played with STM8 last night and found that the style is quite similar to STM32, so I got the hang of it quickly. Today I played around with the TIM4 timer, but the interrupt just wouldn't work. I spent a lot of time looking up the interrupt number, service function, etc., and finally found th
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号