Hello,
I’m working on a project where I need to port my code from the F429ZI wich I used to be conform with DWM1000 example provided by Decawave. The twr example (5b and 5a) is working fine.
Now for my application I’m using an STM32G431 but I have troubles while porting.
A little context:
I use STM32cubeide and my MCU is mounted on the nucleo32 for g431.
What I did to port my example is create an IOC file with SPI1 and CS, RESET, IRQ pins named in the same way as it is on F429. Because I’m lazy I compiled to find were to replace halF4xx librairies by halG4xx (and also the usart port). A few moment later I have a good compiling project.
I solved also a few issue linked to clock (I rebuilt settings as it were in F429).
When I entered in debug mode it seems to wait for and SPI event but the init didn’t failed. At that time I thought that it is link to the nucleo that require some hardware modification to make the pin alone on the connector(jumper SB2 and SB3 present) then I moved the SPI port from 1 to 2. I had to rename all the spi port but refactor is there
But now the behaviour is changing I have a message on serial “INIT FAILED” linked to an issue while reading the DEVID, this conclusion comes from a step into debug and I’m not sure this is the good conclusion du to the procedure.
Does any one succeed on porting from F4 to G4 series?
Did I miss something?
I don’t understand why the behaviour is different between the two SPI, any idea?
I still have some ideas to test:
I did a lot of fixes, I’m not sure that i did all at the same time, I should retry on a clean project.
I should comeback to SPI1 as the behaviour looked a bit better and investigate the source of the locked behaviour and try to solve it.
If it is missing something please tell me.
Cheers,
Damien