Skip to content

[FW-339] Fix SPI#497

Merged
jmaralo merged 5 commits intodevelopmentfrom
FW-339_Fix-SPI
Mar 6, 2025
Merged

[FW-339] Fix SPI#497
jmaralo merged 5 commits intodevelopmentfrom
FW-339_Fix-SPI

Conversation

@jorgesg82
Copy link
Contributor

This bug has been detected when trying to use the old BMS-LIB. It was working with the old ST-LIB but it ins't working with the new one. Comparing both, It has been detected that two functions were removed: receive and transmit_and_receive without DMA. It has been tried to add them again and BMS-LIB is working.

@Ikubimu wasn't able neither to use SPI, apart of SPIOrder (which use HAL directly), so maybe with this change now he is able to use it.

Is important that @g0nz4I0 or @jmaralo review this, as I guess this code was removed for some reason that the new ones can't figure out, so please, give us your experienced opinion

@jorgesg82 jorgesg82 requested review from Ikubimu and jmaralo February 25, 2025 18:04
@jorgesg82 jorgesg82 self-assigned this Feb 25, 2025
@StefanCostea
Copy link
Member

Most probably the non DMA variant was removed due to its blocking nature. This addition is fine, however I would recomend refactoring the BMS-LIB to use the non blocking variant

@jorgesg82
Copy link
Contributor Author

Most probably the non DMA variant was removed due to its blocking nature. This addition is fine, however I would recomend refactoring the BMS-LIB to use the non blocking variant

Yes, the idea is to remake the BMS-LIB this year. I want even to try to make it STLIB-independent. But, at the moment, we should use the old one, and it doesn't use DMA, so I need this. Actually, It isn't necessary to merge that on master, I just need this branch so I can point to this from BMS-LIB

@jmaralo jmaralo merged commit 5560a7b into development Mar 6, 2025
13 checks passed
@jmaralo jmaralo deleted the FW-339_Fix-SPI branch March 6, 2025 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants