Question
When I am trying to upload simple gpio code I am getting the following errors..can anyone help me please An error occurred while retrieving GDI features: gdi-error [40201]: Can't access configuration database Couldn't find STM8S003F3 in the list of
Posted on March 21, 2017 at 13:28
&sharpinclude <iostm8s003f3.h>
&sharpinclude <intrinsics.h>
int main()
{ // // Initialise Port D. // PD_ODR = 0; // All pins are turned off. PD_DDR_DDR4 = 1; // Port D, bit 4 is output. PD_CR1_C14 = 1; // Pin is set to Push-Pull mode. PD_CR2_C24 = 1; // Pin can run upto 10 MHz. // // Now lets toggle to IO line. // while (1) { PD_ODR_ODR4 = 1; // Turn Port D, Pin 4 on. PD_ODR_ODR4 = 0; // Turn Port D, Pin 4 off. }}#error #gpio #stm8