A code is a code. After you mess up a few times the code thing times out. They say you have to leave the key in the on position for an hour, then turn the radio on and enter the code. Throw a charger on it for that hour to be safe. I am not sure of the proper sequence of events so look it up in the archives.
Another thing is you might not have the proper code. They are mostly all 1's and 2's. You can call any dealership if you have the serial # from the back of the radio. When I called a few years back the guy said he had to fire up an ancient computer system to get the code, took about 15 minutes and he was very unsure about the number 12222 I laughed and explained it to him. It did work too.
Post a reply when you get it to work. Good luck.
95 E34 530I V2.37
===========
Those who make peaceful revolution impossible will make violent revolution inevitable.
John F. Kennedy