-
-
Notifications
You must be signed in to change notification settings - Fork 23
Different build targets for Chimera and Dev #1764
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
base: master
Are you sure you want to change the base?
Conversation
| IF ("${FIRMWARE_TARGET}" STREQUAL "chimera") | ||
| # add_subdirectory(chimera) /* need this? */ | ||
| add_subdirectory(chimera_v2) | ||
| add_subdirectory(dev) | ||
| ELSE () | ||
| add_subdirectory(dev) | ||
| ENDIF () |
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.
You can move this up the the initial If (target binary) condition. I don't think you need to have dev in here as well. You do not the chimera only chimera_v2.
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.
Also may wan to add a compile definition for chimera, I know in the past we had issues with the hw_chimera_v2_enabled and replace those in tasks.c
CMakePresets.json
Outdated
| "FIRMWARE_TARGET": "chimera", | ||
| "USE_COMMIT_INFO": "ON", | ||
| "BOOTLOAD": "ON", | ||
| "WATCHDOG": "ON" |
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.
Do we want watchdog on for chimera?
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.
I would say let's turn bootloader and watchdog off
firmware/CMakeLists.txt
Outdated
| # add_subdirectory(chimera) | ||
| add_subdirectory(chimera_v2) | ||
| IF ("${FIRMWARE_TARGET}" STREQUAL "chimera") | ||
| # add_subdirectory(chimera) /* need this? */ |
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.
no
5df6c85 to
1b1774f
Compare
|
on everyone's soul i have no idea why it builds on github and not on my computer but ion care. |
675f50b to
124d474
Compare
|
@kryptoish don't put that on my soul |
|
also update ur arm i think we're on latest now |
Lucien950
left a comment
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.
added comments onto VC, applies to all boards
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.
why not create a whole new chimera_tasks.c?
| set(IO_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src/io" "${SHARED_IO_INCLUDE_DIR}" "${SHARED_IO_INCLUDE_QUINTUNA_DIR}") | ||
|
|
||
| file(GLOB_RECURSE HW_SRCS CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/hw/*.c") | ||
| list(FILTER HW_SRCS EXCLUDE REGEX ".*/hw_chimeraConfig_v2\\.c$") |
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.
i feel like it's a lot easier and makes more sense to just throw the chimeraConfig into chimera_tasks.c (defined previously)
| "chimera_v2_proto_cm7" | ||
| m) | ||
| if ("${FIRMWARE_TARGET}" STREQUAL "chimera") | ||
| target_link_libraries("quintuna_VC_app.elf" PRIVATE "chimera_v2_proto_cm7") |
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.
instead of doing an optional linking, can you just make a seperate target for chimera?
| # ======== Code Time ======== | ||
| option(PLATFORM "The platform to build for, either \"firmware\" or \"dimos\"" "firmware") | ||
| option(TARGET "The target to build for. Choose between \"binary\" and \"test\"." "binary") | ||
| option(FIRMWARE_TARGET "The firmware target to build for. Choose between \"dev\" and \"chimera\"." "dev") |
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.
can we make it so that firmware builds have chimera and non-chimera targets? achieved by making seperate chimera targets
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.
be very careful about this, because all this code gets destroyed on code autogen (namly all code outside of USER_CODE_BEGIN blocks are destroyed).
We will be managing our own freertos into the future, so maybe don't worry about this for now? On hexray, you can manage your freertos tasks without cubemx
Changelist
Testing Done
Resolved Tickets
FIRM-540