Rashi to Shemot 12:40 says that B'rit Bein HaB'tarim took place thirty years before the birth of Yitzchak (when Avraham was one hundred years old), meaning that Avraham was seventy years old at the time of B'rit Bein HaB'tarim.
The beginnning of parshat Lech Lecha takes place when Avraham was seventy-five. The story then seems to flow chronologically in chapters 12 through 14: Avraham, Sarah and Lot arrive in Canaan; they go to Egypt; they return to Canaan; Lot leaves Avraham for S'dom; Lot is taken captive in a war; and Avraham rescues him.
Chapter 15 then introduces the episode of B'rit Bein HaB'tarim with the phrase,
אחר הדברים האלה
After these matters
and Rashi (ad loc.) connects this to the immediately preceding episode of Avraham's battle with the four kings to rescue Lot.
So it would seem according to Rashi here that Avraham was at least seventy-five at B'rit Bein HaB'tarim, contrary to what he wrote in Shemot.
Is there any way of harmonizing these two comments of Rashi?