Skip to content

Commit 284242d

Browse files
committed
Merge branch 'fix/c6_bootloader_rng_enable_v5.2' into 'release/v5.2'
fix(bootloader_support): Fixed pattern in RNG enable function to avoid output on IO0 (v5.2) See merge request espressif/esp-idf!31906
2 parents db8df15 + a45e4b3 commit 284242d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/bootloader_support/src/bootloader_random_esp32c6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void bootloader_random_enable(void)
5353

5454
// create patterns and set them in pattern table
5555
uint32_t pattern_one = (SAR2_CHANNEL << 2) | SAR2_ATTEN; // we want channel 9 with max attenuation
56-
uint32_t pattern_two = SAR1_ATTEN; // we want channel 0 with max attenuation, channel doesn't really matter here
56+
uint32_t pattern_two = (SAR2_CHANNEL << 2) | SAR1_ATTEN; // we want channel 9 with max attenuation
5757
uint32_t pattern_table = 0 | (pattern_two << 3 * PATTERN_BIT_WIDTH) | pattern_one << 2 * PATTERN_BIT_WIDTH;
5858
REG_WRITE(APB_SARADC_SAR_PATT_TAB1_REG, pattern_table);
5959

0 commit comments

Comments
 (0)