Questions tagged [stm32]

The STM32 is the third ARM family by STMicroelectronics. It follows their earlier STR9 family based on the ARM9E core, and STR7 family based on the ARM7TDMI core. The STM32 is based on the ARM Cortex-M family of cores.

Filter by
Sorted by
Tagged with
0
votes
2answers
43 views

Is it a good idea to omit HSE in favour of HSI?

I'm considering using stm32 L412 chip that comes with a 48Mhz HSI with +/- 0.25% accuracy. On the datasheet it says HSI can be used to drive usb fs peripheral. I will also using SPI peripheral. https:/...
0
votes
1answer
46 views

RS485 Receiving Data Corruption

This was my first topic, RS485 Tutorial Issue. I referanced because of the schematics. I solved the problem in above topic, I forgot to pin settings for DE. I have a different problem now. I have two ...
0
votes
2answers
32 views

How do you find the transconductance of an external crystal oscillator?

I am trying to connect an external crystal to my STM32F446RC MCU. I am following this guide to check for the compatibility: https://www.st.com/resource/en/application_note/cd00221665-oscillator-design-...
0
votes
0answers
19 views

How to setup STM32F103C8 encoder triggered output signal

I have a project where I need to read the encoder phase A&B to output the pulse so I can drive a motor, I did some research and saw this picture where it is exactly what I wanted to do: output a ...
0
votes
0answers
20 views

STM32 F334R8 and F103C8T6 Can Bus Connection Problem. HAL_CAN_ERROR_PARAM

I am trying to create a can-bus communication network between F103C8T6 and F334F8 with MCP2551 but I cannot send messages. After 3 times of calling HAL_CAN_AddTxMessage communication fails. I debugged ...
1
vote
0answers
73 views

RS485 Tutorial Issue

I have two device ( ISL83485 + STM32), and they connected on RS485 line. I want to send some UART signal to RS485 line with a tranceiver. I am using ISL83485 tranceiver for this purpose, I am using ...
0
votes
0answers
35 views

Raspberry Pi Connected to CH340 on STM32F103. Broken Pi and USB interface

I have a 3D printer that's running based on a STM32 chip. Included on the mainboard is a CH340 serial to USB converter. I connected this board with to my Raspberry pi 3 which I powered using the 24v ...
0
votes
1answer
26 views

How do I know if I should use VBUS-sensing on STM32?

I have a schematic that looks like this. And I wonder if I need VBUS-sensing on my STM32? Because, I planning to use the +5V from the USB, to power the STM32 and also have communication (D+, D-) with ...
2
votes
1answer
50 views

STM32 external 5V pullup

I have an STM32G031K8 Nucleo development board and was thinking about interfacing it's GPIO with an old BCD-to-Seven-Segment Decoder integrated circuit (SN74LS47N). This is a 5V part... and while I ...
1
vote
1answer
84 views

Help with a simple debounce program on STM32

I'm trying to write a simple debounce program on an STM32F4. Code as follows: Initialization: ...
1
vote
1answer
49 views

EXTI code on STM32F4 doesn't work properly

I've been learning to program in bare-metal and I'm trying to learn how EXTIs work. I wrote a simple program that would turn on an onboard LED on PB7 when triggered by a button on PC13. Code as ...
0
votes
1answer
59 views

Keyboard code won't work as intended

I'm writing a bit of code for a keyboard. I've written this before, but it was inefficient and I figured as I was learning bare metal, I'd rewrite the code again. However, the said code wasn't working,...
3
votes
2answers
101 views

Proximity sensors interfacing with microcontroller

I'm trying to connect this proximity sensor GX-H8A to interface with my microcontroller STM32L4R5. I just want to make sure if my design will work and will not damage the micro. I'm planning to ...
2
votes
1answer
90 views

Rewriting Code in Internal Flash in STM32F439 [closed]

I am using the STM32F439 and looking to find a way to write code in the internal flash. Is there a protected area for quality assurance and security? It's supposed to be used for company's ...
0
votes
1answer
60 views

STM32H7 32-Bit Counter with Reset, C Language Function

Need help a simple a 32-Bit counter with reset. Pseudo code: ...

15 30 50 per page
1
2 3 4 5
225