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.
Hello,
I am using the TMS570LC4357 and I have a question about the initial configuration value for one of the system registers, General Purpose Register (GPREG1).
In HL_system.c the function systemGetConfigValue() returns either initial or current value for each register.
For the initial value of GPREG1 systemGetConfigValue() returns SYS_GPREG1_CONFIGVALUE.
SYS_GPREG1_CONFIGVALUE is defined in HL_system.c as follows
#define SYS_GPREG1_CONFIGVALUE 0x0005FFFFU
There does not appear to be anywhere within the HALCoGen generated code where GPREG1 is explicitly initialised.
The value of GPREG1 after reset is 0x00000000U - as defined in section 2.5.1.34 General Purpose Register (GPREG1) of the Technical Reference Manual TMS570LC43x 16/32-Bit RISC Flash Microcontroller (SPNU563A March 2018).
Can I therefore assume that the value of SYS_GPREG1_CONFIGVALUE as generated by HALCoGen is wrong and the correct configuration value should be 0x00000000U.
Thank you.
Hi Andrew,
I started to work on your issue and i will give you update soon.
--
Thanks,
Jagadish.
Hi Andrew,
I discussed with my internal team and i got confirmation that it is a HALCoGen Bug and initial value return by systemGetConfigValue function should need to be correct. Thanks for let us know this bug and we will fix this in next version of HALCoGen.
--
Thanks & Regards,
Jagadish.