-
Notifications
You must be signed in to change notification settings - Fork 82
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
MAX32665 and MAX32666 SDK TPU/MAA Bug #1089
Comments
I do not believe that the issue is the macro, rather the incorrect use of the macro
Should instead be:
|
Thank you @night1rider, I appreciate your efforts adding part support to WolfSSL. @chazste I agree - looks like there was also the same issue for Just opened a PR with the fix. |
|
@chazste Your solution actually works, I had tested with: Due to a typo in the initial pr fix. Thanks! |
@night1rider thank you for checking again. I'm glad that worked. |
Hello,
I am working on using the TPU on the MAX32665 and MAX32666 to do hardware acceleration in wolfSSL. I found an issue potentially with the process of setting different math modes for the MAA.
I think it has to do with this line:
#define MXC_SETFIELD(reg, mask, setting) (reg = ((reg) & ~(mask)) | ((setting) & (mask)))
I suspect it is not preforming the bit masking correct for the values give for the MAA controls. You can test this by trying your MAA example that is in the master branch and switching it to do a multiple operation. You will find it actually does a square operation.
With the current bit masking it will not use values correctly and cut off the last bit of the math control values do not get shifted left by 1 bit so this values will not work as the math operation control register in in bit position [3:1]:
To currently use the MAA I have to define control values as such:
and edit this line in the SDK:
if (clc >= 0x6) {
to:
if (clc >= 0b1111) {
To properly use the MAA hardware. This will end up setting the correct bits to use the current bit masking controls.
The text was updated successfully, but these errors were encountered: