Funny thing is that I've made an example and it works.
Your example also works.
However the program that I'm trying to debug is way bigger.
My example takes only 1064 bytes of flash, while my program takes 25976 bytes of flash.
Your example takes 2612 bytes of flash. (What is with the .size file? It should print the size, not save it !)
Thanks for the code, it gave me some ideas for future projects.
I have attached my example.
I use plain eclipse, not CW 10.x.
Debugging my program is not working, even though the settings used to compile my program were used to compile my example.