Coder Social home page Coder Social logo

Comments (3)

itxs avatar itxs commented on July 19, 2024

Hm, any activity here?

from app-template.

Urhengulas avatar Urhengulas commented on July 19, 2024

Hi @itxs. That's odd. Unfortunately I do not have your board at hand, so you need to try a few things.

First can you please test if this problems also occurs with a very simple loop. The code is adapted from adapted from https://docs.rs/stm32f0xx-hal/latest/stm32f0xx_hal/delay/index.html, but I didn't test if it compiles, there might be some typo.

use helloworld1 as _; // global logger + panicking-behavior + memory layout

use stm32f0xx_hal as hal;

use crate::hal::pac;
use crate::hal::prelude::*;
use crate::hal::delay::Delay;
use cortex_m::peripheral::Peripherals;

#[cortex_m_rt::entry]
fn main() -> ! {
    let mut p = pac::Peripherals::take().unwrap();
    let mut cp = cortex_m::Peripherals::take().unwrap();

    let mut rcc = p.RCC.configure().freeze(&mut p.FLASH);
    let mut delay = Delay::new(cp.SYST, &rcc);
    loop {
        delay.delay_ms(1_000_u16);
        defmt::println!("Hello, world!");
    }

    helloworld1::exit()
}

Afterwards can you please test if the problem occurs with all your commits, or which commit introduced the bug.

When you have this please come back here with the results.

I assume this is an error on in the HAL, because I don't see which part of the template should be responsible for this, but let's see.

from app-template.

itxs avatar itxs commented on July 19, 2024

Sure, will check, sorry for delay

from app-template.

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.