[Br:1][C:2]1[CH:3]=[N:4][C:5]2[N:6]([N:8]=[CH:9][C:10]=2I)[CH:7]=1.CC1(C)C(C)(C)OB([C:20]2[CH:21]=[C:22]([C:25]([NH:27][CH:28]([C:33]3[CH:38]=[CH:37][CH:36]=[CH:35][N:34]=3)[C:29]([F:32])([F:31])[F:30])=[O:26])[S:23][CH:24]=2)O1.C([O-])([O-])=O.[Na+].[Na+]>C1C=CC([P]([Pd]([P](C2C=CC=CC=2)(C2C=CC=CC=2)C2C=CC=CC=2)([P](C2C=CC=CC=2)(C2C=CC=CC=2)C2C=CC=CC=2)[P](C2C=CC=CC=2)(C2C=CC=CC=2)C2C=CC=CC=2)(C2C=CC=CC=2)C2C=CC=CC=2)=CC=1.O1CCOCC1>[Br:1][C:2]1[CH:3]=[N:4][C:5]2[N:6]([N:8]=[CH:9][C:10]=2[C:20]2[CH:21]=[C:22]([C:25]([NH:27][CH:28]([C:33]3[CH:38]=[CH:37][CH:36]=[CH:35][N:34]=3)[C:29]([F:32])([F:31])[F:30])=[O:26])[S:23][CH:24]=2)[CH:7]=16-bromo-3-iodopyrazolo[1,5-a]pyrimidine (1 eq) was mixed with 4-(4,4,5,5-tetramethyl-1,3,2-dioxaborolan-2-yl)-N-(2,2,2-trifluoro-1-pyridin-2-ylethyl)thiophene-2-carboxamide (1 eq, step B). Dioxane (10 mL) and 1M Na2CO3 (2 eq) were added. The mixture was evacuated and flushed with nitrogen under stirring, then Pd(Ph3P)4 (0.05 eq) was added in a flow of nitrogen. The temperature was brought to 90° C. The reaction mixture was stirred at this temperature overnight and concentrated. The residue was poured into a 5-fold excess of water. The mixture was extracted with chloroform. The organic layer was washed with brine, dried with MgSO4, and concentrated. The residue was purified by column chromatography (dichloromethane-methanol, 100:1) to give 4-(6-bromopyrazolo[1,5-a]pyrimidin-3-yl)-N-(2,2,2-trifluoro-1-pyridin-2-ylethyl)thiophene-2-carboxamide.