---

** [tickets:#302] Flash driver of at91sam7s256.flash does not support 
free_driver_priv()**

**Status:** new
**Milestone:** 0.11.0
**Created:** Mon Apr 26, 2021 09:28 AM UTC by Robj
**Last Updated:** Mon Apr 26, 2021 09:28 AM UTC
**Owner:** nobody


Thank you for creating the OpenOCD project. 

When programming an AT91SAM7S-EK evaluation board I get the following warning:
"Flash driver of at91sam7s256.flash does not support free_driver_priv()"

I suppressed this warning with the following patch:

--- openocd-0.11.0.old/src/flash/nor/at91sam7.c 2020-12-10 06:43:08.000000000 
+1100
+++ openocd-0.11.0/src/flash/nor/at91sam7.c     2021-04-26 18:52:00.891102178 
+1000
@@ -1147,4 +1147,5 @@
        .erase_check = at91sam7_erase_check,
        .protect_check = at91sam7_protect_check,
        .info = get_at91sam7_info,
+       .free_driver_priv = default_flash_free_driver_priv,
 };

This patch also suppresses a valgrind warning about a memory leak at
 at91sam7_flash_bank_command (at91sam7.c:714)


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to