a method for forming , in a semiconductor substrate , wells and / or trenches having different destinations , including the steps of at least partly simultaneously etching cavities according to the pattern of the trenches and / or wells ; closing the openings of the cavities with at least one first non - conformal thick layer , and selectively opening the first thick layer according to the subsequent processings .