Questions tagged [stm32h743]

A variant of the STM32H7 microcontroller line with a Cortex-M7 core at up to 480 MHz.

24 questions
1
vote
0 answers

STM32 I2C HAL_I2C_IsDeviceReady() infinite loop problem

I use an STM32H743ZIT6 to communicate with an LMP92066 temperature sensor. When I call HAL_I2C_IsDeviceReady() method to find Slave Address, it goes into an infinite while loop in the method and does not return anything. HAL_I2C_IsDeviceReady()…
1
vote
1 answer

Optimize a weighted moving average

Environment : STM32H7 and GCC Working with a flow of data : 1 sample received from SPI every 250 us I do a "triangle" weighted moving average with 256 samples, like this but middle sample is weighted 1 and it forms a triangle around it My samples…
GabrielT
  • 397
  • 6
  • 17
1
vote
1 answer

STM32 - Preserve a section of FLASH memory

Following in the directions of this post, I am able to reserve and write to (and read back) from a section of FLASH dedicated to calibration data. Problem: However, when I reprogram the device, the IDE wipes the whole memory clean before programming…
1
vote
1 answer

Oryx CycloneTCP WebSocket Support for HTTP Server

I've started to evaluate Oryx Embedded CycloneTCP library, and able to run HTTP server / DHCP client with CubeMX config tools and STM32CubeIDE for custom STM32H7 board. However, I did not get how to configure WebSocket support for HTTP Server. So I…
ierturk
  • 452
  • 6
  • 22
1
vote
1 answer

How do I find the base address of "NOR Flash/PSRAM/SRAM/ROM/LCD 1" on a STM32H743?

With the STM32F427, the generated code included a couple of different #defines which mapped to the address to which I needed to write: e.g. #define FMC_BANK3_BASE ((uint32_t)(0x60000000 | 0x08000000)) Where can I find similar #defines in a CubeMX…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

STM32 - What is sampling frequency of ADC

I use ADC3 on STM32H7, I need to know (and set) what is sampling frequency. I use 3 channels in 16 bits. What I tried to calculate? From this image I should have Fadc_ker_ck = 30 MHz, becase my CKMODE = 0b11, and adc_sclk = 480/2 = 240 MHz (HPRE=2)…
WITC
  • 127
  • 9
0
votes
0 answers

STM32H7 Threadx USB CDC fails after a while - semaphore not returned, device sends CANCEL

I have a nucleo h743 that bridges between several G4 boards and a PC. connection between the G4 and the H7 is CAN-FD. connection to the PC is USB-CDC. after a while the connection fails - the sw hangs waiting for the semaphore in…
0
votes
1 answer

Configuring IEEE 1588 PTPV2 with STM32 and ksz8463

I want to set up ptp (precision time protocol) now and HSR protocol in future. So I have a STM32H743ZIT6 and a KSZ8463FRL switch. The switch has 3 port. According to datasheet port 1 and port 2 can be used as TC (Transparent Clock: P2P/E2E) and port…
0
votes
0 answers

Why is IPSR in hardfault in main

Working with STM32H743 (cortex-m7 CPU)My OS wrapper crashes at init because it checks if IPSR value is 0 (ST CMSIS V2 with FreeRTOS) So I added this int main(void) { volatile uint32_t testvar1; testvar1 = __get_IPSR(); I read 3 and looking…
GabrielT
  • 397
  • 6
  • 17
0
votes
1 answer

Rust/VSCode Debugging Does not Display Peripheral Registers

I am failing at getting the peripheral registers to show up on the vscode debugging screen. Using a Nucleo 144 board, I downloaded the appropriate STM32H743.svd file and put in the path in launch.json as "svdFile": "${workspaceRoot}/STM32H743.svd"…
jhk999
  • 45
  • 6
0
votes
0 answers

How to select a specific stm32 board to debug on VisualStudioCode

I'm debugging my nucleo-h743zi2 using visual studio code on Linux. I want to connect different boards while debugging just one of them. To do so, I wrote this launch.json file { // Usare IntelliSense per informazioni sui possibili attributi. …
0
votes
2 answers

STM32H743VI jumps randomly in a nonflashable state

we are using a STM32H743VIT6 on a custom board with a JLink debugger. Out of the blue the processor jumps in a state where it isn't possible to flash the ECU anymore. The board is running but nether JMem nor our IDE (uVision) are able to access or…
Yamira
  • 15
  • 7
0
votes
0 answers

How to prevent crash on STM32H7 when swapping flash banks

I am using an STM32H753 which has two flash banks. For my firmware update I use the bank swapping feature so the mcu boots to the correct version. When I swap the banks, the microcontroller crashes. No hardfault or any other exception. The debugger…
Geoxion
  • 448
  • 1
  • 4
  • 14
0
votes
1 answer

STM32H723- DMA DAC only works with const only?

In a STM32G4, I was able to setup the DAC DMA such that I could use a regular variable (ie. a uint8_t array). However, when I tried porting my code over to an H723, the DAC DMA would not work unless it's with a constant variable (ie. a const uint8_t…
Rudy Montoya
  • 85
  • 1
  • 7
0
votes
0 answers

The Clock for SPI on Nucleo-H743Zi isn't working properly

I am new to working with STM32 Microcontrollers. When I analyze the SPI Communication I get the clock signal, which you can see in pic 1 below. The clock is jumping between a frequenzy of 1.333 MhZ and 2 Mhz. I also used STM32DUINO with a basic…
kanduko
  • 1
  • 2
1
2