Home › Forums › Mastering STM32 book support forum › Where to find st_nucleo_f7.cfg? Book's suggestion
- This topic has 3 replies, 2 voices, and was last updated 7 years, 5 months ago by Carmine Noviello.
-
AuthorPosts
-
May 5, 2017 at 7:54 pm #7000bdangParticipant
Hi Carmine,
First off I made the newbie mistake and posted this on your tutorial.
In this tutorial and in your book Mastering-STM32, to help the reader getting the correct information on the Flash and RAM size easily without referring to datasheet or other ways, I suggest to build the CubeMX project first and then the Eclipse instead of the other way around as you had done. The reason is that after building the CubeMX project, we can correctly read the memory Length and Origin information from the generated linker description file STM32XXXX_FLASH.ld and then use this information to fill in the Target Processor Setting step during Eclipse project building as below:
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
…Another suggestion. On page 132 and 133 of Mastering-stm32, the instruction of how to Add the corresponding STM32xx processor name (used as conditional macro) to the Cross ARM GNU C Compiler’s Preprocessor (since the STM HAL is designed to work with all MCU), it was not too clear for me what to do.
It says “…and then click on Add icon. Use the macro corresponding to your Nucleo…..”. I wasn’t sure what to do with the new opened window with Defined Symbols (- D). So instead of saying “Use the macro corresponding….” (this sounds more like selecting the right macro name from the drop-down list), I think it’s more clear to say “Type in the macro name corresponding to your Nucleo (refer to Table 3….)….”.Question: I am using NucleoF722ZE but cannot find the st_nucleo_f7.cfg file under \openocd\scripts\board\ . What should I do (to use openocd for debugging)?
Best,
BrianMay 5, 2017 at 9:53 pm #7002bdangParticipantOk, I copied the st_nucleo_f4.cfg and renamed to st_nucleo_f7.cfg and edited it for stm32_f7xx.
suggestion for chapter 5.1.1.1 Launching OpenOCD on Windows:
Connect the board usb cable to PC before execute the openocd.exe command.Brian
May 6, 2017 at 2:04 am #7004bdangParticipantSuggestion on page 63:
2.2.6.1 Windows – ST-LINK firmware upgrade
There is no need to download and run ST-LINKupgrade.exe file for this.
The latest firmware can be upgraded by run the ST-LINK Utility, under tab ST-LINK –> Firmware update –> Device Connect. My new NucleoF722ZE has v2.J28.M17 but the update firmware is an older version v2.J27.M15Brian
June 7, 2017 at 7:07 am #7116Carmine NovielloKeymasterHi,
The right configuration file for STM32F7 boards is “stm32f7discovery.cfg”.
The reason why I suggest to use the ST-LINK Upgrade tool is because often the ST-LINK utility isn’t updated with the latest ST-LINK firmware (like it happened to you). -
AuthorPosts
- You must be logged in to reply to this topic.