cancel
Showing results for 
Search instead for 
Did you mean: 

FNSOF value in Keil windows

entetegebe
Associate
Posted on July 28, 2016 at 09:27

Hello guys,

im currently playing with stm32f4 usb audio, and cant understand FS_DSTS frame number (FNSOF) values i see on Keil. Basically i read value of hardcoded register address in program and it gives me certain  value, which differs from what i see in Peripherals/System Viewer window, and, also, if i check value in Memory window, it differs from both these as well. Any ideas why im getting this wrong?

#keil #!stm32f4 #!usb
1 REPLY 1
entetegebe
Associate
Posted on July 28, 2016 at 20:02

I think i probably found it, must be this line from ref. manual

OTG_FS device status register (OTG_FS_DSTS)

''This register indicates the status of the core with respect to USB-related events. It must be read on interrupts from the device all interrupts (OTG_FS_DAINT) register.''

I guess it means i can only get correct FNSOF value under certain circumstances.