Skip to content
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

[RTOS] Convert STM32CubeMX Generated Code to FreeRTOS #41

Closed
RChandler234 opened this issue Mar 23, 2024 · 2 comments · May be fixed by #49
Closed

[RTOS] Convert STM32CubeMX Generated Code to FreeRTOS #41

RChandler234 opened this issue Mar 23, 2024 · 2 comments · May be fixed by #49
Assignees

Comments

@RChandler234
Copy link
Contributor

Description

Currently, we're using auto-generated code from MCSDK to run our dev kit. We need to port this code to FreeRTOS so that we can integrate it with the rest of our code to verify that everything we're making actually works with hardware. This ticket is to figure out how we can actually do that using the STM MCSDK and STM32CubeMX by configuring the project to use FreeRTOS

Here are the parts the devkit is using for reference:
https://www.st.com/en/evaluation-tools/nucleo-f103rb.html
https://www.digikey.com/en/products/detail/stmicroelectronics/X-NUCLEO-IHM07M1/5492161

Acceptance Criteria

Code is ported over to FreeRTOS in a way that's actual useable to test our stuff on the devkit

Proposed Solution

See links above

@RChandler234 RChandler234 self-assigned this Mar 23, 2024
RChandler234 added a commit that referenced this issue Mar 23, 2024
RChandler234 added a commit that referenced this issue Mar 23, 2024
@RChandler234
Copy link
Contributor Author

RChandler234 commented Mar 31, 2024

ADC and timer are super tightly coupled in the auto-gen code, hard to separate even at a high level. Gate Driver should take the SVGEN Stuff, should take in alpha and beta, so we can calculate sector, duty cycle, and timer values since there so tightly coupled. This way, the gate driver can use those values to configure the ADC for it's next value collection.

Timer interrupt starts up ADC again, so where do we put that logic

Gate Driver SV PWM and 3-phase inverter

Encoder - only need position for Nick's algorithm

nwdepatie added a commit that referenced this issue May 7, 2024
* (#41) Added new devkit autogen code

* (#41) Added working encoder initialization

* (#41) Injected mode ADC working, plumbed up into FOC block

* Added bus voltage reading, center aligned 

* SPIN

---------

Co-authored-by: Ben Thacher <[email protected]>
@nwdepatie
Copy link
Contributor

This was done for our final project for a class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants