Thank you oBFusCATed, you pointed me in the right direction, however, it did not quite work.
I was able to edit the script as suggested but after doing that the micro in question still did
not appear in the AVR project drop-down list of processors. I had also to manually edit the
script.xrc file. After that the desired micro was finally shown in the list. For those who might
want to repeat this exercise: go to your CodeBlocks installation folder\share\CodeBlocks\
templates\wizard\avr and add your required microntroller to the list inside wizard.script AND
wizard.xrc.
This is only half of the problem. Now you can create a project for your microntroller but when
you go ahead and compile you will get all sorts of the errors. All of them, basically, boil down
to the fact that the compiler, as well the linker, know nothing about this new device.
I don't know if there is a way to automatically update your existing avr8-gnu-toolchain from
Atmel ATmega Series Device Support (1.3.300) -
http://packs.download.atmel.com - so I did
a few more manual hacks. First, I added packs\atmel\ATmega_DFP\1.3.300\include to the
Compiler Search Directories in GNU GCC Compiler for AVR Global compiler settings, then
copied specs-atmega324pb from the pack to avr8-gnu-toolchain\lib\gcc\avr\5.4.0\device-specs,
and crtatmega324pb.o and libatmega324pb.a from the pack to \avr8-gnu-toolchain\avr\lib\avr5.
Now I can build the project. Not the most elegant way to do things but, hey, it worked for me.
If anybody knows a better way to do this please share.
Regards,
DX