All Questions
308 questions
2
votes
1
answer
216
views
Creating specific flash memory area in STM32G0 microcontroller
I am trying to create a 2K flash memory region in which user defined const uint32_t will be stored. The project is built in Keil uVision. The microcontroller has 64K of flash memory. The idea is to ...
0
votes
0
answers
58
views
Getting HTTP to work on GSM SIM7080
I am trying to get GSM sim7080 to connect to http server.
They have application note for http server and obviously that example works.
Now what I am trying to do is simply read the .txt file while ...
0
votes
1
answer
96
views
Stop Mode 2 (deep sleep) doesn't work with STM32l053R8T6 MCU
I am working with my custom PCB with STM32L053R8T6. My code works just fine when I run it in debug without any stop mode (deep sleep). It enters to the RTC and button interrupts perfectly. However, ...
1
vote
0
answers
73
views
PWMs from microcontroller are resetting
I have been designing an SMPS where the STM32F334R8t6 microcontroller provides the full bridge control signals. The microcontroller board uses a 5 V and 3 V regulator to supply the MCU and the CAN ...
0
votes
1
answer
62
views
Problem initializing PLL as clock NUCLEO-H563ZI
I am trying to initialize the clock with PLL as system clock.
The code I used is the following
...
0
votes
0
answers
143
views
Getting PSSI to work via Rust on STM32
This will be more of a wider scoped question, as there is a lot that I am trying to understand here.
Context: I am attempting to communicate with the 16bit-parallel data interface of a MAX11046 ADC ...
1
vote
0
answers
363
views
Ethernet signal from STM32H7 to LAN8742A good, link good, receive good, no transmit
I am working with a custom board based on the NUCLEO STM32H745. The STM32H745 will receive a broadcast ping and ARP. It will try to respond to the ARP and disregard the broadcast ping. I can trace the ...
0
votes
0
answers
77
views
Usart2 not writing to data register
I'm trying to program the usart protocol on an stm32f4 nucleo board. When I upload the code on the board nothing happens (nothing gets transmitted to the console via putty). Upon further investigation,...
0
votes
1
answer
70
views
STM32CubeIDE crashes - Problem: EXC_BAD_ACCESS (SIGABRT)
I'm using MacOS and I'm trying to build the default code on main.c on the STM32CubeIDE which is below:
...
0
votes
1
answer
220
views
STM32 - Implementing UART to USB convertor
Considering STM32 Nucleo Boards, implementing a communication by serial port with a computer is a matter of using UART on the Nucleo Board and connecting it to the computer via USB, where you emulate ...
0
votes
0
answers
68
views
Facing runtime issue on STM32L452
I was working on a project with STM32L452RET6 using baremetal programming. I use Uart1, Uart2, I2C, Timer6, Timer2, RTC and GPIOs for my project. Uart2, RTC and Timer 6 works in interrupt with ...
0
votes
2
answers
147
views
In STM32F4 Complementary PWM, Can we set %0 dutycycle both CH1 and CH1N
My question is about complementary PWM. Can we get %0 dutycycle at CH1 and CH1N at the same time. Datasheet of MCU: https://www.st.com/resource/en/reference_manual/rm0383-stm32f411xce-advanced-...
0
votes
1
answer
175
views
How to program an STM32 MCU on a custom PCB
I am designing a PCB using an STM32 MCU to control a motor. My main concern is being able to use STM32CUBE IDE or the Arduino IDE to program the board. I don't want to spend a lot of money on a JTAG ...
0
votes
0
answers
126
views
Unable to make ULPI works with STM32F446
I am using a USB3300 chip as an external HS 480Mbit/s USB PHY with STM32F446 MCU. Using CubeMX to generate code and add USB CDC Middleware. As I connect the USB Cable from the PC to the USB3300 chip ...
8
votes
6
answers
3k
views
STM32 for loop slows down code too much
I am using an STM32 STM32F103C8T6 running at 48 MHz using ADC DMA and I find that using a for loop for manipulating arrays is much slower than multiple lines of ...
0
votes
0
answers
307
views
Smart Card (SIM Card), connect to stm32 via USART
After get ATR and send PTS, I tried send APDU, but response always the same as APDU which has been sent.
I tried to change the frequency for USART (clock) and baud rate, after I tried to change PTS ...
1
vote
2
answers
103
views
What questions should I be asking in order to debug this I2C?
I'm currently working on a bare metal embedded rust project and I'm trying to get the I2C peripheral on the STM32 Nucleo board to work. I've managed to start the peripheral and even get the master to ...
0
votes
1
answer
298
views
Why would a UART only transmit the first character and then stop?
For some context I'm using a STM32H7A3 chip: reference manual
With this UART and pin configuration:
...
0
votes
4
answers
625
views
Where should the interrupt vector table be placed in memory on STM32H7A3RGT6 chips?
According to the STM32H7 programming manual "On system reset, the vector table is at address 0x00000000."
But at the same time the STM32H7A3 reference manual says in it's memory map ...
0
votes
0
answers
45
views
STM32F302xx Flash Location
recently I tried to flash my STM32F302CCT7 with a ST-link, openOCD, and gdb for arm. I am using the rust toolchain which requires that the ROM and RAM locations to be specified in a memory.x file when ...
1
vote
1
answer
219
views
Power Supply for STM32G071CxU microcontroller (VDD/VDDA vs VREF+ for analog peripherals)
I am currently working on a STM32G071C8U7 microcontroller schematic and have some questions regarding the decoupling and general connectivity of the power supply pins.
First I am presented with this ...
1
vote
0
answers
217
views
How can I connect multiple I2S devices to STM32H7?
I am building an audio application using STM32H7 to communicate with two 32 bits SRC (Sample Rate Converters), two 24 bits CODECs, one 32 bits ADC and two 24 bits DAC.
I want to receive audio data ...
1
vote
0
answers
259
views
How to export values to TXT file in STM32CubeIDE
I have a code for ADC: (STM32F407)
...
0
votes
3
answers
172
views
STM32 communication [closed]
I am using two stm32H7A3ZI-Q.
Both boards are used to generate data that is transmitted and received (IT) via UART to each other.
This data is used to as a variable to calculate a set of equations in ...
0
votes
1
answer
114
views
STM32F407 ADC with timer trigger not working for some reason
For STM32F407 discovery board, I tried to establish ADC for measuring voltage at a point, using timer to trigger the ADC, every clock cycle.
Somehow I have missed something, because the timer clock is ...
2
votes
1
answer
919
views
STM32 - HAL_UART_Receive first byte is always zero
I am implementing communication between Nucleo-F072RB board and an evaluation board with TI BQ75614 BMS IC.
I have succeeded to communicate with the IC using 1 Mbps UART interface, successfully ...
1
vote
0
answers
64
views
High current consumption in STOP MODE of STM32L496ZG MCU on an STM32-Nucleo board (Nucleo-144, MB1312)
I'm using Nordic's Power Profiler Kit II to measure current of STM32L496ZG MCU on STM32 Nucleo board. I've tried to measure current using JP5 (IDD) as mentioned in the datasheet but current ...
1
vote
0
answers
160
views
How to debug a STM32 MCU Discovery board at higher rates?
I have a STM32H735G-DK Discovery board, and can debug it with gdb (or vscode and cortex-debug). However, it is very slow - hitting s in gdb can take several ...
1
vote
0
answers
113
views
How to receive digital audio via polling the SAI?
I'm trying to receive digital audio on an STM32 by polling the SAI, via HAL_SAI_Receive. Eventually I will switch to DMA; my goal now, though, is to simply be able ...
0
votes
4
answers
2k
views
Stm32 variable types
Can I use variable types such as:
float x;
int x;
or should I use
int16_t x;
int32_t x;
I am using STM32F401RE.
And how to decide whether to use int16_t or int32_t or int/float.
1
vote
1
answer
207
views
Input capture and timers
Microcontroller: STM32F401RE
Doing input capture on TIM1's channel 1,2,3,4.
ARR register value is 65536.
The clock is 8Mhz.
The 4 input capture channels are connected to 4 microphones. As soon as a ...
1
vote
0
answers
102
views
Intermittently working hardware/software breakpoints with STM32H7
Problem: I have experienced issues with hardware/software breakpoints not being hit during debugging sessions in STM32CubeIDE with the STM32H743. When breakpoints are set or disabled during a ...
0
votes
1
answer
89
views
What is expected error rate and drop rate on ST-Link VCP USART?
What is expected error rate and drop rate on ST-Link VCP USART?
On the Nucleo STM32F446RE, my code reads the USART VCP (of ST-Link) and echoes it back. It uses DMA, FreeRTOS, and FreeRTOS queues (...
0
votes
1
answer
149
views
How to debug a failing USART?
I have simple code which writes to the USART on a Nucleo board that is connected to ST-Link, and appears on my workstation via VCP over USB.
I'm trying now to port it to a STM32H735G-DK Discovery but ...
1
vote
2
answers
423
views
How is the LCD on STM32H735G-DK connected, and how can I turn it off?
The STM32H735G-DK Discovery board comes with an LCD. I wrote from scratch (no HAL) a simple blinky code, and it works well. However, the LCD is on (and backlit) by default, without any code from me ...
1
vote
0
answers
90
views
How can I use normal CAN with CAN FD?
I'm working with i.MX6ULL not supporting CAN FD but other CAN nodes supports. How can I use normal CAN on this bus without making any hardware changes?
I need to fix CAN to CAN FD communication ...
0
votes
1
answer
130
views
Tim5 initialization unable to trigger callback function on stm32
I've been having a lot of trouble lately trying to get ADC3 to run on my STM32F746g-discovery board, so I started from scratch in order to try to pinpoint a problem. Unfortunately, now timer5 isn't ...
0
votes
1
answer
131
views
STM32F030 I2C: Avoiding NACK
I am trying to port my I2C code from STM32F103 to STM32F030. Everything works fine with writes (writes to an eeprom), but when I try to read from an EEPROM (first write transmission with memory ...
1
vote
0
answers
170
views
Monitoring VREF+ buffer output in STM32L552
I am working with the STM32L552 microcontroller in a critical application where a portion of the external circuit relies heavily on the 2.5 V VREF+. The stability of this reference voltage is ...
0
votes
1
answer
264
views
embedded system STM32F4 ADC sampling rate
I am new to embedded systems. I done a bit of analogue circuit design but nothing connecting analogue circuits to a STM32 via ADC. I am using STM32F4 microcontroller and had couple of questions.
I ...
2
votes
1
answer
2k
views
Booting modes of STM32 microcontrollers
I am creating a custom board and using STM32F303 chip. I have looked into the datasheet and there are 3 boot modes and according to the datasheet the bootloader resides in the ROM memory.
I got ...
1
vote
1
answer
417
views
Incorrect results when cycle counting on STM32 using DWT->CYCCNT
I'm trying to determine the number of clock cycles it takes to run some code I've written for an STM32, because I'm curious to see just how much slower it is if I use floating point numbers. This is ...
0
votes
1
answer
164
views
How does data reach peripherals in STM32H7xx?
I'm trying to understand bus interconnection matrix in stm32h7xx. Here is a capture of the H753's one:
In particular, I'm wondering how a data buffer located in DTCM would reach the SPI1's tx ...
3
votes
0
answers
285
views
Regenerative braking on BLDC motor
I am trying to design regen Braking for BLDC motor controller I used three switch topologies for regenerative braking.
In three switch method, high-side MOSFET S1, S3, and S5 are kept OFF and low-...
0
votes
0
answers
52
views
interface SD Card using SPI communication in stm32f103c8 [duplicate]
I need to interface SD Card using SPI communication in stm32f103c8. First i to store the temprature value in every one seconds in sd card. It work well after that i try to store temperature value in ...
0
votes
1
answer
356
views
Adafruit BNO055 orientation sensor
My sensor is a BNO055 Absolute Orientation Sensor.
I wanted to see if the sensor is ready or not. I tried to run it using different libraries, but it never worked. I couldn't understand why. Then I ...
1
vote
0
answers
184
views
STM32 Strange behavior of ADCs in alternate trigger mode
I am using a STM32H723ZG board for a project. In this project I must sample the signal coming from an image sensor that sends the pixel values as pulses with analog amplitudes. This sensor also ...
0
votes
0
answers
199
views
Phase current measurement in a BLDCmotor using STM32
I need to know about the AC current measurement for the BLDC motor.
I tried to measure phase current for only one phase for two commutation states. I use an STM32F103C8 controller for controlling the ...
1
vote
1
answer
52
views
Weird output when implementing matlab firpm/firls FIR filter in hardware
I suspect it might be something with the way I've implemented by FIR filter in code. The mainloop looks like this
...
1
vote
1
answer
1k
views
STM32 maximum ADC frequency
I am using a STM32H723ZG board for a project and I must read analog signals so I am using one 16-bit ADC. Based on the datasheet of this microcontroller serie, the maximum ADC clock frequency is 50 ...