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.

Bug in HWREG macro since HALCoGen 3.04.00

Other Parts Discussed in Thread: HALCOGEN

Hello,

I found a bug in the HWREG macro in hw_reg_access.h with HALCoGen 3.04.00.

Old definition:

#define HWREG(x)                                                              \
        (*((volatile unsigned long *)(x)))

New definition:

#define HWREG(x)                                                              \
        (*((volatile uint64 *)(x)))

unsigned long is 32bit. This leeds to many wrong initialised registers in emac and mdio and therefore to a not functional ethernet.

There is also a problem for me to fix it, because if I change uint64 to uint32 (it will work then) and generate a new code with HALCoGen my changes were lost.

Any suggestions how to solve it?

Best regards

Christian

  • Hi Christian

    Sorry for the inconvinence, Appriciate you sharing this on Forum.

    This issue has been raised to HALCoGen team couple of days back, This will be resolved in the next release.

    Regards
    Prathap

  • Hi Christian,

            Just to add to Prathap's comment.   You can have a try to use the hw_reg_access.h file in the old version to replace the same name file in the new version. Maybe that will solve your problem. 

             The path of the file is:

                 \HALCoGen\v3.03.01\drivers\TMS570LS3137ZWT\EMAC570v000

                \HALCoGen\v03.04.00-Alpha\drivers\TMS570LS3137ZWT\EMAC570v000

             Hope that this may help you.

    Best Regards,
    Shelford

  • Hi.

    Thanks for the suggestions. This can be a solution until fixed HALCoGen will be released. BTW: Is there a release date already known?

    Best Regards

    Christian

  • Hi Christian,

          HALCoGen V3.04.00 is just released in January 2013. Maybe you need to wait some time for a new version.  I will keep you updated  when we have the specific schedule.  Thanks.  Have a good day.

    Best Regards,
    Shelford