2024-12-07 03:09 AM
Hello.
I am trying to migrate from stm32f407vgt6 to stm32h742vgt6, is there any difference in spi specifications?
Please give me your best regards.
Solved! Go to Solution.
2024-12-07 05:08 AM
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.
2024-12-07 04:32 AM
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
2024-12-07 04:56 AM
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.
2024-12-07 05:08 AM
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.
2024-12-07 05:22 AM
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.
2024-12-07 05:41 AM
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.
2024-12-07 05:45 AM
Thank you for your reply.
I will give it a try.