Tutorial: How to Erase the FLASH with the GNU GDB debugger

I have several applications where I store application specific information in the microcontroller FLASH memory (see “Configuration Data: Using the Internal FLASH instead of an external EEPROM“). I have run into issues recently with the Segger J-Link GDB server as by default it does *not* erase all the FLASH memory. So the question is: How can I erase all (or part) of the FLASH memory with GDB (e.g. in Kinetis Design Studio or in Eclipse)?

Memory Monitor with Erased Flash

Memory Monitor with Erased Flash

Continue reading

Advertisements

Engineering Joke of the Week: The Train Ticket

On a train to a large computer convention, there was a bunch of engineers and a bunch of managers. Each of the managers had a train ticket. The group of engineers had only ONE ticket for all of them. The managers started laughing, figuring the engineers were going to get caught and thrown off the train.

When one of the engineers, the lookout, said, “Here comes the conductor,” all of the engineers went into the bathroom. The managers were puzzled.
Continue reading