No. While you were under the HRA, you were not eligible to contribute to the HSA, even retroactively.
In order to qualify to contribute to an HSA for 2017, you have to (1) have HDHP insurance coverage in 2017, and (2) not have any disqualifying coverage in 2017.
The HRA disqualified you in 2017, so there is no retroactive HSA contribution possible.