cancel
Showing results for 
Search instead for 
Did you mean: 

How to include codes from examples

ManishNair
Associate III

Hi,

I am using Nucloe144 H743 board, Cube Mx and true studio.

I want to incorporate codes given in cubeH7 example for EVal boads.

How i can do this? For example how i can use FatFs application Code for EVAL boards in Nucleo or Other Custom boards.... Any link or help or tutoriol available?

2 REPLIES 2

Porting tends to start by understanding both boards and the differences in pin usage and connectivity.

For the STM32 I tend to start with a simple donor project or template that provides minimal functionality, which usually consists of IO routines to a USART based terminal and a proper Hard Fault Handler which can print out useful diagnostics.

Keep a copy of this if you plan to repeat using the new target platform.

Then bring over sections of code you want to use, editing for differences and testing along the way. Have the IDE build along the way so you can fix errors quickly rather than deal with 100s later. ​

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
ManishNair
Associate III

Thank you...