Skip to main content
sarah
Associate
January 13, 2016
Question

Distinguish two Controllers

  • January 13, 2016
  • 3 replies
  • 818 views
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 topic has been closed for replies.

    3 replies

    Nesrine M_O
    Associate
    January 13, 2016
    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-

    sarah
    sarahAuthor
    Associate
    January 13, 2016
    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?

    Radosław
    Associate II
    January 13, 2016
    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.