Page 1 of 1

CLKBLK for FLASH and I2S

Posted: Thu Nov 03, 2016 3:27 pm
by ffomich
Hi,

I use project sw_usb_audio-[sw]_6.15.2rc1.

In the file sc_usb_audio\module_usb_audio\uac_hwresources.h
CLKBLK_3 is assigned to 2 clocks:

Code: Select all

#define CLKBLK_FLASHLIB    XS1_CLKBLK_3   /* Clock block for use by flash lib */
#define CLKBLK_I2S_BIT      XS1_CLKBLK_3 
CLKBLK_FLASHLIB is used in DFU task and CLKBLK_I2S_BIT is used in audio task.

I can't find any stop_clock()/start_clock() commands during DFU task. CLKBLK is used by to processes simultaneously.

Can anybody explain why where is no resource conflict?

Re: CLKBLK for FLASH and I2S

Posted: Fri Nov 04, 2016 6:23 pm
by larry
I think the clock block is running when flash_cmd_enable_ports is called. In there it gets restarted (turned off and on and passed to fl_connect, where it is started), which is fine. That's followed by a reboot, but even if it weren't, flash_cmd_disable_ports doesn't turn the clock block off, so audio/deliver can carry on using it.