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.
Ho know the registers address's ?
Re: Ho know the registers address's ?
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.
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: Baidu [Spider] and 137 guests