171 questions
1
vote
1
answer
99
views
Cannot get stm32 usb microphone transfer working
I am converting default usb middleware speaker example into microphone input. For now i am transmitting dummy data, not actual microphone data. I have replaced descriptor and it seems to be correctly ...
2
votes
0
answers
93
views
Can't get serial output from STM3246G-DISCO
I've recently begun programming using STM32 chips, I'm pretty new to it and have been working trying to understand as much of the basics as I can. I've been trying to read out a very simple UART ...
0
votes
0
answers
77
views
stm32f769 discovery kit printf and ITM_SendChar
I am using a stm32F769-Disco development kit with stm32cubeide and touchgfx.
I have made an project from touchgfx and opened it from subeide.
The project is loading normally and i have overwritten the ...
3
votes
0
answers
105
views
Zephyr serial printing garbage text on terminal emulator
I have an issue with printing basic things with serial with zephyr project. I have the following prj.conf
CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
and ...
2
votes
0
answers
96
views
STM32 editing linker script
In the STM32F767ZI reference manual, the memory organization is divided into:
FLASH, SRAM1, SRAM2, ITCM and DTCM, but in the linker script, the project is either stored into FLASH or RAM. I want to ...
-1
votes
1
answer
154
views
How to update the section in ELF file, using a binary file [closed]
I am using stm32cubeIDE and trying to store crc at the end of binary for update purposes.I am using this method because otherwise the debug will not work and i have to mark the .crc region as NOLOAD ...
0
votes
1
answer
66
views
micropython stm32F722ze, ValueError: Pin(PC13) doesn't exist
I am using stm32f722ze and trying to write a program to control led using push button but it always says value error. With the help of user manual figure out the Arduino mapping for PC0 but cannot ...
0
votes
1
answer
87
views
Can't set frequency more than 48MHz on STM32F767ZI
I configure the RCC for 48 MHz as follows:
rcc.cr.modify(|_, w| w.hseon().on());
while rcc.cr.read().hserdy().is_not_ready() {}
println!("{:b}", rcc.cr.read().bits());
...
0
votes
0
answers
93
views
How to Properly Handle DMA Triggers for Sine Wave Generation in Center-Aligned Mode 2 PWM on STM32?
I'm generating a sine wave using an H-bridge with an STM32 microcontroller, utilizing center-aligned mode 2 PWM generation. In center-aligned mode 2, the DMA triggers twice per PWM cycle: once during ...
0
votes
1
answer
89
views
Undetermined Nonvolatile configuration register of MT25QL01GBBB NOR Flash Memory
SOLUTION HERE
ISSUE:
Nonvolatile Configuration Register was set to an undetermined state due to a logical error in the code after sending a write nonvolatile configuration register command.
SOLUTION:
...
0
votes
0
answers
72
views
Eclipse gave me an error saying it couldn't find the file.. How can I resolve it?
18:08:58 **** Incremental Build of configuration Release for project LED ****
make all
Building file: ../src/lib/STM32F7xx_HAL_Driver/Src/Legacy/stm32f7xx_hal_can.c
Invoking: GNU Arm Cross C Compiler
...
0
votes
1
answer
41
views
Connect to HidDevice with UsbDevice class in UWP app
I'm using the stm32f746g-discovery board with the Keil USB HID example. I can connect to the USB HID device with a UWP app using the HidDevice class.
Is it also possible to use the UsbDevice class to ...
0
votes
0
answers
217
views
Receiving corrupted data while sending large data from STM32 to PC over UART
My project is very simple, use a microcontroller to read some analog signal for a certain period then send the data to PC. I am using STM32F756 nucleo board. I have configured one ADC in DMA mode to ...
2
votes
0
answers
112
views
SPI with Registers: Shifting Issues in Data transferring
I want to transfer data between NVIDIA Jetson Nano (Master) and STM32F756ZG (Slave) using SPI. On the master side, I am using spidev python library. On the slave side, I am coding using registers (...
0
votes
0
answers
133
views
problems with usb virtual com port stm32f769 discovery
I am trying to initialise VCP through usb on n stm32f769 diso.
The following function seems happy enough. But nothing happens. ioreg -p IOUSB doesn't detect anything
Where do I look next?
I am using ...
2
votes
2
answers
794
views
write to SDRAM in STM32f7xxx
I'm trying to write data to SDRAM on an STM32f746ZG board in STM32CubeIde.
here is the code:
/* Enable the CPU Cache */
CPU_CACHE_Enable();
...
SDRAM_Timing.LoadToActiveDelay = 2; //TMRD
...
1
vote
1
answer
1k
views
MQTT on STM32CubeIDE (hardware STM32F756ZGT6 nucleo-144)
I am very new to stm32cubeIDE and am trying to create a mqtt connection with my stm, first with my computer to try, then it will be used with a raspberry pi. I already have a state machine running on ...
2
votes
1
answer
2k
views
Data corruption issue with DMA operations on ARM Cortex-M7 (STM32F7) MCU
I'm using an ARM Cortex-M7 microcontroller (specifically the STM32F767ZG) to communicate with external devices using 4 USARTs (configured as asynchronous transmitters/receivers, and using DMA to ...
0
votes
2
answers
479
views
STM32 SPI slave dummy cycles issue
I am using a STM32F767zi nucleo board as SPI full duplex slave. The dummy cycles of the slave device is varies in accordance with the master frequency change. How can I handle the dummy cycles ...
0
votes
0
answers
166
views
STM32F7 problem with FreeRTOS and Cryptographic Library
Im using STM32F723 and using the Cryptographic Library (https://wiki.stmicroelectronics.cn/stm32mcu/wiki/Security:Getting_started_with_the_Cryptographic_Library).
When testing basic cmox_aead_encrypt ...
0
votes
1
answer
211
views
Code not being flashed to STM32F746G-Discovery board using STM32CubeIDE
I am currently facing an issue while programming the STM32F746G-Discovery board using STM32CubeIDE. I have created a project using the default-generated settings and made a small modification in the ...
0
votes
0
answers
625
views
STM32-External_Flash_Memory
I am currently working with the STM32F746G-Disco development board and a 7-inch capacitive touch LCD. The size of the generated hex file exceeds the capacity of the internal flash memory. As a ...
1
vote
0
answers
3k
views
Using the LSE clock of an STM32
I have been testing for weeks a circuit with a STM32G030F6P6TR, which has no high speed clock, as it is a TSSOP20 encapsulation.
Only an LSE or clock bypass can be configured. I have tried with ...
1
vote
0
answers
1k
views
STM32F723 USB_CDC with DMA problems
STM32F723 USB_CDC with DMA problems
Hello,
I'm currently working on a project using the STM32F723 Discovery kit and USB as a Virtual Com Port (VCP) in CDC mode. I'm encountering an issue related to ...
2
votes
0
answers
751
views
Embedded Rust & Embassy | Analog measurement - ADC & DMA | STM32F7
My setup:
The signal is connected to the analog input of the STM32F767.
ADC sampling rate should be at least 192kHz because input signal frequency is between 1Hz and 40kHz.
Also STM32 connected to ...
0
votes
0
answers
293
views
Rust stm32f7 | ADC & DMA at 192 kHz sample rate
I’m trying to implement ADC conversion from gpio analog input at the sample rate of 192 kHz. Then I want to send the array of samples over tcp to the client.
My question:
How to implement ADC ...
0
votes
1
answer
436
views
HAL_Delay is not working properly with STM32F746-DISCO
When HAL_Delay function is called, the processor (STM32F746NG-DISCO) is stuck in the HAL_delay function. I tried changing the HAL_Delay() function for debugging as below
__weak void HAL_Delay(uint32_t ...
1
vote
0
answers
649
views
STM32 BSP Camera driver not writing to Camera Frame Buffer, ov2640 image sensor and 32F746G board
I am working on a university project to build a small IOT camera. I am using the 32F746GDISCOVERY board with the STM32F746NG MCU along with the ov2460 image sensor from WaveShare, and the B-CAMS-OMV ...
0
votes
0
answers
72
views
GCC Compiler, macro test causes compiler error
When setting up the GPIO on my STM32 Processor I want to check and make sure two different GPIOs are on the same port.
So, I added this macro:
#if (USART2_TX_GPIO_Port != USART2_RX_GPIO_Port)
#error &...
0
votes
0
answers
456
views
Hard Fault when dynamic memory allocaion in stm32f7
I am trying to implement a system so that it retrieves sound and extracts the mfcc of it. I'd like to implement my own mfcc function because librosa library wasn't implemented in C and other ...
0
votes
0
answers
438
views
STM32 programing failed
I have troubles with programing board with stm32f723 made by me. I am attaching pictures of the programing pins connections. As I connect the st-link of the nucle-l152 board to my board error appears ...
0
votes
2
answers
608
views
USART Configuration with Registers doesn't Work
I am trying to implement a driver for USART for my board(F746G-Disco). For now, I implement:
#include "UART_DRIVER.h"
#include "stm32f746xx.h"
#include "stm32f7xx_hal.h"
#...
0
votes
0
answers
286
views
Program is Unable to exit from interrupt function
I am trying to retrieve sound from MEMS microphones of my board, STM32F746G-Discovery. I am trying to use BSP Library. My board has wm8994 audio codec, and its schematic is here.
I wrote a code which ...
1
vote
0
answers
574
views
How to Use BSP Library in a Project?
I'd like to create a program by which I can record and listen sound by using my board, STM32F746G-Disco. I'd like to use BSP library, however, I have some questions.
When I looked at the ...
0
votes
1
answer
259
views
STM32 || Unable to initialise interrupts || Nucleo - F746ZG
I am new to the world of STM32 MCU's so please bear with me.
I am following a tutorial on Udemy and trying to write a GPIO interrupt code from scratch. I have done all register configurations and ...
0
votes
0
answers
1k
views
STM32 CDC_Receive_FS callback never called
I am trying to use the USB Device library on STM32Cube but when I execute using the debugger or that I try to turn an LED on in CDC_Receive_FS, it never reaches that point.
Here is how I set up ...
2
votes
1
answer
1k
views
STM32F7, Bare Metal C, QSPI Indirect Mode Hangs or Writes Same Gibberish
Win 10, STM32CubeIDE 1.8.0
STM32F746 Discovery board
MCU: STM32F746 (Datasheet, Reference Manual, Errata)
Flash: MT25QL128ABA1EW9-0SIT (Datasheet)
Equipment: Low end oscilloscope, low end logic ...
0
votes
1
answer
92
views
How many Cortex-M7 CPU cycles can it take to initialize big structure with zeros?
I have big structure with few arrays. For simplicity let's consider structure like this:
typedef struct {
uint32_t data_count;
uint8_t data[512];
uint32_t error_count;
uint8_t errors[...
1
vote
0
answers
729
views
How to debug IACCVIOL where all registers have been cleared?
I'm developing a complex and intricate app for STM32F746. I stumbled upon the following hard fault and I'm not sure how to find the origin of the problem :
16:05:51.832 HardFault : ExceptionFrame { r0:...
0
votes
1
answer
164
views
MicroPython on STM32F746 controller
I have a PCB which contain an STM32F746 controller , I want to run micropython on that controller for that reason I have compiled the code of STM32F7 DISC board from that repository (https://github....
0
votes
0
answers
334
views
is it possible to send big array over UDP?
i want to send large array (array[1600]) with stm32f767 and lan8720a with udp.
when my array biger than 1319 byte the mcu can not send(i don't receive anything with my terminal software(...
0
votes
0
answers
242
views
STM32F767zIT6 to PC communication via a USB cable
I need to connect a custom board having STM32F767zIT6 as the MCU to a window PC through a USB. The aim of the board is to filter CAN-BUS messages. The existing solution uses a CANBUS-USB adapter ...
1
vote
2
answers
238
views
Generic function typedef in C - how to get rid of initialization warning?
I'm experimenting with generic-like code and I have a function like this (a lot of not relevant code removed):
typedef uint8_t (*struct_converter_t)(void *, char *);
void convert_struct(
...
0
votes
0
answers
226
views
Can run LTDC by circular buffer for easy graph drawing on STM32F7
In stm32f746G-Discovery, I want to draw moving graph like drawing ADC output on real time.
Is it possible to make start address of LTDC buffer shifting in every single new ADC data to having graph ...
2
votes
2
answers
7k
views
Multiple definitions error in STM32CubeIDE?
I have been following along with this documentation for interfacing a digital camera module with an stm32f746g-disco board:
Link to documentation
The part I am following specifically is pgs 60-74.
...
0
votes
0
answers
1k
views
Problems with TouchGFX, STM32F746G-discovery board and custom touchscreen
I encountered a problem while modifiying the STM32F746G-Discovery board.
I modified it like this:
instead of the 4.3" display, I soldered a 5" display (24 bit RGB--> RGB888, 800x480) to ...
0
votes
3
answers
3k
views
SCB_EnableDCache(); fails during run time in stm32
I am using NUCLEO-H755ZI-Q board, Which has two cores cortex m4 and cortex m7, To enable the lwip I have to enable CPU ICache and CPU DCache
But during runtime the program exits through ...
0
votes
0
answers
294
views
How to cross compile libbson for STM32-F767ZI ARM processor
Hello I'm trying to cross-compile libbson to include it as lib to STM32CubeIDE to use it on STM32 ARM-core processor, but after trying to specify toolchain with command:
cmake -DENABLE_MONGOC=OFF -...
0
votes
1
answer
574
views
GPIO Output Register Bit value not updating
I just started learning about embedded systems and I'm having a bit of trouble with correctly setting up the led pin on my stm32f746ng-discovery board. I am not sure if I am not typecasting correctly ...
0
votes
1
answer
427
views
STM32F767ZI dual ADC mode triggered by timer
I'am working on a current controller to control the current in two coils simultaneously.
Therefor I want to measure two analog pins simultaneously and synchronised w.r.t. the PWM timer.
For PWM, I use ...