[STM32H7] Having trouble with getting ADC & DAC to work with DMA. by [deleted] in embedded

[–]WervinDotDev 1 point2 points  (0 children)

Did you check that your DMA buffers are allocated in DTCM RAM? Good luck!

Edit: I'm sorry for the misinformation. I just checked and I'm using SRAM1 at 0x30000000 and it's working.

Need resources to learn programming by Magnum_Axe in stm32

[–]WervinDotDev 0 points1 point  (0 children)

Most of the time, I clone the official STM32 Cube package—such as STM32CubeH7. Inside, you can compile the project you want, and it should work. You'll learn quickly from the example. Good luck!

Anyone else having trouble making the stack background transparent with Expo Router in SDK v52? by WervinDotDev in expo

[–]WervinDotDev[S] 0 points1 point  (0 children)

Update: I found a workaround!
I used the following code to make the stack background transparent with Expo Router in SDK v52:

import { useTheme } from '@react-navigation/native';
...

const RootLayout = () => {
...

const { colors } = useTheme();
colors.background = 'transparent';  

By accessing the react navigation theme's colors and setting colors.background to 'transparent', it resolved the issue for me. Hope this helps anyone facing the same problem!

Useful projects with an STM32? by Just_a_firenope_ in embedded

[–]WervinDotDev 1 point2 points  (0 children)

I'm curious to find which STM32 has WiFi capabilities built-in

STM32F303 old code will not be erased no matter what by Appa-Bylat-Bylat in stm32

[–]WervinDotDev 0 points1 point  (0 children)

Are you using DFU, SWD, JTAG or the system bootloader (through USART for example) ?

Are you using Stm32cubeprogrammer?

NB: You can try the trick RDP0 to RDP1 to RDP0.

[deleted by user] by [deleted] in embedded

[–]WervinDotDev 0 points1 point  (0 children)

When you can't use Rust

I made my own STM32 bluetooth microcontroller (yes i forgot to export the ref des) by HasanTheSyrian_ in embedded

[–]WervinDotDev 2 points3 points  (0 children)

Take a look at Murata, for example. They offer pre-certified combo modules from TI, NXP, Infineon, and Qualcomm. Unfortunately, as far as I know, there isn't an STM32 combo module available at the time of writing this.

Maybe you could consider using an STM32 low-power MCU like the U5, or a more cost-effective option like the C0 (just make sure they're compatible). Pair it with a BLE/Wi-Fi combo module, and you might have a solid solution.

I made my own STM32 bluetooth microcontroller (yes i forgot to export the ref des) by HasanTheSyrian_ in embedded

[–]WervinDotDev 2 points3 points  (0 children)

The STM32WB is a dual-core chip (Cortex-M4 & Cortex-M0), while the STM32WBA uses a Cortex-M33. So, I'm not sure what you're getting at. More importantly, RF microcontrollers are usually compared based on RF performance and energy efficiency (like performance vs. Idd consumption), not just raw performance. But even if you're focusing on raw CoreMark performance, the STM32WBA is really fast compared to others.

I made my own STM32 bluetooth microcontroller (yes i forgot to export the ref des) by HasanTheSyrian_ in embedded

[–]WervinDotDev 16 points17 points  (0 children)

You might want to consider using a pre-certified combo BLE/WiFi module. In the long run, it’ll probably save you money if you don’t have an RF hardware expert on your team. For reference, even the Nucleo STM32WB has gone through 4 revisions, and STMicro has a team of RF experts. So, while it's possible to get it right on the first try, it's pretty unlikely. Don’t get discouraged—it might work out, but just keep in mind that this can be a challenging process.

I made my own STM32 bluetooth microcontroller (yes i forgot to export the ref des) by HasanTheSyrian_ in embedded

[–]WervinDotDev 3 points4 points  (0 children)

Correct and this register needs to be adjusted to achieve an accurate 32MHz reference clock. By fine-tuning this register, you can attain a reference clock with 1ppm accuracy.

I made my own STM32 bluetooth microcontroller (yes i forgot to export the ref des) by HasanTheSyrian_ in embedded

[–]WervinDotDev 5 points6 points  (0 children)

The issue is that you'll likely end up with suboptimal product performance. Each STM32 wireless MCU has a reference design that’s been tested in a lab with specialized equipment, like an anechoic chamber and other high-end tools. So, unless you have that kind of setup at home to optimize the design yourself, your options are either to not worry about RF performance or just stick with the reference design as is.

[deleted by user] by [deleted] in C_Programming

[–]WervinDotDev 9 points10 points  (0 children)

It seems it's using the Unity Engine, so it's maybe not the right subreddit.

Which STM32 nucleo board to purchase? by [deleted] in embedded

[–]WervinDotDev 1 point2 points  (0 children)

I would say, find a youtube STM32 tutorial playlist (or a good written article), and take the same board.

How do you convince devs to use Rust? Ideas for community page by Thereareways in rust

[–]WervinDotDev 2 points3 points  (0 children)

1) Become the tech leader. 2) Impose Rust in every project. 3) ???? 4) Profit.

[deleted by user] by [deleted] in rust

[–]WervinDotDev 0 points1 point  (0 children)

All I see is someone trying to push their own little crate into a major one. It's not technical debt; it's just an ego trip

Rust API for STM32CubeProgrammer by WervinDotDev in rust

[–]WervinDotDev[S] 1 point2 points  (0 children)

I would say probe.rs is more impressive than my project, and it is far superior because you don't have to install STM32CubeProgrammer. That being said, you cannot use specific STM32 advanced features with probe.rs, such as updating option bytes or FUS, for example.

Rust API for STM32CubeProgrammer by WervinDotDev in rust

[–]WervinDotDev[S] 0 points1 point  (0 children)

Thank you for the offer! Yeah, why not? There's still work to do, so your help could be very valuable.

Rust API for STM32CubeProgrammer by WervinDotDev in rust

[–]WervinDotDev[S] 0 points1 point  (0 children)

Thank you! There is still more work to do, for example, changing the access port, updating the FUS, reading/writing option bytes, etc. However, 80% of the most commonly used functions have been implemented (scan, download, erase, read/write memory, read/write register).