esp32-rf-receiver icon indicating copy to clipboard operation
esp32-rf-receiver copied to clipboard

Build succeeds but startup fails on I (337) main_task: Ca

Open heineken63 opened this issue 1 year ago • 1 comments

Thanks for this great manual, after some time setting up the environment succeeded flashing my esp32v1.

But when starting up it stops doing anything after these log entries: I (322) app_start: Starting scheduler on CPU0 I (327) app_start: Starting scheduler on CPU1 I (327) main_task: Started on CPU0 I (337) main_task: Ca�None

Anyone knows what is going wrong?

heineken63 avatar Dec 17 '23 18:12 heineken63

I encountered the same problem.

I fixed it for myself like this

      // Configure the data input
      gpio_config_t data_pin_config;
      // {
      data_pin_config.intr_type = GPIO_INTR_ANYEDGE;
      data_pin_config.mode = GPIO_MODE_INPUT;
      data_pin_config.pin_bit_mask = (std::uint64_t{1} << 22); // GPIO_NUM_22 (SEL) DATA PIN!
      data_pin_config.pull_up_en = GPIO_PULLUP_DISABLE;
      data_pin_config.pull_down_en = GPIO_PULLDOWN_DISABLE;

      gpio_config(&data_pin_config);

The bit I really changed here is definition of the pin_bit_mask. Note: I changed this to c++ (included the cstdint header for uint64 def).

dbadrian avatar Mar 22 '24 18:03 dbadrian