DominikPalo / esp32-rf-receiver

The ESP32 wireless receiver for 315/433 MHz ASK modules based on ESP-IDF SDK.
MIT License
97 stars 13 forks source link

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

Open heineken63 opened 6 months ago

heineken63 commented 6 months ago

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?

dbadrian commented 3 months ago

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).