Stewart Campbell <[email protected]> writes: > Hi, I have a TeleBT V1.0 that had a defective CC1111 chip from that earlier > batch (you are already sending me a replacement, thanks!) > > On the existing TBT have: > > * Reworked the board and replaced the chip > * Blasted the micro with 1.8.5 firmware for the TeleBT v1.0 (using a TI CC > Debugger dongle and their flash programming software) > * Got access to the RF Cal adjustment via the terminal interface on the USB. > > My last (I think) stumbling block to getting this to 100% is to program the > original serial number back in. How can I do this without pair programming > please? I don't have a > suitable device to pair with, so can I poke the numbers in with the TI flash > programming tool, or using the terminal configuration interface? > An address in the hex file for where the serial is stored would be > another way to let me hack the serial number in too.
Hrm. The serial number and rf calibration values are written into ROM
during programming; effectively replacing the hard-coded values there.
If you can re-compile the firmware, it's easy enough to supply whatever
values you want for those. If you can't, then you could either hand-edit
the .ihx file, or use this patch to hack up the ao-load program to write
out a hacked-up 'save.ihx' instead of programming the device.
diff --git a/ao-tools/ao-load/ao-load.c b/ao-tools/ao-load/ao-load.c
index 0cf03772..c8c45c43 100644
--- a/ao-tools/ao-load/ao-load.c
+++ b/ao-tools/ao-load/ao-load.c
@@ -255,6 +255,20 @@ main (int argc, char **argv)
exit(1);
}
}
+ {
+ FILE *save = fopen("save.ihx", "w");
+ if (!save) {
+ perror("save.ihx");
+ exit(1);
+ }
+ if (!ao_hex_save(save, image, NULL, 0)) {
+ fprintf(stderr, "save failed\n");
+ exit(1);
+ }
+ fclose(save);
+ exit(0);
+ }
+
if (!tty)
tty = cc_usbdevs_find_by_arg(device, "TIDongle");
dbg = ccdbg_open(tty);
If you don't want to get ao-load to build, then you can send me the
serial number and RF calibration values and I'll package up a 1.8.6 .ihx
file with the right values substituted.
--
-keith
signature.asc
Description: PGP signature
_______________________________________________ altusmetrum mailing list [email protected] http://lists.gag.com/mailman/listinfo/altusmetrum
