This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wrong coding style in HalCogen

Other Parts Discussed in Thread: HALCOGEN

Hi,

I've noted a problem in the code generated by HalCogen that can drive to crypltic compilation error: not all the .h files using typedef types includes the definition of the latter.

For example the file "emac.h"  uses "uint32" "uint16" etc but does not includes "hal_stdtypes.h" (or "sys_common.h") where they are defined.

The generated code can be compiled because every source file including "emac.h" has the inclusion of "sys_common.h" before, but that's only a workaround, not the right way.

Note that if there's a file including "emac.h" without "sys_common.h" the compiler gives an error in "emac.h" not in the file using it so the debug is particulary cryptic.

BTW: I'm not sure if this is the right place for this post feel free to move it if required.

ciao,

Matteo