264 questions
1
vote
0
answers
93
views
understanding debugger output stm32nucleof401re
I am getting the following error (debugger output) when i try to do "ST_LINK: attach to application" in vscode. I have no idea what is going on. Any help is greatly appreciated.
I use WSL ...
0
votes
1
answer
90
views
Error Installing specific library in PlatformIO extension for VSCode
Currently running PlatformIO inside of VsCode on my Arch Linux machine for an embedded project. I'm coming from Arduino/ESP32 dev and my hope is to use my Nucleo-l476rg dev board within the arduino ...
1
vote
0
answers
59
views
Issues interfacing BNO086 with STM32 using CubeIDE (I²C + interrupt/reset)
I am currently trying to read the angles from a BNO086 IMU using an STM32 microcontroller (using CubeIDE), and I use this library : https://www.grozeaion.com/electronics/stm32/stm32-i2c-library-for-...
2
votes
1
answer
98
views
HTU2X sensor doesn't respond to code at all
Did the following steps just to test if my temperature sensor HTU2X is working or not.
Selected my board (Nucleo-64 STM32F411RE) from STM32CubeIDE then enabled I2C1 which in turn enabled pins PB6 (as ...
0
votes
0
answers
29
views
STM Nucleo H563ZI project build is not working at IDE
I created a project using STMCube MX and opened the project in STM IDE. Project was created successfully. I imported the project to IDE but debug button does not do anything (disabled) when I click. ...
0
votes
0
answers
34
views
Nucleo-F303RE cannot connect via USB on PlatformIO
I'm working on a project for uni and I would like to use PlatformIO for the project development, since it seems more practical than the Arduino IDE. However, I keep getting this error when trying to ...
0
votes
1
answer
73
views
LED not turning on on Nucleo-L031K6 with direct GPIO register access (bare-metal)
I am trying to turn on the LD3 LED (connected to PB3) on the NUCLEO-L031K6 board using direct register access without libraries, but it is not working. The LED does not turn on in the wokwi simulator. ...
0
votes
0
answers
114
views
STM32 using ds18b20 in half duplex usart mode with interrupts
I got problem with my project. I have to use ds18b20 via usart in half duplex mode with interrupts. I have some code, which is working, but it is not what I am looking for. Can someone help me with ...
0
votes
1
answer
146
views
I can't switch between the channels of the ADC
I have an ADC with two channels on a Nucleo F401RE: one that reads values from a thermistor (channel 8, rank 1) and another that reads values from a potentiometer (channel 1, rank 2). Pressing the ...
0
votes
2
answers
457
views
Why printf("Hello World") example so hard in STM32Cubeide
well I am using Nucleo Board which is F401RE. Its UART2 has already connected Stlink. Since it is connected to UART2, the print code should have easily worked over USB with the computer, but things ...
1
vote
2
answers
71
views
Selecting External Clock Source for NUCLEO-WB55RG Board [closed]
I am not finding the clock frequency of the oscillator used on the NUCLEO-WB55RG board?
What's the value?
Where can I find it?
How to select it as clock source for the MCU?
Which one should be ...
-1
votes
1
answer
529
views
st-link doesn't detect nucleo stlink
I am using NUCLEO-F446RE on M3 MacBook Pro (with terminal in x86 architecture - so, terminal software is x86). Though the board shows up in USB device tree in "System Information", it can't ...
0
votes
1
answer
314
views
error: '__device_dts_ord_DT_N_ALIAS_stepper' undeclared here (not in a function)
I am writting a code in zephyr RTOS for stm32 nulceo h7a3zi_q, to control 3 stepper motors. Now I am getting the following error while doing west build :
error: '__device_dts_ord_DT_N_ALIAS_stepper' ...
2
votes
2
answers
415
views
STM32: PWM output for dimming a led
I'm new here and I have some questions about generating a PWM signal for dimming an led using STM32 boards.
I'm trying to generate the PWM only by writing the nessasarry bits with bit manipulation. ...
1
vote
0
answers
197
views
Sending and Receiving AT Commands with a NUCLEO-F042K6 to a SIM7600G-H Modem
Let me preface this question with the statement that I am not, by any means, an expert in embedded systems engineering but a humble student trying to learn on the fly for a project that will ...
0
votes
0
answers
40
views
How to handle the uncontrollable CNT value, and how to connect it with CCR?
I am a beginner using the Nucleo-F334R8 with Keil and STM32CubeMX.
I want to read ADC data with DAC. The ADC is from a potentiometer, and I will read the DAC using an oscilloscope. I am using the ...
0
votes
0
answers
91
views
DAC freq LOST and signal in osciloscop is unstable, used STM32 NUCLEOF334R8
sorry if I always ask.
If I have code like the one below with mapping the goal is to produce a 200hz signal on the oscilloscope. But why is the value of 'hasil' always the same as the value of ...
0
votes
0
answers
33
views
STM32 Nucleo-F446RE Encoder Count only printing 0
I am trying to read the output of an encoder using CubeIDE. I have a DC motor with a magnetic encoder attached. When the encoders are measured using a multi-meter the outputs are ranging between 0 to ...
0
votes
0
answers
51
views
STM Nucleo F091RC: Only 4 Out of 8 USART Ports Working with HardwareSerial Library – How to Fix the Remaining Ports?
I'm using Visual Studio Code with PlatformIO and the Arduino framework to work with the STM Nucleo F091RC. I'm encountering an issue where only 4 out of the 8 USART ports are responding when using the ...
0
votes
0
answers
74
views
STM32 F446 Nucleo halts on Polymorphism
I'm wondering what the possible causes of an MCU halting on a polymorphic function call might be.
I have the following code. I can call the member function directly on the non-pointer variable. ...
1
vote
0
answers
175
views
Communication between Raspberry PI 4B and STM32 Nucleo-H723ZG
I need help connecting Raspberry PI 4B and STM32 Nucleo-H723ZG.
The relations look like that:
Raspberry Pi --> STM32H723ZG
----------------------------------------
Pin 21 (GPIO 9) --&...
0
votes
0
answers
120
views
STM32 timer interrupts are never firing
I'm working with an STM32 Nucleo board and trying to get timer interrupts working. I have a breakpoint set in the ISR but it's never being reached. I'm finding it difficult to understand the HAL ...
1
vote
0
answers
90
views
Nucleo-64 not sending UART data
I have a custom pcb and a nucleo, both stm32wl55 chips. I need them to be able to communicate over uart. The PCB is able to send data to the Nucleo, but the nucleo is unable to send data to the pcb. I ...
0
votes
0
answers
74
views
How to debug matrix keyboard scanning?
My problem is nothing is display to my LCD when * is pressed. There are no errors in my code, but when I run it and press the * to enter set mode and update the time and temp, nothing is happening.
...
0
votes
0
answers
43
views
Nothing Displaying on my LCD screen: Nucleo F401RE
Coding in arm keil studio, my code is correct because it is built. But nothing is displaying to my LCD screen and I'm trying to figure out my problem. The only thing the LCD is doing is lighting up ...
0
votes
1
answer
119
views
CPOL setting in STM32 SPI register causes weird pulse in waveform
I am using STM32H75. We have noticed an extra pulse/spike being generated, on the clock line(refer waveform), after the transmission of each word size. I am specifically saying CPOL because this ...
0
votes
0
answers
93
views
STM32 stall after implementing STOP2 mode. Implementation of a interrupt based keyboard in Nucleo-L412KB
I have implemented a serial keyboard with a Nucleo-L412KB board (bare-metal). The switches are arranged in nine rows (output pins driven high) and seven cols (input pins pulled-down, with interrupts ...
1
vote
0
answers
108
views
Build issue in my STM32-NUCLEO project using the Eclipse IDE
I am reading Mastering STM32 by Carmine Noviello and got to the chapter where I am about to work on the hello-nucelo project. I followed everything to the letter and still got the following error (see ...
0
votes
2
answers
252
views
STM32 data transfer via UART
I have one stm32f407G-DISC1 and one NUCLEO-F420ZI development board. I want to collect data from the f407's internal accelerometer and transfer them to the NUCLEO board via UART. I collect and send ...
0
votes
1
answer
43
views
Is there a way to make these printf() statements execute only on the rising edge of a button press?
I'm using the mbed OS with a Nucleo G071RB to send data about a button press event. My issue is that the data is either being send continuously while the button is pressed, or on the press and release ...
0
votes
1
answer
106
views
Why 12 bit ADC output of NUCLEO64-STM32L073RZ fluctuate over 20 steps?
I am using the NUCLEO64 Board STM32L073RZ with current sensor IC ACS725. I am using the following ADC and Timer configuration for STM.
ADC were configured for auto triger using timer2. Clock frequency ...
1
vote
0
answers
280
views
Virtual COM Port with Nucleo F103RB on Windows 11
I followed this tutorial https://medium.com/@pasindusandima/stm32-usb-virtual-com-port-vcp-bc7cb1bd5f5 to set up a USB data transmission from my board to a Virtual COM Port.
After building the project ...
1
vote
0
answers
163
views
NUCLEO F429ZI board - Ethernet over usb - zperf example communication issue
I need help running the zerpf example with USB over ethernet for the STM32 NUCLEO F429ZI board. I could run the example with an ethernet port and ping the connection using iperf-2.0.5b-win32.
However, ...
0
votes
0
answers
84
views
Nucleo STM32L4 non blocking timer within interrupt
I am using an STM32l4 nucleo to integrate my project. My aim is to toggle a pin after an interrupt occurs with a 5 ms delay. Below is the implementation in my code
void EXTI1_IRQHandler(void) {
...
1
vote
0
answers
122
views
FDCAN Loopback mode in stmcubeide
So I was implementing FDCAN External loopbak mode in STM32H7A3ZIT6Q NUCLEO. Clock configuration: HSI is 64MHz and fdcan frq is 50Mhz and I have done the parameter calculations accordingly.The code is ...
0
votes
0
answers
125
views
Can't get SPI working in nucleo stm32f446re and SD card
I am trying to communicate a nucleo stm32f446re with an SD card module.
I am using SPI1, and I have configured PA4 to be CS with GPIO.
This is the code:
port_sd.c
SPI_HandleTypeDef hspi = {
....
0
votes
0
answers
129
views
Servo only moves once
I'm currently working on a school project that uses a servo to bring an arm into a position and then activate a pump with stepper motors. For this I use an STM32 Nucleo L152RE. The problem is that the ...
1
vote
1
answer
1k
views
Difference Between Interrupt Drive vs DMA for STM32 I2C
I looked around the internet but still don't clearly understand the difference between interrupt driven and DMA method when it comes to I2C communication. I am using a Nucleo-L476RG board from STM (...
0
votes
0
answers
576
views
I2C Communication Issue with STM32 Nucleo Board: Unable to Find Slave Address
I am working with the STM32H743ZI2 NUCLEO BOARD. I have configured and programmed the board for general purposes, including GPIO, ADC, PWM, I2C, and SPI.
To validate the I2C part, I created a test ...
1
vote
0
answers
323
views
Is it possible to configure a CAN transceiver with an FDCAN microcontroller?
I am trying to configure a MCP2551 CAN transceiver with my STM32 NUCLEO H7A3ZI-Q which only supports FDCAN. Is it possible to do so? If yes, what are the steps to be followed?
I have seen that FDCAN ...
0
votes
0
answers
639
views
STM32F446RE Nucleo LD1 slow blinking red and I'm not sure why
I'm using the STM32 using the power from a voltage regulator circuit that generates a stable 3.3V onto the board. Before that, when I tried to upload my program from the Arduino IDE to test it, it ...
0
votes
1
answer
315
views
Assertion error while trying to debug program STM32CubeIDE, using NUCLEO board: exit error 3
EDIT: Problem solved. The IDE didn't install properly - apparently some files got corrupted. Works fine after reinstallation.
I just started learning how to program STM32 boards and my first project ...
0
votes
0
answers
127
views
Can't get TransmitReceive to work on STM32 nucleo board
I am using CubeMx and CubeIde with two nucleo-F042K6 boards. I am fairly new to development on STM32 boards.
I am attempting to implement SPI communciation between the two boards. I use a logic ...
2
votes
1
answer
635
views
Why does the HAL slow down the UART transmission?
I am using the Nucleo board STML073RZ to sample a sine wave of frequency 1 kHz. My STM32CubeIDE configuration is given below.
System Clock: HSE 8 MHz
Timer2
Prescaler: 8-1,
ARR: 100-1,
Timer Over ...
1
vote
1
answer
472
views
Came up with an "Unable to stat debugging" error when Debug program for STM32 NUCLEOF103RB
I am trying to use STM32 VSC extension plugin on VSCode for a better coding experience, but error occored when I am trying to debugging.
VSCode suggested that build task finish successfully in the ...
2
votes
1
answer
263
views
Smooth movement of Pick and drop robot with stepper motor
I am building a pick and drop robot which has 3 stepper motors. I am using NUCLEO-F746ZG microcontroller and C++ programming to control it.
Now the problem is the arm moves with jerks in start and end ...
-1
votes
1
answer
90
views
Microcontroller is not sending data over serial line, but does appear to be collecting it
Is there something wrong with my code/settings? I tried using putty's terminal to view the output; however, even though I configured it correctly with the baud settings, etc., no data is appearing. I ...
0
votes
0
answers
888
views
I am unable to transmit a CAN FD on STM32 Nucleo boards
I am attempting to transmit data over the Tx Pin of the Nucleo-G431RB. I have not been able to measure any signals coming over this pin with an oscilloscope. I know the problem is not the oscilloscope,...
1
vote
0
answers
198
views
STM32F411RE: I want to turn on the LED in open-drain mode, but the LED doesn't turn on
I want to turn on the LED on the microcontroller with open-drain mode, but the LED doesn't turn on.
So far I have this, I don't know what my mistake is. I am working with STM32F411RE in STMCubeIDE.
#...
0
votes
1
answer
167
views
Code is not working on different STM Microcontrollers
I've been testing my code on a Nucleo development board (is working perfecting fine). Once I had all the functionality I needed, I uploaded my code to a different microcontroller but now the code(...