Hello,
has anybody managed to setup a project with the mbed library? I tried to do a an example with a timer:
Timer t;
int main(void) { /*!< At this stage the microcontroller clock setting is already configured, this is done through SystemInit() function which is called from startup file (startup_stm32f030.s) before to branch to application main. To reconfigure the default setting of SystemInit() function, refer to system_stm32f0xx.c file */
/* Add your application code here */
/* Infinite loop */ // SER_Init(); // STM_EVAL_LEDInit(LED2); t.start(); printf("Hello World!\n"); t.stop(); printf("The time taken was %f seconds\n", t.read());
while (1) {}
But didn't succeed so far. Before the CPU (STM32F0) jumps to main the hard fault handler is called.
The application note from keil porting a project is very old and a lot has happended with the lib since then. I couldn't get any export to work on the homepage. All I managed is to download a zip file with the mbed lib sources in but no sample project. All I need is a minumum project with minimal components of the lib.
Thank you.