I am having an issue using platformIO where their setting for changing the CPU MHZ is not taking affect.
At compile time they add this flag option "-DF_CPU=160000000L". Regardless if it's 160000000L or 240000000L does not affect the CPU speed.
Using this basic example to test this, and a scope to check it.
Code: Select all
#include <stdio.h>
#include "driver/gpio.h"
#include "sdkconfig.h"
#define BLINK_GPIO 4
void app_main()
{
gpio_pad_select_gpio(BLINK_GPIO);
gpio_set_direction(BLINK_GPIO, GPIO_MODE_OUTPUT);
while(1)
{
gpio_set_level(BLINK_GPIO, 0);
gpio_set_level(BLINK_GPIO, 1);
}
}