A mechanism of collective generation of bursts in ensembles of spiking neurons with nonlocal excitatory coupling is studied. Three types of the network topology is considered: (a) chains with regular short-range nonlocal coupling, (b) chains with a small number of random long-range connections and dominating regular short-range ones, (c) random ensembles with a power law of node degree distribution. It is shown, that there exists a common mechanism of burst generation resulting from instability of synchronous slow spiking as the coupling strengthens, giving rise to fast repetitive spikes.