In reply to Husni Mahdi:
For the sequence ( reg_seq = reg_base_seq::type_id::create(“reg_seq”); ) :
Since the parent_sequence and m_sequencer are both null , change your set to :
uvm_config_db #(apb2spi_env_config) :: set(null, "reg_seq", "CONFIG_DATA_ENV", env_config);