Coder Social home page Coder Social logo

libdaisy-rust's Issues

examples do not work since update to stm32h7xx-hal 0.14

Hello,

When I try to flash my daisy board with an example (for instance blinky), the program does not start.

It works if I revert to stm32h7xx-hal 0.13.1 with the following patch:

--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,8 +19,8 @@ debouncr = "0.2.2"
 log = "0.4.11"
 micromath = "1.1.1"
 panic-halt = "0.2.0"
-stm32h7xx-hal = { version = "0.14.0", features = ["stm32h750v","rt","fmc", "xspi", "sdmmc", "sdmmc-fatfs", "usb_hs"] }
-stm32-fmc = "0.3.0"
+stm32h7xx-hal = { version = "0.13.1", features = ["stm32h750v","rt","fmc", "xspi", "sdmmc", "sdmmc-fatfs", "usb_hs"] }
+stm32-fmc = "0.2.0"
 rtt-target = { version = "0.4.0", optional = true }
 panic-rtt-target = { version = "0.1.2", features = ["cortex-m"], optional = true }
 lazy_static = { version = "1.4.0", features = ["spin_no_std"], optional = true  }

The issue seems to happen quite early at initialization: I tried to reduce the system::System::init() method to a minimal code that blinks a led, and it does not blink with 0.14.0 (while it blinks with 0.13.1).

I use rust 1.70.

Is anyone else seeing the same issue?
please @dobrite, can you confirm it's working on your side?

project status

I just wanted to query the status of this project. I would really like to start experimenting with rust on the daisy hardware platform, but it looks like it still needs a bit of work to make it work flawlessly. And as a total noob in rust and embedded rust I am quite sure to be currently completely useless as a contributor :)

How far do you think we are from that goal ?
What do you see as the biggest chalenges ?

Setting up a Project

When creating a new libdaisy-rust project you'll need to copy or create your own memory.x and .cargo/config files to tell the compiler how to build the binary image.

Daisy rev 1.1 audio distorted

Hi,
I forked your library and updated the audio.rs file to support the new codec WM8731 of the Daisy Seed rev 1.1.
Unfortunately, I have some audio distortions when passing audio through. At 1 kHz, I can see on the oscilloscope that the wave has artifacts.

As stated here

// Process samples at 1000 Hz
I am suspicious that I maybe did something writing wrong when updating the library. However, I didn't touch the DMA configuration too much.

In case you want to take a look:
https://github.com/backtail/libdaisy-rust

`passthru` on Daisy Seed produces a loud tone

blinky works fine. passthru doesn't pass audio through, but just produces a tone. I'm a total beginner with embedded programming, but it sounds like it produced one buffer of data and it's just looping that.

I don't know how to receive the log data, so I don't know if something is going wrong internally.

I don't know the revision of the Daisy Seed, but I get this from dfu-utils:

Found DFU: [0483:df11] ver=0200, devnum=1, cfg=1, intf=0, path="1-1", alt=1, name="@Option Bytes   /0x5200201C/01*128 e", serial="200364500000"
Found DFU: [0483:df11] ver=0200, devnum=1, cfg=1, intf=0, path="1-1", alt=0, name="@Internal Flash   /0x08000000/16*128Kg", serial="200364500000"

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.