Let
$${\bf A} := \sum_{i=1}^K w_i {\bf x}_i {\bf x}_i^\top$$
where $\{w_i\}_{i=1}^K$ are scalars, and ${\bf x}_i \in \mathbb{R}^d$. Let ${\bf w} := [w_1 \cdots w_K]^\top \in \mathbb{R}^K$.
What is the derivative of the squared Frobenius norm $\|{\bf A}\|_\mathsf{F}^2$ with respect to ${\bf w}$?
According to the definition, $$ \left\|A\right\|_F^2=\text{tr}\left(A^{\top}A\right). $$ Thus since we have $$ A=\sum_iw_i\mathbf{x}_i\mathbf{x}_i^{\top}, $$ we obtain $$ A^{\top}A=\left(\sum_iw_i\mathbf{x}_i\mathbf{x}_i^{\top}\right)\left(\sum_jw_j\mathbf{x}_j\mathbf{x}_j^{\top}\right)=\sum_{i,j}w_iw_j\mathbf{x}_i\mathbf{x}_i^{\top}\mathbf{x}_j\mathbf{x}_j^{\top}. $$ Consequently, $$ \left\|A\right\|_F^2=\text{tr}\left(A^{\top}A\right)=\text{tr}\left(\sum_{i,j}w_iw_j\mathbf{x}_i\mathbf{x}_i^{\top}\mathbf{x}_j\mathbf{x}_j^{\top}\right)=\sum_{i,j}w_iw_j\text{tr}\left(\mathbf{x}_i\mathbf{x}_i^{\top}\mathbf{x}_j\mathbf{x}_j^{\top}\right). $$ It is then straightforward to see that $$ \frac{\partial}{\partial w_k}\left\|A\right\|_F^2=\sum_{i,j}\left(\delta_{ik}w_j+w_i\delta_{ij}\right)\text{tr}\left(\mathbf{x}_i\mathbf{x}_i^{\top}\mathbf{x}_j\mathbf{x}_j^{\top}\right)=2\sum_{j}w_j\text{tr}\left(\mathbf{x}_j\mathbf{x}_j^{\top}\mathbf{x}_k\mathbf{x}_k^{\top}\right). $$
Edit: Further simplification
Thanks to @RodrigodeAzevedo's suggestion, the last expression could be further simplified. Note that $$ \text{tr}\left(\mathbf{x}_j\mathbf{x}_j^{\top}\mathbf{x}_k\mathbf{x}_k^{\top}\right)=\text{tr}\left(\mathbf{x}_k^{\top}\mathbf{x}_j\mathbf{x}_j^{\top}\mathbf{x}_k\right)=\text{tr}\left(\left|\mathbf{x}_j\cdot\mathbf{x}_k\right|^2\right)=\left|\mathbf{x}_j\cdot\mathbf{x}_k\right|^2. $$ Thus we have $$ \frac{\partial}{\partial w_k}\left\|A\right\|_F^2=2\sum_{j}w_j\left|\mathbf{x}_j\cdot\mathbf{x}_k\right|^2. $$