Other Parts Discussed in Thread: HALCOGEN
I want to use the two N2HETs in my TMS570, one for emulating a UART and one for a second I2c bus. The UART has been working just fine for some time, and now I am adding the I2c separately. In both cases, I am using the TI examples. I tweaked the UART a tiny bit, but have not yet changed the I2c at all.
I'm essentially the IDE only to generate the code (e.g. HET_EMU_I2C.c and HET_EMU_I2C.h). Not to do any emulation. In HAL, I'm specifying the .h and .c files for the UART emulator in NHET Driver Settings for HET1 and similarly for the I2c emulator in HET2.
I have a couple problems for which I am looking for advice.
(a) When the line labels in the HET code are turned into C code, there is nothing added relating (say) to the name of the HET file so that the header files generated by the HET IDE for the two programs have colliding definitions. For example both HET programs have a label Check_Stat1, and the HET IDE generates labels pHET_CHECK_STAT1_0 for both header files. I can, of course, go through the HET files and de-duplicate the labels, but somehow the _0 on the end implies to me that the IDE might now how to change the #defines if I know how to tell it correctly.
(b) Similarly, these header files define "HET_v2" to be 1, while std_nhet.h (generated by HAL) defines it to be 0. The right thing happened with only a single HET program. However, there are incompatible redefinitions when I'm combining two separate IDE-generated files.
Do you think I am using these tools incorrectly so they are generating header files wrong? Thanks!