One transistor square wave amplifier: why doesn't it work?
Your circuit is wrong. You did this:


So the transistor and the resistor needs to be interchanged
you need a additional resistor to limit base current


Try it like this:

PS: the calculations are simplified and not 100% correct. but good enough to transport the principle