stm8 sttoolset cannot compile

Publisher:ziyuntingLatest update time:2020-04-07 Source: eefocusKeywords:stm8  sttoolset Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Add the compiler path in STVD->Tools->Options->Toolset->Root path


1) An error message may be reported: -clDebug -coDebug main.c " has failed, the returned value is: 1 exit code=1.


2) can't open file libm0.sm8


3) Generate hex file modification method


project>settings>post-Build>add


chex -o $(OutputPath)$(TargetSName).hex $(OutputPath)$(TargetSName).sm8


Keywords:stm8  sttoolset Reference address:stm8 sttoolset cannot compile

Previous article:stvd+stm8s MCU program compilation error
Next article:Solutions to the following problems with STM8

Recommended ReadingLatest update time:2024-11-16 12:50

STM8 16M crystal oscillator accurate software delay
void inerDelay_us(unsigned char n)  { for(;n 0;n--)  {  asm("nop"); //In STM8, 16M crystal oscillator, _nop_() delays 333ns asm("nop");  asm("nop");  asm("nop");  } } //---- Millisecond delay program-----------------------  void Delayms(unsigned int time)  {  unsigned int i;  while(time--)  for(i=900;i 0;i--)  inerD
[Microcontroller]
IAR configuration implementation based on STM8
  Take STM8 as an example:   Copy the icf file of the MCU model used in the project to the project. ICF is usually placed in   C:Program FilesIAR SystemsEmbedded Workbench 6.5stm8config   In this directory.   1. Copy lnkstm8s207rb.icf   For example, if I use STM8S207RB, I will copy the file lnkstm8s207rb.icf into my
[Microcontroller]
IAR configuration implementation based on STM8
STM8 ISP serial port download instructions
1. Run the installation file “Flash_Loader_Demonstrator_v 2.5.0_Setup.exe” in the folder “stm32-stm8_flash_loader_demo”. You can choose the default path during installation. 2. Take the STM8-QC development board as an example to explain the download process. 3. Use the PL2303 download cable and the PL2303 driver i
[Microcontroller]
In-depth analysis of STM8 MCU timer driver
In the previous section, we introduced the driver of STM8 microcontroller GPIO based on the standard library. This section mainly introduces the driver of STM8 timer. Let's first open the specification sheet of the STM8L10x microcontroller and take a brief look at the timer function of the STM8L10X microcontroller.
[Microcontroller]
In-depth analysis of STM8 MCU timer driver
IAR for STM8 Issue 1
IAR for STM8 pop-up window: Fatal error while generating source browse infomation. See the Source Browse Log window for more infomation This happens because there are Chinese characters in the include path of the .c or .h file. After changing Chinese to English and resetting the path, it will run normally as follows.
[Microcontroller]
IAR for STM8 Issue 1
Detailed explanation and application of STM8's ADC multiple acquisition modes
First, the ADC of STM8S supports 5 conversion modes: single mode, continuous mode, buffered continuous mode, single scan mode, and continuous scan mode. 1Single mode In single-shot mode, the STM8S ADC performs only one ADC conversion on the selected channel, and the conversion result is stored in the ADC_DR register
[Microcontroller]
Detailed explanation and application of STM8's ADC multiple acquisition modes
STM8 SPI slave
Hardware platform: stm8s103  Compilation environment: IAR for stm8 //SPI slave initialization mode 0: CPOL=0 CPHA=0  void spiSlaveInit(void) {     SPI_CR1_SPE = 0;                    //  禁用SPI Disable SPI     SPI_CR1_CPOL = 0;                   //  CPOL = 0     SPI_CR1_CPHA = 0;                   //  CPHA = 0      S
[Microcontroller]
Learning STM8 SPI
#define SPI_CS_PORT GPIOC #define SPI_CS_PIN GPIO_PIN_4 #define SPI_CLK_PORT GPIOC #define SPI_CLK_PIN GPIO_PIN_5 #define SPI_MOSI_PORT GPIOC #define SPI_MOSI_PIN GPIO_PIN_6 #define SPI_MISO_PORT GPIOC #define SPI_MISO_PIN GPIO_PIN_7 SPI is the abbreviation of Serial Peripheral Interface, which is a single-master-mul
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号