cancel
Showing results for 
Search instead for 
Did you mean: 

Generate demo code for custom hardware

regjoe
Associate III

Hello,

what is the best way to run some of the demos provided by CubeMx on a custom HW?

Probably like this: Generate demo code for an evaluation board. Then merge the generated initialization code for the custom board into the demo code folder?

Or can CubeMx generate directly demo code for custom HW e.g. pick a demo for an evaluation board and import the custom board .ioc?

I've read somewhere here that this would be possible in future?

Thanks

EDIT:

After reading some related threads here, I think I have to provide some additional information.

The custom design based on a STM32H753 / LQFP176. Most of the IOs (USB, SDRAM, FLASH, ETH etc.) is nearly the same on the HWSTM32H753_EVAL2. I guess most of the demos would work on the custom HW out of the box but the pinout of the BGA package is different.

I guess the examples for this evaluation board are not "CubeMx compatible", what probably means that the code is not generated using CubeMx? Because of this, no IOC is available? If somebody has created an IOC e.g. by "reverse engineering", would this be helpful for me in any way?

10 REPLIES 10

Especially jumping from MCUs to MPUs, it's unlikely that even HAL code will "just work" - there will be changes needed for the (possibly significant) differences in the underlying hardware.

And, as @Pavel A. said, bare metal is a less likely use-case for MPUs ...