have 1999 bmw 540IT battery died. put in charged battery, machine asking for code, won't start.
You can't. You will need to take it to a BMW repair shop to have it reset. There is a procedure for changing the battery, when that procedure is ignored, then this is the result.
Search BMW 5 Series Questions
BMW 5 Series Experts