How to create Run-in-RAM code using SDCC?
Hello everyone,Is it possible to create Run-in-RAM code using SDCC? If possible then how to do this?Thanks in advance.
Discuss STM8 microcontrollers, including SWIM, USART configurations, RTC usage, ADC issues, and debugging.
Hello everyone,Is it possible to create Run-in-RAM code using SDCC? If possible then how to do this?Thanks in advance.
This bug is several years old and should really be fixed.In stm8s.h, the following line ...#if !defined HSE_Value... should (obviously!) be ...#if !defined HSE_VALUE... in order to allow HSE_VALUE to be defined on the command-line.I just found out th...
I have an issue when I am using STVD with Cosmic to write a value to EEPROM and read it back.Example code :/* MAIN.C file * * Copyright (c) 2002-2005 STMicroelectronics */#include "stm8s.h"#include "stm8s_flash.h"@eeprom unsigned char eeValue;unsign...
Posted on May 22, 2015 at 16:31Hi folks I'm trying to read the (unprotected) contents of the data flash of an STM8L processor via the command line application provided. As this works in the GUI version I assumed I should be able to specify a file to...
CLK_PeripheralClockConfig (CLK_Peripheral_I2C,ENABLE);// Delay(2); I2C_DeInit(); /* I2C Peripheral Enable */ I2C_Cmd(ENABLE); /* Apply I2C configuration after enabling it */ I2C_Init((uint32_t )200000, 0xA0, I2C_DutyCycle_2, I2C_Ack_Enable, I2C_Ack...
I want to program an external STM8 microcontroller using the ST-LINK/V2-1 portion of the NUCLEO-8L152R8 board. Is that possible? If so, what are the required steps?
I just downloaded the latest StdPeriph_Driver library a few days ago.The line ...TIM2->SR2 = (uint8_t)(~((uint8_t)((uint8_t)TIM2_FLAG >> 8)));... produces a warning. The value written to TIM2->SR2 will always be 0xFF.It's unclear to me what the desir...
at line 140 , the key io level is 3.2v , it is release status, so it keeps high.but the read pin function can not read the set value out , why?hope you could give me some hand!
void main(void) { /* Infinite loop */ CLK_SYSCLKDivConfig(CLK_SYSCLKDiv_8); GPIO_Init(GPIOE, GPIO_Pin_7, GPIO_Mode_In_PU_IT); EXTI_setup(); halt(); // first active #if 0 while(1) { halt(); ...