Hi <@U016EM8L91B> <@U0172QZ342D> <@U017X0NM2E7> do...
# chipignite
s
Hi @Tim Edwards @Matt Venn @Mitch Bailey do u know how in firmware I can set registers for pll to speed up clock? I tried this but not working . Can we write hkspi registers via firmware on flash as shown below or it can only be written via direct hkspi communication? // Bypass the PLL during configuration reg_hkspi_pll_bypass = 0x1; // Configure PLL trim value (implementation-specific) reg_hkspi_pll_trim = 0x1A; // Example value, adjust as needed // Set PLL source (implementation-specific) //reg_hkspi_pll_source = 0x1; // Example value, adjust as needed // Set PLL divider to multiply the clock by 10x reg_hkspi_pll_divider = 0x02; // Set the divider value for 2x multiplication // Enable the PLL reg_hkspi_pll_ena = 0x1; // Wait for the PLL to lock while ((reg_hkspi_pll_ena & 0x1) == 0); // Stop bypassing the PLL to use it as the clock source reg_hkspi_pll_bypass = 0x0;