AnsweredAssumed Answered

examples in Cube

Question asked by McC.Joe on Nov 27, 2016
Latest reply on Dec 9, 2016 by Imen D

Anyone figure out how to run the examples downloaded with Cube ?
I am using the f0, r8 chip with the nucleo board.
I have been programming using bare metal (registers) and some spl to learn about the chip.
No problem up to this point.
I am making the move to cube mostly for the middleware stuff.
I downloaded cube and tried to run the gpio toggle example.

It seems like some of the defines are undefined to the compilier.
I have had to edit some h files so that the complier would recognize the defines.

Right now the complier to choking on stm32f0xx_hal_flash.c because it can
not find defines like FLASH_PAGE_SIZE, FLASH_KEY1.

I found FLASH_PAGE_SIZE in stm32f0xx_hal_flash_ex.h but it was not included in
the file so i had to add that. I can not find FLASH_KEY1 defined in any files.

Spending all this time just to run an example that is supposed to be complete is
very frustrating. I would like to get this going but I do not see how they ever
ran this example in the first place.