<p style="white-space: pre-wrap; word-wrap: break-word;">excellent idea, I like the approach in general. Just some minor details.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/26463">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/Makefile">File firmware/Makefile:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/Makefile@245">Patch Set #2, Line 245:</a> <code style="font-family:monospace,monospace">ap</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">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?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/Makefile@288">Patch Set #2, Line 288:</a> <code style="font-family:monospace,monospace"> m</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">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?</p><p style="white-space: pre-wrap; word-wrap: break-word;">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.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/apps/blupdate/main.c">File firmware/apps/blupdate/main.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/simtrace2/+/26463/2/firmware/apps/blupdate/main.c@98">Patch Set #2, Line 98:</a> <code style="font-family:monospace,monospace"> SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) | (SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) |</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">can we just tunr NVIC_SystemReset into a #define? or use __attribute__((always_inline)) ?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/26463">change 26463</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/simtrace2/+/26463"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id6df0486c8b779889d21800dc2441b3aa9af8a5f </div>
<div style="display:none"> Gerrit-Change-Number: 26463 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 08 Dec 2021 08:04:04 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>