Source: Starfinder Core Rulebook p.73
If you have a drone, your drone gains an additional basic mod. If you have an exocortex, you gain an additional basic mod. It can't be a basic mod taken a second time as an advanced mod. You can rebuild this extra mod when you gain a mechanic level as with any other mod, but you can't rebuild this mod to convert it into the advanced version of the mod.