CLKBLK for FLASH and I2S

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
ffomich
Experienced Member
Posts: 114
Joined: Mon Sep 15, 2014 1:32 pm

CLKBLK for FLASH and I2S

Postby ffomich » Thu Nov 03, 2016 3:27 pm

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?
User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Postby larry » Fri Nov 04, 2016 6:23 pm

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.

Who is online

Users browsing this forum: No registered users and 0 guests