Check the manual for a default code - should work unless you've changed it - it'll be under the section where you get the info to change the battery and what to do next
If you succeed, good luck to you! Have the same problem with my Nissan second-hand Micra after I let the battery run down one day. Tried to get it sorted when i had a service at the dealers, but head office were unable to supply the correct code.