Ho know the registers address's ?

saif_iot
Posts: 12
Joined: Fri Mar 27, 2020 12:59 pm

Ho know the registers address's ?

Postby saif_iot » Wed Dec 08, 2021 4:56 pm

Hi,

Someone contribute to the SDK (IDF) on 2017 to provide an API to get the hardware revision from the registers, to do this he get the base address from the datasheet (PDF), and he point to offset 0x7C. My question how he know this offset? did there is an additional non-public datasheet that have more hardware details? can we get a copy then?

Contribution: https://github.com/espressif/esp-idf/bl ... elds.c#L30
Address: https://github.com/espressif/esp-idf/bl ... reg.h#L281

Thank you.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Ho know the registers address's ?

Postby ESP_igrr » Wed Dec 08, 2021 10:17 pm

Hi saif_iot,

In this specific case, the MSB of APB_CTRL_DATE register (also known as SYSCON_DATE) register was modified to distinguish the revision 3 of ESP32 from the earlier revisions. This is mentioned in table 1-1 of this document: https://www.espressif.com/sites/default ... p32_en.pdf

That register is otherwise not useful for software development, so it is indeed not described in the technical reference manual, but its address (offset) is available in the header file you have linked to. Typically these header files are added to 'soc' component of esp-idf when support for a chip is added.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 136 guests