Distinguish two Controllers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-13 2:03 AM
Posted on January 13, 2016 at 11:03
Hello all,
how can i distinguish a stm32f405 from a stm32f415? Can i read this ID in a register somewhere on the controller? Thanks for your help previously Litina
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-13 2:58 AM
Posted on January 13, 2016 at 11:58
Hi litina,
The STM32F405/415 lines have the same device identifier, the main difference is that the STM32F415 integrates a crypto/hash processor.So you can enable the clock of cryptographic module and then check the RCC_AHB2ENR register if the dedicated bit is set to 1 so it is 415 either its 405-Syrine-Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-13 4:36 AM
Posted on January 13, 2016 at 13:36
Hi Syrine,
thank you for your answer. I enabled the clock of cryptographic modul on both controller types by writing 0x10 in the AHB2ENR register. Afterwards I read the register 0x40023834. In both cases I read an 0x10. Is that the wrong register? Like expected on the 405 the coding didn't work and on 415 it worked. But how can I distinguish without really testing the conding?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-01-13 5:38 AM
Posted on January 13, 2016 at 14:38
This is good behavior. Write somthing to hash and read back. Clock bit in RCC still exists. But registers of HASH don't.
