u8 info; /* info/mode */
char freq[8]; /* frequency */
u32 roff; /* ram offset of uc */
+ u32 jaddr; /* addr for the jump */
} t_lpc;
void usage(void) {
char buf[BUFSIZE];
int ret,len;
- snprintf(buf,BUFSIZE,"G %d A\r\n",lpc->roff);
+ snprintf(buf,BUFSIZE,"G %d A\r\n",lpc->jaddr);
len=strlen(buf);
ret=txrx(lpc,buf,len,TXRX_TYPE_GO);
case 0x04:
lpc->roff=((buf[0]<<24)|(buf[1]<<16));
break;
+ case 0x05:
+ lpc->jaddr=((buf[0]<<24)|(buf[1]<<16));
+ lpc->jaddr|=((buf[2]<<8)|buf[3]);
+ break;
default:
printf("fw to ram: unknown type %02x\n",type);
return -1;
memset(&lpc,0,sizeof(t_lpc));
strncpy(lpc.freq,CRYSTFREQ,7);
lpc.roff=RAMOFFSET;
+ lpc.jaddr=RAMOFFSET;
/* parse argv */