-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add blackpill+PCM5102A example #1
Comments
I can write hse and other parameters for 0% errors on 48khz |
That will help with the setup. What pins for I2S do you use? |
V5+ VIN |
Please extract and flash. I hope it shows up on USB. |
one sec |
I guess you need a bin file then, not an elf? |
may be:) |
Let's try ;) |
yes, sir! |
Do you have a field to enter it? |
what is it? :) |
I think 0x08000000 |
maybe hex file? |
What do you mean? Do you not have a field for the start address? |
Use "Start address" |
How? Im sorry Im stupid 🥇 |
Below file path, there is a start address field. You just enter 0x08000000 in it |
Did you disconnect/reconnect usb? That might be necessary. |
Yes |
I will check what might be wrong, probably some clock setting |
Ok, maybe this one. Disables VBUS detection. It might not be present on your device. |
If a reason is found, then that project might also work 💯 |
No device |
Maybe there is a problem with the initialization of the USB audio device or OTG? |
It could be anything.. Do you see an unrecognized device in device manager? |
Probably I won't have time to debug this until next year. Then I can test with some hardware that I have, which is similar to a blackpill. |
the only issue is with sound transmission, while everything else is already defined and working great ^^ |
Happy New Year! |
Happy new year! I had some time to test. Please try! |
It works :) |
The volume control is not working, but sounds great! |
Sometimes there is white noise instead of music, but if you refresh the page, everything is fine. |
What do you mean by white noise? Does it sound like a quickly repeating sound? Please try this one. It should also enable volume control. |
Sometimes it sounds like this :) Volume control is now working!!! |
Cool! That does really sound like white noise. When does it occur? |
It manifests chaotically, it can happen in the middle of a song or right away :) It can be fixed either by restarting the controller or by refreshing the page several times. |
Ok, that shouldn't happen of course. I will try to find out why it happens. |
I feel like the solution is somewhere nearby; it might be the buffers |
Please try that, I changed some logic. Might not change anything. |
Right now, there is nothing but noise, and resetting the controller doesn't help, but at least it's stable ;) |
Interesting! Not sure why that is yet. |
If we try to double the buffers, we will immediately understand if that's the issue, and we can also check the L2S frequency next time |
Hi, bro! How are you? Do you have any projects in mind that you would like to work on? |
Hi there! This one isn't quite fixed yet ;) |
Do you think it’s feasible to use two L2S outputs simultaneously, connecting a separate DAC to each output? This way, we get the following options: -4 channels |
I just don't know if it's possible to use a common HSE for both outputs and whether there will be perfect synchronization between the channels :) As for the inversion code, we can try to adapt it from SigmaStudio :) And one more question regarding the delay when inverting. Theoretically, there shouldn't be any delay since resource consumption is minimal :) That's the deal, bro :) |
By the way, I was playing around with: -PeriphClkInitStruct.PLLI2S.PLLI2SN in another project and got the same drops and white noise as in our project. Could this be the issue? :) How to create drops and white noise: I opened main.c and changed the parameters mentioned above, and voila - noise and drops! :) |
Yes, it could be the issue, but it's hard to check the clocks without hardware. I cannot replicate on my setup (I don't have a blackpill).
Why not use the same I2S for multiple DACs? Also, there are differential DACs already, so no need to invert yourself. |
Sad but thrue :) You can do without DACs at all if you use sigma-delta modulation and PWM output, but you'll have to do a bit of soldering :) like in this example, 32 bits 384 kHz https://github.com/beefdeadbeef/f4uac By the way, do you have Keil Vision? |
Interesting! Doesn't quite reach dynamic range of CD audio, but probably close enough. No, I don't have Keil. |
Do you know if it's possible to build a project without using Keil Vision? The software no longer supports older versions of compilers, and it's just a mess there? :) |
Here are some sigma-delta projects that work on the 401 and 411 tablets. I tried the one that uses a DAC, but everything works much better without sigma-delta :) https://github.com/sdima1357/stm32f401cdu6_Audio |
Sorry, I am not familiar with the Keil ecosystem. You may have to convert a Keil project to something like make/CMake + GCC, in order to build it differently. See for example https://cmake.org/cmake/help/book/mastering-cmake/chapter/Converting%20Existing%20Systems%20To%20CMake.html |
Create firmware for Blackpill + PCM5102A DAC, based on blus_mini_mk1
The text was updated successfully, but these errors were encountered: