Search found 53 matches

by BrianP
Fri Jun 25, 2021 3:15 pm
Forum: ESP-IDF
Topic: Eclipse IDE plugin says Errors exist but console says build complete
Replies: 12
Views: 11729

Re: Eclipse IDE plugin says Errors exist but console says build complete

This is what I posted on the Eclipse Forum. TLDR If you change run/debug configuration the problem happens. You need to close/open Eclipse to fix it. I'll let you know if they approve my post and whether there are fixes or a work around. I am using Eclipse CDT 03-2021 with the ESP-IDF Plugin. The pl...
by BrianP
Fri Jun 25, 2021 3:04 am
Forum: ESP-IDF
Topic: Eclipse IDE plugin says Errors exist but console says build complete
Replies: 12
Views: 11729

Re: Eclipse IDE plugin says Errors exist but console says build complete

To reindex, select the project and Menu Project -> C/C++ Index -> Rebuild. Damn. I just did that and it worked. It reindexed my files. One of the advantage of an IDE like Eclipse is that it indexes the source code so the internal text editor can do stuff like hover help, Open Declaration, and so on....
by BrianP
Fri Jun 25, 2021 2:34 am
Forum: ESP-IDF
Topic: Eclipse IDE plugin says Errors exist but console says build complete
Replies: 12
Views: 11729

Re: Eclipse IDE plugin says Errors exist but console says build complete

Are you getting lots of "unresolved includes" or the result of "unresolved includes"? I get the same. There seems to be some sort of issue with Eclipse and the ESP Plugin and/or the Cmake file. Somehow the compiler knows what to compile but the Eclipse indexer does not. If you re-index you will noti...
by BrianP
Wed Jun 23, 2021 4:13 pm
Forum: ESP-IDF
Topic: Got JTAG Debugging to work on ESP32-C3 built in USB
Replies: 0
Views: 2454

Got JTAG Debugging to work on ESP32-C3 built in USB

I got JTAG debugging for Blink to work (again). It worked weeks ago then stopped. I believe the ESP32 plugin is not compatible with most recent versions of Eclipse. 1) I had to install an older version of Eclipse CDT (Version: 2021-03 (4.19.0) Build id: 20210312-0638). Latest versions of Eclipse (i....
by BrianP
Sun Jun 20, 2021 12:28 pm
Forum: ESP-IDF
Topic: Unable to build openocd on Windows: libusb not found
Replies: 2
Views: 3304

Re: Unable to build openocd on Windows: libusb not found

Thanks for the reply.

OpenOCD does find the device but then then it doesn't work regardless. It seems to spew out a register dump and other info but I figured it made more sense to bring it up to latest version and then see what happened.
by BrianP
Sat Jun 19, 2021 1:15 pm
Forum: ESP-IDF
Topic: Re: UART 9bit workaround?
Replies: 2
Views: 3871

Re: UART 9bit workaround?

I vaguely remember doing this a long time ago on a different platform. IIRC what I did was 1) set UART to even parity 2) determine the parity of the 8 bits (1 or 0) assuming even parity 3) if the parity bit agrees with the 9th bit (i.e. bit 9 is 1 and parity is 1) send using even parity, if not, cha...
by BrianP
Fri Jun 18, 2021 8:40 pm
Forum: ESP-IDF
Topic: Unable to build openocd on Windows: libusb not found
Replies: 2
Views: 3304

Unable to build openocd on Windows: libusb not found

Hello I have been trying to build a current version of openocd on Windows using the instructions here https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/jtag-debugging/building-openocd-windows.html I have tried it multiple times but I fail with configure: error: libusb-1.x is r...
by BrianP
Tue May 25, 2021 3:57 pm
Forum: IDEs for ESP-IDF
Topic: Eclipse OpenOCD Fails to Program Device
Replies: 2
Views: 4092

Eclipse OpenOCD Fails to Program Device

I posted this in the hardware section as a reply to my comment regarding getting OpenOCD to work with ESP32-C3 but I guess it is buried due to the subject header. I cannot get Openocd to program the device before debugging. The command I use is openocd -f interface/esp_usb_jtag.cfg -f board/esp32c3-...
by BrianP
Mon May 24, 2021 8:04 pm
Forum: IDEs for ESP-IDF
Topic: Eclipse/Windows/ESP32-C3 Unresolved Inclusions
Replies: 0
Views: 2252

Eclipse/Windows/ESP32-C3 Unresolved Inclusions

Sorry if this looks like spam. I didn't realize there was an IDE sub-forum. I am on Windows 10 Eclipse Eclipse IDE for C/C++ Developers (includes Incubating components) Version: 2021-03 (4.19.0) Build id: 20210312-0638 (downloaded from Espressif) When compiling blink or hello_world I usually end up ...
by BrianP
Mon May 24, 2021 7:46 pm
Forum: Hardware
Topic: Successful ESP32-C3 Built In USB JTAG!
Replies: 3
Views: 6041

Re: Successful ESP32-C3 Built In USB JTAG!

One thing though. Besides the unresolved inclusions (which come and go), I cannot get Openocd to program the device first. openocd -f interface/esp_usb_jtag.cfg -f board/esp32c3-builtin.cfg -c "program_esp blink.bin 0x10000 verify exit" <stuff left out> <path to scripts>\scripts/target/esp_common.cf...