Discuss hardware and software design challenges, including NOR flash storage, OTA updates, component ID, and thermal management.
#include "iostm8l.h"#include <stdint.h>#include <stdio.h>#include "defs.h"main(){ CLK_DIVR = 0x00; // Set the frequency to 16 MHz while(1) { if (PWR_CSR2 & 0x01 == 0x01) { break; } } PWR_CSR2 |= (1<<1); while (1) { halt(); }}
The standard library for stm8 can only use Cosmic, Raisonance and IAR compilers, which are all either non-free or limited in some way or another. Is there a plan to include support for sdcc (or at least a way to use it)?
how to measure the time of a code block running within STVD
GPIO_Init(GPIOD, R4_GPIO_PINS, GPIO_Mode_In_FL_No_IT); GPIO_Init(GPIOD, R6_GPIO_PINS, GPIO_Mode_In_FL_No_IT); delay_ms(1); DOes gpio configure need to wait for completion?
char *address = (char *) 0x4000; void flashwrite(char dat) { // thanks to https://github.com/midnight-wonderer/stm8-eeprom-bug/blob/workaround-//method/src/firmware.c // one Mr. Sarun Rattanasiri wh...