6 years, 1 month ago.

how to use it?

Hello. I imported the library, created main.cpp My code for test.

#include "mbed.h"
PwmOut pwmled(PA_4);
int main()
{
    pwmled.period(0.01);
    while (1) {
        for(float p = 0.0f; p < 1.0f; p += 0.1f) {
            pwmled = p;
            wait(0.1);
        }
    }
}

But compiler write: Error: Cannot open source input file "device.h": No such file or directory in "mbed-STM32F030F4/api/platform.h", Line: 21, Col: 20

What am I doing wrong?

Question relating to:

Modification of mbed-src library only for STM32F030F4, very cheap microcontroller in 20-Pin TSSOP package, with 16Kbytes of Flash and 4Kbytes of Ram. **Target for online compilator must be Nucleo 32F030R8.** STM32F030F4, STM32F030F4P6

1 Answer

6 years, 1 month ago.

If you haven't already, right hand click on the Mbed library and select update.

I don't understand. I imported special modification of mbed-src library only for STM32F030F4 chip - "mbed-STM32F030F4"

posted by Freeman Oldman 24 Jan 2015

Delete this library and import again. Maybe it's just an occasional disturbance on the server. This file is certainly in a library

posted by Nothing Special 24 Jan 2015

Solved! I forgot to select the target board Nucleo 32F030R8.... ))

posted by Freeman Oldman 24 Jan 2015