-
Notifications
You must be signed in to change notification settings - Fork 108
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
generated code of enumeration type error(default uint8_t) #32
Comments
我自己解决了,测试没有问题。 1、fidl文件:
2、fdepl文件增加:
3、general代码:
|
I seem to get the same result by simply running the core and someip generators with the deployment file. I'm using 3.2.14. So in your example, I would achieve the same by doing:
|
Hello, Issue:
}** Step2: We faced the compilation error as overflow because the default backingtype for enum in 3.2.0 is uint8_t. **import "CommonAPI-4_deployment_spec.fdepl" define org.genivi.commonapi.core.deployment for typeCollection example.abcd.Types { Step 4: For the specific enum where the backend type is int16_t we see the signature i still as "y"(byte) where as the payload is 2 byte.This results in the disconnection of dbus with error as corrupted message. Below are the contents for the error. Corrupted message stream, disconnecting Step 5 : Generate: execute_process(COMMAND ..../commonapi-generator/commonapi-core-generator-linux-x86_64 -sk -d ${DEST_PATH}${fidl_name} ${FIDL_DIR}/${FIDL_PATH} ${FIDL_DIR}/deployment.fdepl RESULT_VARIABLE res) Please suggest if something has been missed in the deployment.fdepl. |
Hmm, I doubt it's the same cause, but it sounds a little related to COVESA/capicxx-someip-runtime#37 - though I only saw that issue after 3.2.0. But this PR does point out a good place to check if your values are being deserialized properly in the someip runtime layer. |
This issue we are facing in dbus runtime |
I use newest version of tool(v3.2.0.1) to generate code by .fidl file:
Using Franca Version 0.13.1.201807231814
and CommonAPI Version 3.2.0.v202012010850
In .fidl file, I define a enumeration :
The generated code:
I think default type uint8_t is wrong, it need uint32_t.
The text was updated successfully, but these errors were encountered: