AnsweredAssumed Answered

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

Question asked by KANDASAMY.GURUMOORTH on Mar 21, 2017
Latest reply on Mar 27, 2017 by jabbari.hussein

#include <iostm8s003f3.h>

#include <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.
}
}

Outcomes