ESP32c6: Enable external antenna on ESP AT Firmware

Many thanks for your help!

However I’m confused by your example…is this for C6 chip or maybe its for other?

According to ESP32C6 Technical Reference Manual. The address for IO_MUX is 6009_0000 (maybe that was typo?) but 6000_4000 register is listed for I2C not for GPIO.

I’m just trying to determine how you came up with those register numbers.

Maybe it would be easier if I tried to toggle onboard LED (Pin15?) because that would provide immediate feedback.

According to TRM it says:

7.5.3 Simple GPIO Output
GPIO matrix can also be used for simple GPIO output. For this case, one GPIO pin can be configured to directly
output the desired value, without routing any peripheral output to this pin. This can be done as below:
• Set GPIO matrix GPIO_FUNCn_OUT_SEL with a special peripheral index 128 (0x80);
• Set the corresponding bit in GPIO_OUT_REG register to the desired GPIO output value.

So GPIO_FUNC15_OUT_SEL should be offset of 0x554+(4*15) = 0x05A8
and GPIO_OUT_REG offset is 0x0004

Putting that all together this should work?? (But it does not toggle LED).

AT+SYSREG=1,0x600905A8,0x80 // Set GPIO_FUNC15_OUT_SEL with special index 128 (0x80)

OK

AT+SYSREG=1,0x60090004,0x8000 // Set GPIO_OUT_REG with 0x8000 (15th bit)

OK

…but no light