STM32 MCUs Security

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

How to calc CRC16 for Modbus?

My controller is STM32L462. I need to compute CRC16 for Modbus application. There is CRC initialization function:void MX_CRC_Init_CRC16(void) { hcrc.Instance = CRC; hcrc.Init.DefaultPolynomialUse = DEFAULT_POLYNOMIAL_DISABLE; hcrc.Init.DefaultI...

sdianoff by Associate II
  • 2013 Views
  • 2 replies
  • 0 kudos

STM32L series first write to EEPROM fails

I have an STM32L073CZ that I'm having an occasional error with. I'm using the HAL libraries to program EEPROM and a number of our MCUs are seeing errors where they fail to write the first word. After that it'll start working correctly and everything ...

DPast.1 by Associate II
  • 868 Views
  • 0 replies
  • 0 kudos

Resolved! CRC-16-IBM using HAL APIs

Hi community, I am working on CRC generation with polynomial 0x8005 and initial value 0x0000, so I configured it as belowI am using the data as shown below and the CRC should be 0x43B8 but the value got from the API is different. So I am missing some...

_legacyfs_online_stmicro_images_0693W00000bkgUXQAY.png

What is the STM32 Programmer CLI CRC calc polynomial?

Hey, I went through the manual of the STM Programmer command line interface and implemented a post build CRC calc with the Safety lib command -sl.C:\PROGRA~1\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe -sl MESOL_CAN_...

AndreM by Associate
  • 1047 Views
  • 4 replies
  • 0 kudos

SPI with DMA and CRC : data corrupted by DMA ?

I'm running SPI with DMA and CRC enable between two stm32, slave is stm32f415 MCU.Sometimes it appears that data received is corrupted whereas CRC check gives no error. For instance (polynomial used is 0x1021)Normal behavior:3 words sent: 0xAAA0; 0x0...

JJim.1 by Associate
  • 346 Views
  • 0 replies
  • 0 kudos

STM32WB35 - Can't write or read flash memory (J-Link)

Hello, I'm a bit stuck and I am not sure what to do so I am asking for your help.Here is the problem :I have a custom board with a STM32WB35 that was working fine for a while. But after multiple (incomplete) boot when I was soldering the battery to m...

0693W00000aHWaeQAG.png 0693W00000aHWoMQAW.png 0693W00000aHWf9QAG.png 0693W00000aHWg2QAG.png
EJean.1 by Associate II
  • 2140 Views
  • 5 replies
  • 0 kudos

Using MX to locate IVT in RAM

I am using the STM32F746VET6 which was setup with STM32CubeMX project. In the code it creates I see there's a STM32F746VETX_RAM.ld linker file and a #define VECT_TAB_SRAM to locate the IVT in RAM, but I don't see in MX where I specify that I want the...

RBack.1 by Senior
  • 1183 Views
  • 12 replies
  • 0 kudos