2017-02-17 01:31 PM
Hi, I need to use STM32Cube IAP (USART) for the STM32F070CB processor. The closest code (STM32F0 microcontroller) I found is from GitHub:
https://github.com/borgel/STM32Cube-F0-Releases/tree/master/
IAP is implemented only for
STM32091C_EVAL board which uses a STM32F091VCT6 microcontroller. (I also looked at
https://sourceforge.net/projects/bootstm32/
but the closest processor is a STM32F1) .I tried to adapt the project for my processor. The original code compiles correctly. I got a lot of compiling errors after my modifications. I can try to resolve these errors but before doing it, I'd like to know if there's a better way to reach my goal. Here are the steps I've done up to now:1. Change startup_stm32f091xc.s to startup_stm32070xb.s from STM32Cube-F0-Releases-master\Projects\STM32F070RB-Nucleo\Applications\FreeRTOS\FreeRTOS_ThreadCreation\MDK-ARM.
2. Modify Project.uvoptx: Compare with STM32F070RB-Nucleo FreeRTOS project.
There are some fields differences not obvious!! I'll have to compare from MDK device database probably...
3. Modify Project.uvprojx: Compare with STM32F070RB-Nucleo FreeRTOS project.
There are some fields differences not obvious as well !!
Anyone has a better idea? Thanks.
2017-02-17 05:44 PM
Did you try the Cube project examples ?
________________ Attachments : Cube Repository.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyvH&d=%2Fa%2F0X0000000bDs%2FmJrCDkpk9.WmiFpyfJKZ.zS2ns38PTneSCOLFy.iZMI&asPdf=false2017-02-20 10:01 AM
Thanks Nick for your answer. The directory structure displayed in your jpeg file corresponds exactly to what I have from the GitHub path stated before in my question. Please give me the path you used on ST site so I can compare with it.
My status is that I modified the code from
STM32091C_EVAL
to adapt it to my STM32F0 processor and I now start testing.Thanks
2017-02-20 04:09 PM
have you loaded Cube MX 1.7.0 ?
it is included in the download.
you specific processor has its own examples.
________________ Attachments : CubeMX 1.7.0 STM32F070 Examples.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyuJ&d=%2Fa%2F0X0000000bDk%2FgYeMDEeQLPmok_.ij76tGpHxk3tmi0H2vxaHXBPbvWg&asPdf=false2017-02-21 12:13 AM
Hi
drd.Francois
,STM32CubeMX is a graphical tool that allows configuring STM32 microcontrollers very easily and generating the corresponding initialization C code through a step-by-step process. You can download it from
. In the same page, you find a user manual that helps you to start using this tool.When installing CubeMX, you will be asked to download the needed Cube packages in a dedicated repository.
This repository will contain last CubeF0 package version with the set of examples.
CubeMX will let you generate a ready to use example for the device you need, with initialization code for peripherals to be used. In your particular case, you can generate one for STM32F070, then add the processing code as your reference example of STM32F
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.