Aktionen
Eval » Historie » Revision 1
Revision 1/2
| Weiter »
Redmine Admin, 05.10.2021 15:55
Eval¶
Writing to board¶
Writing HWInfo via bringup-software is bad. Boards will be switched and wron serial number is on board.
An dedicated application should flash it. Read serial number via UART. with the help of gdb
gdb qhello -ex "br loop" -ex "run" -ex "call (flash)(10,\"mmm\")" -ex "clear loop" -ex "c" --batch
The information can be read even without serial insterface.
print myStruct
info symbol 0x4010
info address myStruct
An unstripped elf file is needed of course.
set var $new = (SMyStruct *)malloc(sizeof(struct SMyStruct))
set var $new.version = 111
print $new.version
set var $new.name="MAX"
Von Redmine Admin vor mehr als 3 Jahren aktualisiert · 1 Revisionen