How to get a good fragrance from burnt rosemary?
You need fresh rosemary and give it a quick char and not allow it to burn. That's sort of the same technique of using a blowtorch for crème brulée and the same "doneness" of charred vegetables - caramelized but not burnt

If you're smelling smoke, it is already too burnt to use.