This seems to have happened out of nowhere (although I'm sure I triggered it somehow...). I have some variables that aren't being generated in the ulp_main.h, therefore I can't use them throughout the main processor.
These variables have been working perfectly fine for quite some time, the possible "trigger" for this error is that I did comment them out for a few tests of my hardware and now I can't seem to get them back.
Here is the code for the variable in ulp_main:
Code: Select all
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "ulp_riscv/ulp_riscv.h"
#include "ulp_riscv/ulp_riscv_utils.h"
#include "example_ulp_gpio.h"
void IR_Checker();
void button_checker();
static bool gpio_level = false;
static bool gpio_level_button = false;
extern void wait(int);
/* this variable will be exported as a public symbol, visible from main CPU: */
uint32_t IR_Right = 0; //MISSING
uint32_t IR_Left = 0; //MISSING
uint32_t testing_in_ulp = 0; //MISSING
uint32_t gpio_level_previous = false;
uint32_t gpio_level_previous_button = true;
uint32_t wake_up_pin = 0; //MISSING
uint32_t state;
uint32_t counter_state = 0;
uint32_t counter_state_button = 0;
uint32_t timer_start = 0;
uint32_t timer_count = 0;
uint32_t counter_5;
Code: Select all
// Variable definitions for ESP32ULP
// This file is generated automatically by esp32ulp_mapgen.py utility
#pragma once
extern uint32_t ulp___stack_top;
extern uint32_t ulp_button_checker;
extern uint32_t ulp_counter_5;
extern uint32_t ulp_counter_state;
extern uint32_t ulp_counter_state_button;
extern uint32_t ulp_gpio_level_previous;
extern uint32_t ulp_gpio_level_previous_button;
extern uint32_t ulp_IR_Checker;
extern uint32_t ulp_irq_vector;
extern uint32_t ulp_main;
extern uint32_t ulp_reset_vector;
extern uint32_t ulp_state;
extern uint32_t ulp_timer_count;
extern uint32_t ulp_timer_start;
extern uint32_t ulp_ulp_riscv_rescue_from_monitor;
extern uint32_t ulp_ulp_riscv_shutdown;
extern uint32_t ulp_ulp_riscv_wakeup_main_processor;
extern uint32_t ulp_wait;
I'm not sure where to begin as this is just meant to work automatically and I see no difference in how I use the other variables to these?
Cheers,
Dylan