cancel
Showing results for 
Search instead for 
Did you mean: 

About stm32f407vgt6 and stm32h742vgt6 spi specifications

baby_chicken
Senior

Hello.
I am trying to migrate from stm32f407vgt6 to stm32h742vgt6, is there any difference in spi specifications?
Please give me your best regards.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

the H7 SPI is more complex ;

if you use HAL calls, its about the same code (HAL doing the right things for you), 

but if you write direct to registers - you have to make new program.

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

6 REPLIES 6

You could glance at the chapter highlights in the RMs.

Top of my head I'd assume the latter has more bit width options and a deeper buffer

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

Thanks for the reply.
I am thinking of migrating the code I am using in f4, but do you think I will need to modify it for h7 when I migrate it?
Thank you in advance.

Hi,

the H7 SPI is more complex ;

if you use HAL calls, its about the same code (HAL doing the right things for you), 

but if you write direct to registers - you have to make new program.

 

If you feel a post has answered your question, please click "Accept as Solution".

Thank you for your reply.
I am currently working fine with f4 using the HAL function, am I correct in assuming that in this case it is unlikely that the h7 code will also have to be modified?
Best regards.

You can try it: just make a new project, with the H7 you want, set the peripherals in Cube (and clock tree);

then generate code...and put your old F4 code parts in the user areas.

Then you know...what you have to adapt, until compiler shows no errors or warnings.

So dont expect, the same code will work , if you change the cpu from one series to another.

The question is : how much work is needed, to get it running on another cpu.

Try it - then you know.

And you can try it without needing to buy any hardware, just see , what the compiler telling you, until compiler shows no errors or warnings.

If you feel a post has answered your question, please click "Accept as Solution".

Thank you for your reply.
I will give it a try.