2024-03-07 03:07 AM
Hi,
some flash operation depends on the MCU supply voltage (see picture).
I would like to program an STM32F401 with openOCD, where the MCU is supplied with 2.5V.
Is the possible?
If yes,
- Can I use the stm32f4x.cfg or are there modifications needed?
- Should I use the ST version of openOCD? https://github.com/STMicroelectronics/OpenOCD
-Thomas
Solved! Go to Solution.
2024-03-15 04:17 PM - edited 2024-03-15 04:18 PM
Hi @T B ,
Yes, it is possible to program the STM32F401 with openOCD with MCU power supply at 2v5.
According to Table 7 of RM0368 we need to configure PSIZE with 01 (16-bit) or 00(8-bit).
PSIZE is not configured in the "stm32f4x.cfg" but configured rather in the "loader file" plugin located in ~\STM32CubeIDE\plugins\
The loader is in executable format, so not possible to customize it. I asked the development team what is the default configuration of openOCD loader for the STM32F401 in terms of PSIZE and flash clock frequency access ?
Hope it is 8-bit/20Mhz so that it is functional in all cases, otherwise a customized loader version will be requested to give guidelines how to change the openOCD project in the github.
Internal tracking ticket is "Ticket 176083" not accessible for you. I let you know for the updates.
Best regards,
Younes
2024-03-15 04:17 PM - edited 2024-03-15 04:18 PM
Hi @T B ,
Yes, it is possible to program the STM32F401 with openOCD with MCU power supply at 2v5.
According to Table 7 of RM0368 we need to configure PSIZE with 01 (16-bit) or 00(8-bit).
PSIZE is not configured in the "stm32f4x.cfg" but configured rather in the "loader file" plugin located in ~\STM32CubeIDE\plugins\
The loader is in executable format, so not possible to customize it. I asked the development team what is the default configuration of openOCD loader for the STM32F401 in terms of PSIZE and flash clock frequency access ?
Hope it is 8-bit/20Mhz so that it is functional in all cases, otherwise a customized loader version will be requested to give guidelines how to change the openOCD project in the github.
Internal tracking ticket is "Ticket 176083" not accessible for you. I let you know for the updates.
Best regards,
Younes