Compilation without modifications

Discussions related to the firmware code development
Post Reply
erick
Posts: 7
Joined: Thu Jan 12, 2023 12:40 am

Compilation without modifications

Post by erick » Thu Jan 12, 2023 12:48 am

Hi,

I've installed MCUXpresso, i can build OPENGD77 but i can't modify the source code for testing purposes.

For example :

In the \firmware\source\dmr_codec\codec.c

i modify some line, i add
testing=6;

without type definition.

i create errors syntax in the codec.c but the compilation is always OK, no error messages, as if the compiler did not read the source file.

What is the solution to recompile all the sources ? and the compiler stops if there is syntax errors?

Regards,

Erick

G4EML
Posts: 919
Joined: Sat Nov 16, 2019 10:01 am

Re: Compilation without modifications

Post by G4EML » Thu Jan 12, 2023 1:13 pm

Where are you adding that line? I have just tried it and I get the expected errors when compiling.
There are several conditional sections in that file. If you enter your change in an inactive section (grey background) it won't be seen.

There are multiple ways to start the compile, I usually click on the 'Project' menu then select 'Build Project'

Build progress is shown in the Console window. Errors in the Problems window.

Colin G4EML

erick
Posts: 7
Joined: Thu Jan 12, 2023 12:40 am

Re: Compilation without modifications

Post by erick » Thu Jan 12, 2023 7:50 pm

I added a wrong #include
and garbage after #include

I use :
Project-Clean
Start a build immediately-Build the entire workspace
Attachments
pic3.jpg
pic3.jpg (23.32 KiB) Viewed 3526 times
pic2.jpg
pic2.jpg (24.69 KiB) Viewed 3526 times
pic1.jpg
pic1.jpg (46.77 KiB) Viewed 3526 times

erick
Posts: 7
Joined: Thu Jan 12, 2023 12:40 am

Re: Compilation without modifications

Post by erick » Thu Jan 12, 2023 7:51 pm

and :
Attachments
pic4.jpg
pic4.jpg (42.89 KiB) Viewed 3524 times

erick
Posts: 7
Joined: Thu Jan 12, 2023 12:40 am

Re: Compilation without modifications

Post by erick » Thu Jan 12, 2023 8:03 pm

and to open the project i choose :
File-Open File
and select the .project in the OpenGD77 directory :
Attachments
code2.jpg
code2.jpg (6.9 KiB) Viewed 3520 times

G4EML
Posts: 919
Joined: Sat Nov 16, 2019 10:01 am

Re: Compilation without modifications

Post by G4EML » Fri Jan 13, 2023 5:44 pm

You won't see any error in the 'Building Workspace' dialogue.
You need to watch the Console output which is normally displayed at the bottom of the screen.
Errors will also be indicated by a red X on the file in the left hand project explorer window.

Colin G4EML

erick
Posts: 7
Joined: Thu Jan 12, 2023 12:40 am

Re: Compilation without modifications

Post by erick » Mon Jan 16, 2023 11:43 pm

thank you very much, i found !

Post Reply