cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX

eyals111
Associate II
Posted on July 19, 2014 at 22:33

hi ,

i am currently evaluating STM32CubeMX for STM32F4 , great tool for getting started on New MCU.

I have few question :

 1.How can i define User Code block ? so when i make changes to existing project

    the STM32CubeMX generation process  wont erase my code ? i notice that there are       

    already Specific User code block place holder , but i have situation when i need to define     my own.

 2.what is the work flow to combine other RTOS with STM32CubeMX such as  Keil    

   CMSIS-RTOS-RTX  ?I know that i can add RTX to existing  a project using Mange

   Run-time-Environment (Keil IDE).

Thanks ,   

2 REPLIES 2
Osto
Senior
Posted on July 20, 2014 at 13:39

Hi,

1.) in all C-File generated by cube, you see comments like ''/* USER CODE BEGIN x */''and /* USER CODE END 0 */. x starts from 0 and increases. You can put your code between These blocks. When you recreate the Project, your code between These comments is saved and placed again in the same section.

stm32cube-t
Senior III
Posted on July 21, 2014 at 13:44

Hello,

You must use the predefined User Blocks. It is not possible to add new blocks.

STM32CubeMX current version does not support other RTOS than freeRTOS (natively or via an import mechanism). You will have to do this manually, directly in your project.

Best Regards