#include <iostm8l.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdint.h>#include <math.h>#include "defs.h"static int click = 0;void delay(unsigned long dd){ unsigned long i; for (i=0;i<dd;i++) nop(); }void RTC(void){ unsigned...
HiI am using STM8S001J3 controlleron my project and I'm have some problem about it,6 pin GPIOB 4 It doesn't work.I don't know how to solve it.Please help me..//example code GPIO_DeInit(GPIOB);GPIO_Init(GOIOB,GPIO_PIN_ALL,GPIO_MODE_OUT_OD_HIZ_LOW);whi...
The host tries to write the STM8S001J3 flash memory and then read it through the SWIM interface. Writing a block of 64 bytes. happens correctly. However, reading steadily only works on 1 byte. When trying to read more bytes with one command, the resu...
I'm using theᅠSTEVAL-ISB044V1 evaluation board for the wireless charging test. The evaluation board is based on STWBC-EP and can be programmed with ST-LINK V2. STM8AF6166 is the core of it, so I post here. I tried to program the board, and there's al...
File KEYPAD.H/* Exported types ------------------------------------------------------------*/typedef enum { CORRECTTIME = 0, FEEDINGTIME, COUNTERTOZERO, PRESSTOTEST, MOTORDEC, MOTORINC, DELAYDEC, DE...
I have started writing some STM8 code in assembler and happened upon a memory assignment issue I can't explain.Globally I have segment 'ram0'Test_Word ds.w in code: ldw X, #$48 ldw Test_Word , X The two bytes of memory at location Test_Word i...
Hello.I have accidentally activated the ROP protection on some demo boards using STLUX385A.Normally I use ST Visual Programmer to restore the configuration bytes, but the STLUX385A is not currently supported.I own a ST-Link V2 but I can't find any fl...
I'm working on STM8s105c6 . Everything goes fine but I'm not able to debug it . Earlier it said Swim error can't access database . Then i reinstalled StToolset file , Now it shows SWIM Error 30004 Comm Time out . I have tried everything . The code g...