If you just disable the VDAC8_test_0 component, then also there will be no "System.NullReferenceException" error.There will be error but due to missing main.c source file/function.
You are correct. If I disable VDAC8_test_0, the error goes away. I already know that. In fact, if I disable VDAC8_vbat_ref_0 or ADC_SAR_Seq_0 or Vbat_n_0 the error goes away. If fact, if I don't disable any of the components and change ADC_SAR_Seq_0's input range to something other than using the VDAC as reference: no error.
However I need all the components at these configurations.
You should also note that I had copied ALL the components in "Generates Error" into "Works" verbatim. "Generates Error" fails and "Works" succeeds. Something is wrong here with the fitter SW.
The only difference between two schematic is the pin selection. In "Generates Error" schematic, pin vbat_n_0 is selected as P0 which is SAR1 reference. In "Works" schematic, pin vbat_n_0 is not selected and it is left to the creator to decide. Following scenario succeeds in the build-
- If you select both the pins manually
- If you leave both the pin selection to creator
In the "Generates Error" schematic, even if you had selected P0 for vbat_n_0, creator should have picked P0 for SAR reference (that means, SAR0 block selection for the component). I will let software team know about this issue. Thanks for bringing it to our notice.
Beautiful! If I unlock vbat_n_0 in "Generates Errors" and let the the fitter allocate the pin, the error is gone!
Interesting. Thanks for looking into it.