Kevin Bortis pisze: > Could you please explain me how you calculated the work-area-size > value of 20k for the stm32? I have searched in the docu and on the > internet, but the only thing I got about the work-area-size was, that > the flash code for the stm32 uses about 48byte. What is the rest used > for?
Work-area is ta a parameter used by OpenOCD only, it has nothing to do with STM32 special features. OpenOCD uploads a block of final code (from .hex or whatever) to RAM, and runs a code that copies that to flash. Work-area is just a space that can be used for that purpose. Bigger work-area means fewer "rounds" of uploading code and saving that to flash => faster upload. When the work-area size you give is too big (RAM is smaller), than OpenOCD will just detect that and use less. But when you give too little (RAM is bigger), the upload takes longer. In 99% of cases it's perfectly safe to use all RAM for work-area. That's why I just give 20kB for that parameter, as that STM32 has 20kB of RAM. 4\/3!! _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development