-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addition of uart and uartns550 to swtpm #301
base: master
Are you sure you want to change the base?
Conversation
For there UART transport it seems odd to still use the swtpm feature. Is there a reason you didn't set it up as its own transport like SPI/I2C as I did in this PR #286 ? |
Not sure I fully understand, is this pulling the uartns550 additions out of swtpm and placing it in its own location. Possibly something under hal/tpm_io_uartns550 or the like? Which re-looking at it may be a better fit for it. No reason for it to be in the swtpm code other than familiarity with that section of code when doing the work, happy to move it to a better spot. |
I see... you are still using the SWPTM packet framing (locality, TX size, packet, RX size, etc..) but you are adding UART transport instead of socket. |
73a1fe0
to
2a1d768
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great and tested it out. Just one minor suggestion.
@@ -34,7 +34,13 @@ | |||
/* --- Local Variables -- */ | |||
/******************************************************************************/ | |||
|
|||
static THREAD_LS_T TPM2_CTX* gActiveTPM; | |||
#if defined(WOLFTPM_SWTPM_UARTNS550) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer a different build option to make this a non-static non-thread local. Maybe WOLFTPM2_PUBLIC_CTX
?
Refactor debug printf to new macro to support Xilinx FSBL. Author: Jacob Barthelmeh
Hi @dgarske and @JacobBarthelmeh - just wondering what's the status of this PR? I see there's a useful DEBUG_PRINTF proposed. I almost when down a similar path, but ended up changing my mind. I have a similar change in the works, but using the ERROR_OUT(rc, exit) pattern found in the wolfCrypt test. This is all in relation to my #351 adding Espressif TPM support, and in particular the ability to use the colorization of messages, such as the red Any preference here? |
@gojimmypi it's been blocked on me. I went back and rebased it but after the rebase it was not working like I expected. Have not resolved that yet. Yeah the abstraction of printf's saved a large amount of data when trying to debug in a resource constrained device that had a light version of printf. My preference is not having ERROR_OUT and goto's.....that a preference though. |
@JacobBarthelmeh I hear ya on the @dgarske has quite a few instances of the goto exit pattern, which of course lend themselves to easily adapting to In any case, I'll hold off on that for now. |
No description provided.