In Europe gunpowder was expensive and somewhat difficult to produce when first introduced. There the problem seems to have been saltpeter, which, once the natural sources had been exhausted, had to be produced. It took some time to figure out how to produce it consistently. As a result gunpowder was expensive when initially introduced, but the price dropped over the course of the 15th century.
As for firearms -- handgonnes and early arquebuses, are probably the most likely, although, historically, they overlapped more with plate armor.