esa / asn1scc

ASN1SCC: An open source ASN.1 compiler for embedded systems
https://www.thanassis.space/asn1.html
Other
272 stars 58 forks source link

ACN headers Not correct #314

Closed ErfanBabakhani closed 2 months ago

ErfanBabakhani commented 2 months ago

Hello I use 4.5.2.1 for your calculate_crc test in Doc/example but after running your given command in Command.txt for generating c code I see the asn1crt_encoding_acn.c and asn1crt_encoding_acn.h are not correct asn1crt_encoding_acnC.txt asn1crt_encoding_acnHeader.txt I change them to .txt the first one is asn1crt_encoding_acn.c second is asn1crt_encoding_acn.h

you can see their aren't equal as what exist in your Doc/example same files

Regards

maxime-esa commented 2 months ago

Indeed, the problem is in the Makefile. At the call of asn1scc it should contain two additional flags: -if Acn_Dec_Int_PositiveInteger_ConstSize -if Acn_Enc_Int_PositiveInteger_ConstSize

You may add them manually in the meantime, the example will build properly afterwards.

maxime-esa commented 2 months ago

I fixed the two Makefile in the master branch, if you update you'll get it fixed and make cTest will work