what are you scanning car with,, ie not all code readers will read P-codes in ecu,, also the status of the alarm and anti theft within the bcm/ewls ecu's and keys,, ie its common after flat battery for these systems to loose the rolling codes between key and anti theft system,,, when does this they wont start it shuts down the fuel system and spark, to deal with this need bmw own software insta d you can by them online for around £90 uk pounds with that software can then reset the system to start off with same codes retrain the system,,, this would be my first suspect in this as its common after battery failure for this loss,, also was car jump started when battery went flat,,, if so might have spiked the ecu,,, or ecu lost some data paths,, if so worth trying a power latch reset link below
www.mini2.com
link for bmw insta d software and cable
www.aliexpress.com
lead that will be needed
www.aliexpress.com
could also use inpa as its gen 1 car ,, word of warning if did do this you would need to understand the program before trying to reset it all as could wipe the bcm

how to reset ecu,s power latch or power down for mini...
How to reset all ecu's this procedure is called a power latch firstly turn on the ignition not engine running,IE FOB IN DASH SLOT, TOUCH BUTTON UNTIL SEE DASH LIGHTS ON IE FUEL GAUGES ETC THIS IS IGNITION ON, THEN FOR IGNITION OFF TOUCH BUTTON ONCE THIS SWITCHES THE IGNITION OFF IE SAME...

32.0US $ |bmw and mini rheingold ista d ista p 4.29 ista p 4.30 diagnostic software Ista d 3.68 ista p 4.30 ista+ ista/d ista/p SDP 4.30| | - AliExpress
Smarter Shopping, Better Living! Aliexpress.com

7.81US $ |INPA USB Interface K+DCAN with Switch for BMW 20pin FTDI 9241A OBD OBD2 Car Diagnostic Auto Tool INPA K CAN Scanner K line Cable|Car Diagnostic Cables & Connectors| - AliExpress
Smarter Shopping, Better Living! Aliexpress.com