Hey. It sounds like it was a big miscommunication. I think that it might be a good idea to call him up and see if he is still upset, and explain what happened on your end. Hopefully he will explain his side too and you will both understand where each other were coming from.
As for if you guys can still be friends, only the two of you can decide that. Hopefully if you let him know where you are coming from, no more problems will come up. Its also possible that you guys could continue to be friends, but not as good of friends as you have been in the past. Sometimes people grow apart, for whatever reason. It doesn't mean the two of you cannot hang out with each other, or in the same group of friends.
Good luck. I know how it is to not know where you and a friend stand. I am sure it will work itself out in time on its own. But, if you can be the bigger person and give Erik a call, I am sure things will work out better, and quicker for that matter.
-Steph