cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Cube IAP (USART) for the STM32F070CB Microcontroller.

Francois drd
Associate II
Posted on February 17, 2017 at 22:31

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.

4 REPLIES 4
T J
Lead
Posted on February 18, 2017 at 02:44

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=false
Posted on February 20, 2017 at 18:01

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

Posted on February 21, 2017 at 00:09

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=false
Amel NASRI
ST Employee
Posted on February 21, 2017 at 09:13

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

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

. 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.