Change in simtrace2[master]: firmware: add crc stub to all dfu apps to ensure reliable loading

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Dec 8 08:04:04 UTC 2021


laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/simtrace2/+/26463 )

Change subject: firmware: add crc stub to all dfu apps to ensure reliable loading
......................................................................


Patch Set 2:

(3 comments)

excellent idea, I like the approach in general.  Just some minor details.

https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/Makefile 
File firmware/Makefile:

https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/Makefile@245 
PS2, Line 245: ap
I'm not quite sure the usb_strings_generated.h depends on misc/crctool? Wouldn't it make more sense to add it to the $(BIN) target above, next to usb_strings_generated.h?


https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/Makefile@288 
PS2, Line 288: 	m
patching the file in-line IMHO doesn't work very well with how make manages dependencies.  Should the last step fail, there will still be a .bin file and a subsequent repeated 'make' command will no longer try executing crctool, as the .bin already exists?

If the files without and with CRC would have different names, the built-in make logic should be able to help re-running crctool if it failed, and also the user would not have a .bin file in their filesystem that looks like everything is done.


https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/apps/blupdate/main.c 
File firmware/apps/blupdate/main.c:

https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/apps/blupdate/main.c@98 
PS2, Line 98: 		SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |
can we just tunr NVIC_SystemReset into a #define? or use __attribute__((always_inline)) ?



-- 
To view, visit https://gerrit.osmocom.org/c/simtrace2/+/26463
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: Id6df0486c8b779889d21800dc2441b3aa9af8a5f
Gerrit-Change-Number: 26463
Gerrit-PatchSet: 2
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Comment-Date: Wed, 08 Dec 2021 08:04:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211208/e12a1dc9/attachment.htm>


More information about the gerrit-log mailing list