AnsweredAssumed Answered

CubeMX - Static USBD setting?

Question asked by MWP on Nov 29, 2017
Latest reply on Dec 1, 2017 by Ant M

Hi all,


I've started a new F401 project, but for the life of me I cannot find the setting in CubeMX to have it create usbd_conf.h using the static malloc replacement:

/* Memory management macros */ 
#define USBD_malloc (uint32_t *)USBD_static_malloc
#define USBD_free USBD_static_free
#define USBD_memset /* Not used */
#define USBD_memcpy /* Not used */


Instead of the heap allocated method that its currently using:

 /* Memory management macros */   
#define USBD_malloc               malloc
#define USBD_free                 free
#define USBD_memset               memset
#define USBD_memcpy               memcpy

Does anyone know where it is / what its called?


Thanks in advance!