Problems with BASCOM AVR – Random reboots? [Solution]

0 Comments | This entry was posted on Jun 07 2011


Hey! Are you experiencing weird behaviour in your microcontroller?
We have been working on a MCU controlled project for a month now and just discovered the reason to why we have been pulling hair out of our heads. BASCOM/ATMEGA8 fails at concatinating strings!
Even though the manual describes that a concat feature is available by writing a= b+”c”, and we have used this successfully previously, it is error prone!
It made our microcontroller jump to instructions that should not be reachable, made it restart at random and caused very odd behaviour which was hard to debug.
So take caution when concatinating strings in BASCOM!