Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN
Good morning,
I am working with TMS570LC4357 (part: TMS5704357BZWTQQ1) and HALCoGen v04.07.01
I am using HALCoGen to configure various N2HET2 pins as inputs with pull-ups. I observed unexpected behavior for N2HET2[22], where pull-up selection in UI is not reflected in generated register configuration.
Steps to reproduce:
- Create new/clean HALCoGen project, Device: TMS570LC4357ZWT
- Navigate to 'HET2' tab, then to 'Pin 16-23' tab
- Scroll to Bit 22, select checkbox for 'Bit 22 Pullup', observe label HET2[22]
- Save project, generate code
- Navigate to HL_het.c
- Observe hetREG2->PSL = 0 (see line 2602)
- Inspect [projectname].dil
- Observe
DRIVER.HET.VAR.HET2_BIT22_PULDIS.VALUE=0x00000000,
DRIVER.HET.VAR.HET2_BIT22_PULL.VALUE=2, DRIVER.HET.VAR.HET2_BIT22_PSL.VALUE=0x00000000
As you can see, PULL.VALUE is 2 (expected when selecting pullup), but PSL.VALUE is still 0.
Additionally, I returned to the UI and selected pull up configuration for bits 21, 22, 23. I saw expected behavior for PSL value regarding bits 21 and 23. So, this seems to be specific to N2HET2[22].
I will add user code to force this pullup select, for now.
Thank you,
Savanah Evans