I added ulp compiler to PATH environment variable but, compiler cannot resolve variables of ulp program like below
Are these variables added to ulp_main.h automatically??
CC build/main/ulp_example_main.o
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c: In function 'init_ulp_program':
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:58:5: error:'ulp_debounce_counter' undeclared (first use in this function)
ulp_debounce_counter = 3;
^
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:58:5: note: each undeclared identifier is reported only once for each function it appears in
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:59:5: error:'ulp_debounce_max_count' undeclared (first use in this function)
ulp_debounce_max_count = 3;
^
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:60:5: error:'ulp_next_edge' undeclared (first use in this function)
ulp_next_edge = 0;
^
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:61:5: error:'ulp_io_number' undeclared (first use in this function)
ulp_io_number = 11; /* GPIO0 is RTC_IO 11 */
^
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:62:5: error:'ulp_edge_count_to_wake_up' undeclared (first use in this function)
ulp_edge_count_to_wake_up = 10;
^
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:83:21: error: 'ulp_entry' undeclared (first use in this function)
err = ulp_run((&ulp_entry - RTC_SLOW_MEM) / sizeof(uint32_t));
^
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c: In function 'update_pulse_count':
/Users/joondong/Desktop/ESP-projects/ulp/main/./ulp_example_main.c:101:38: error: 'ulp_edge_count' undeclared (first use in this function)
uint32_t pulse_count_from_ulp = (ulp_edge_count & UINT16_MAX) / 2;
^
make[1]: *** [ulp_example_main.o] Error 1
make: *** [component-main-build] Error 2
ulp compile error
Re: ulp compile error
Show main.c/cpp and asm from ulp!
Re: ulp compile error
I just compiled the ulp example in the esp-idf.
Who is online
Users browsing this forum: No registered users and 131 guests