This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Build zephyr.elf versus Build solution

I can see in Segger Embedded Studio v4.52 under the Build Tab, there are two methods to build the project.

1- Build > Build zephyr/zephyr.elf

2- Build > Build solution

What is the difference between the two methods?

Kind regards

Parents Reply Children
  • Hi! 

    It's been a few days so I just wanted to let you know that I am working on this. But it's proving to be more difficult than expected.

    I have successfully built the application with this ADC configuration in the overlay file where the node is compatible with "voltage-divider", based on the Battery Voltage Measurement sample in NCS. 

    &adc {
        status = "okay";
    };
    
    / {
        vbatt {
            compatible = "voltage-divider";
            io-channels = <&adc 4>;
            output-ohms = <180000>;
            full-ohms = <(1500000 + 180000)>;
        };
    };

    However, I have been trying to make the node compatible with "nordic, nrf-saadc", but there are a few issues, like the interrupts-field being required, but then seeing the error:

    Warning (interrupts_property): /node@0: Missing interrupt-parent

    &adc {
    	status = "okay";
    };
    
    
    / {
    	
        n: node@0 { //EDIT: Incorrect
            compatible = "nordic,nrf-saadc";
            io-channels = <&adc 4>;
            reg = <1 2>; //EDIT: Incorrect
    	    interrupts = <14 1>;
    	    #io-channel-cells = <1>; 
    	    label = "ADC_0";
    	};
    };

    I'm still waiting for advice from an NCS developer on how to do this correctly, so I will update you when I hear back.

    Hopefully, the information provided above might help you get somewhere in your development in the meantime.

    Best regards,

    Heidi

  • Thank you Heidi for persevering with this problem. 

    While waiting for a solution I would like you to clarify the following,

    n: node@0 {               is the @0 referring to instance 0 (zero) of the adc node named "adc@0"?

    label = "ADC_0";       can we put any string for label or must we use "ADC_0" as it is expected                                                      somewhere else or because of the @0?

    reg = <1 2>;                what information is the <1 2> conveying to us?

    Thank you

    Kind regards

    Mohamed

Related