STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Endian problem on STM32 reading Flash

I am  reading 64bit values from flash uint64_t DATA_read = *(__IO uint64_t *)0x0801E010;Where THE FLASH ADDERSS 0x0801E010 contains 5A5A5A5A 00440040DATA_read value afer this read is 0x400044005a5a5a5aif I read uint64_t DATA_read = *(__IO uint64_t *)...

PGood.1 by Associate II
  • 1408 Views
  • 4 replies
  • 0 kudos

How to get data from a fixed address after startup?

I want to take out the data I need from a certain address after startup, I created an array inside tf-a ( char array [0x200] = {}) , and I read the address of the array printf("%p", (void*) &array), which seems to never be repeated after many...

0693W00000BZbG5QAL.png
DDing.1 by Associate II
  • 780 Views
  • 2 replies
  • 0 kudos

F042 ADC DMA malfunction:?? I am using a Nucleo_F042k board but will target a F042F MCU later. I'm using DMA to set up 2 ADC channels + the 3 internal ADC values. Results : 1: 2146: 2: 1668: 3: 0: 4: 0: 5: 0. Only the first is verifiable.

I have probably missed something simple. I use CubeMx to Configure the A2D channels hadc.Instance = ADC1; hadc.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1; hadc.Init.Resolution = ADC_RESOLUTION_12B; hadc.Init.DataAlign = ADC_DATAALIGN_RIGHT; ...

DIngr.1 by Associate II
  • 697 Views
  • 1 replies
  • 0 kudos

about dominant error

Dear Guys I get the "bit dominant error" when programming for can with STM32F302. even i set CAN_MODE_SILENT_LOOPBACK mode , also get this error after exec the statement  "SET_BIT(hcan->Instance->sTxMailBox[transmitmailbox].TIR, CAN_TI0R_TXRQ);" a...

0693W00000BZZg1QAH.png 0693W00000BZZfhQAH.png
kevin xu by Associate II
  • 897 Views
  • 2 replies
  • 0 kudos

Wrong data through SPI on STM32F7

Hello dear community. I'd tried so long so i decided to ask for you.I need to send some data pack from STM32F7(master) to STM32F1.I use STM32CubeIDE platform. My code is below.Problem is that in receiving back data by master. First byte has always co...

DVovk.1 by Associate II
  • 7626 Views
  • 14 replies
  • 0 kudos

HardFault went reading flash

This routeen fails on the lineFlash_End_Address() at flash_page.c:87 0x80004e6where line 87 is *DATA_64 = *(__IO uint64_t *)StartPageAddress;_______________________________________________________________________________________uint32_t Flash_End_Add...

PGood.1 by Associate II
  • 432 Views
  • 1 replies
  • 0 kudos