2017-11-29 09:27 AM
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!
#usb-device #stm32f4012017-11-30 06:23 AM
Anyone?
I know the setting exists somewhere in STM32CubeMX, as ive used it before on a F070 project.
I just cant find it now...
Thanks.
2017-12-01 03:03 AM
I would also like to do this, but I don't think the option exists, see thread below:
https://community.st.com/0D50X00009Xkft5SAB
Ant