Compilation optimization for easy debugging

Discussion related to "under the hood" OpenMV topics.
User avatar
chrisPyres66
Posts: 31
Joined: Mon Jul 16, 2018 9:22 am
Location: France

Compilation optimization for easy debugging

Postby chrisPyres66 » Wed Oct 24, 2018 12:04 pm

Dear All,

I tried to remove compilation optimization to get easy the debbugging.
Unfortunately, i removed the wrong option -o in bootloader makefile here :

Code: Select all

....
$(BUILD)/%.o : %.c
	$(ECHO) "CC $<"
	$(CC) $(CFLAGS) -c -o $@ $<
...
Now the compilation stops with missing separator in the main makefile in the directory /src.

Someone could help me to :
  • get the code working back
    correctly suppress the optimization code
Thanks for help,
User avatar
iabdalkader
Posts: 595
Joined: Sun May 24, 2015 3:53 pm

Re: Compilation optimization for easy debugging

Postby iabdalkader » Wed Oct 24, 2018 6:58 pm

Hi, don't edit the Makefile, just use this:

Code: Select all

make TARGET=OPENMV3 DEBUG=1

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests