Go ahead and save your game. The path to the left of the save point is blocked, so we'll go through the door ahead.
After entering, head up the small path on the right.
There are upgrade materials behind the wooden crate.
There are also upgrade materials in the room on the right.
Next, climb out through the window nearby and head upstairs.
You can find a "Cell Door Key" in the courtyard.
This key opens the cell door that couldn't be opened earlier; you can check its location on the map.

