1 |
/* |
/* |
2 |
* $Id: hex_to_bin.c,v 1.1 2006/02/26 11:22:23 debug Exp $ |
* $Id: hex_to_bin.c,v 1.2 2007/05/11 07:51:56 debug Exp $ |
3 |
* |
* |
4 |
* Quick hack to convert .hex files (such as the AVR Hello World program at |
* Quick hack to convert .hex files (such as the AVR Hello World program at |
5 |
* http://www.tfs.net/~petek/atmel/hiworld/hiworld.hex) into raw binaries. |
* http://www.tfs.net/~petek/atmel/hiworld/hiworld.hex) into raw binaries. |
7 |
* E.g. hex_to_bin hiworld.hex hiworld.bin |
* E.g. hex_to_bin hiworld.hex hiworld.bin |
8 |
* |
* |
9 |
* and then: gxemul -E bareavr ..... 0:hiworld.bin |
* and then: gxemul -E bareavr ..... 0:hiworld.bin |
10 |
|
* |
11 |
|
* Note: The experimental AVR emulation was removed from GXemul at 20070511. |
12 |
|
* Use versions prior to this versions if you want to play with AVR |
13 |
|
* emulation. |
14 |
*/ |
*/ |
15 |
|
|
16 |
#include <stdio.h> |
#include <stdio.h> |