i.MX6ULL hardware settings for UART serial Downloading and USB ?

May I know the hardware settings to be made for UART serial downloading in i.MX6ULL?! Also, I would like to make my board work as a USB device. What are all the steps to be made in USB2.0 Micro type B in hardware side? I mean the ID pin!

The USB_OTGn_ID signals are muxed and thus you won’t find it on the pins names. You may see what muxing options for these signals are available in Table 56-1 (USB External Signals) of the i.MX6ULL Reference Manual (link below).