Giter VIP home page Giter VIP logo

Comments (2)

katyo avatar katyo commented on August 23, 2024

I tried to set correct PLLMUL but it doesn't help.

Strange, I have no problems with project in C where I setup clock in a next way:

  RCC_CR |= (RCC_CR_HSEON | RCC_CR_CSSON);
  for (; !((RCC_CR & (RCC_CR_HSERDY))); );
  RCC_CFGR = (RCC_CFGR & ~(RCC_CFGR_SW | RCC_CFGR_HPRE | RCC_CFGR_PPRE | RCC_CFGR_PLLMUL | RCC_CFGR_PLLSRC))
    | (RCC_CFGR_SW_HSE | RCC_CFGR_HPRE_DIV1 | RCC_CFGR_PPRE_DIV1 | RCC_CFGR_PLLMUL_MUL6 | RCC_CFGR_PLLSRC_HSE);
  FLASH_ACR |= (FLASH_ACR_LATENCY_1WS);
  RCC_CR |= (RCC_CR_PLLON);
  for (; !((RCC_CR & (RCC_CR_PLLRDY))); );
  RCC_CFGR = (RCC_CFGR & ~(RCC_CFGR_SW))
    | (RCC_CFGR_SW_PLL);

from stm32f0xx-hal.

pigrew avatar pigrew commented on August 23, 2024

I've created a patch that has the extra logic for determining the divider when HSI is the source. It's in my branch https://github.com/pigrew/stm32f0xx-hal/tree/pllsrc

I still need to test it (though it does pass the CI checks)... I'll create a PR once I'm more confident in it.

from stm32f0xx-hal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.