-
Notifications
You must be signed in to change notification settings - Fork 8
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
Generator not being called from CMSIS-Build #13
Comments
@jkrech in case you could help ... |
Sorry for the lack of response. |
@jkrech ok thanks for your response. Ok at least I understand this is expected with the current version and not something I missed in my setup - thanks for the ACK. The build is already reporting an error as the GPDSC is missing. Calling the generator may also report an error in case installation are missing. Maybe a hook or error message with the generator to be called could be inserted as a first step. We'll also look at the options on our side. |
Hi @jkrech, the idea of having a pre-build step is a bit difficult to implement if we use the generator concept. Thanks & Regards, |
Hi @fred-r , just to be clear, this is a missing feature (we neither have pre-build, post-build nor generator support in CMSIS-Build today) and it was not my expectation you can easily solve this based on the current version of cmsis-build, however for the purpose of prototyping I believe you could |
Hi @jkrech, Thanks for the tips. Point (a) is not so easy because the genrator is part of a pack so I need to find my way to the pack. I do not think we have variables for this except CMSIS_PACK_ROOT but this does not give the pack and its version. Point (b) => yes, this is what we do in our generator Point (c) => is it what you suggest to solve point (a) ? Thanks & Regards, |
Hi again, Itried your point (c) as follows:
So I declare my generator tool as an utility in the pdsc of the component.
/__INTERNAL__tools/build-system/scripts/build-cli.sh: line 274: 445408 Segmentation fault cbuildgen make ${OUTPUT_DIR}/${PROJ_NAME}.cprj --toolchain=${TOOLCHAIN} --outdir=${OUTPUT_DIR}/${BUILD_DIRECTORY} --intdir=${OUTPUT_DIR}/${BUILD_DIRECTORY} If I comment out the new line in the pdsc the segmentation fault disappears. Thanks & Regards, |
Follow-up : if I remove the attr="config" then the segmentation fault disappears
but I do not get my batch file locally. Anyway, I would be more interested in getting the path to the pack itself (this would give me access to my script but also the artefacts it requires). Thanks & Regards, |
Hi Fred, It is understood that this does not give you the invocation like from uVision out of the box but I was hoping you could work around this somehow until we have this functionality in the tools. Sorry if this wasn't helping. Regards, Joachim |
Hi Joachim, your idea was good, it helped in exploring a possibility, thanks. For the segmentation fault, I can reproduce it even if I remove the ".". Besides the "." is not an issue in this other component (but no attr="config"):
It might be difficult for you to reproduce it. Thanks & Regards, |
Hi Fred, I was able to reproduce the seg fault and to spot the root cause, thanks for reporting. It happens when generating the audit file, specifically when evaluating "config" files in a "generator" component. This is a bug and will be fixed for the next release. To get your "hack" working, you could declare and use a dedicated component without the generator attribute, for example removing the generator="STM32Cube_CodeGen" from the component you have described. Best regards |
Hi Fred Sorry for the delay, I missed the GitHub notification. Thanks |
Hi Daniel, thanks for the follow-up. Would it be possible to have an "atomic" API to invoke the generator ? Thanks & Regards, |
Hi Fred, My intention would be to create a separated make/cmake target to call the generator and set this target as a build dependency. Thanks |
Hi,
Using CMSIS-Buil 0.10.0, with a SW component that relies on a Generator.
The Generator command seems not to be called even though the Generator section is well found because the cbuildgen reports an error when not finding the expected gpdsc file.
The Generator is defined like below
and the .bat file is not called.
When using the same pack from Keil µVision 5.33, the generator script is being called as expected.
The text was updated successfully, but these errors were encountered: