I'm using the MDK Middleware library with stm32f2xx_hal and I need to NAK to host. I see a reference to usbdRequestNAK but unsure how this can be used. I need to decorate my NAK around my emulated eeprom writes.
Or is there a way to wait for a USB frame? I could do all the work in side a frame and maybe not cause a stall.