TMS470 HET Question
I'm in the process of evaluating Crossworks for ARM 2.0.3 and I'm trying to get a simple HET program working on my Olimex TMS470-P256 board (the board is based on a TMS470R1A256 chip). I created a HET project and made the HET project a dependency of my main project. However, I get an unresolved reference error:
undefined reference to `e_HETPROGRAM0_UN'
This symbol is defined in the main_het.h header file that is generated by the HET project:
extern volatile HETPROGRAM0_UN e_HETPROGRAM0_UN;
However, the linker cannot resolve the reference.
Can anyone help me get this working?
Thanks!
P.S. I ZIPped up the entire directory and attached the .ZIP file to this post.
/attachments/token/yfsmn04ueseh6by
/attachments/token/jsca9vzcka0ec5e
-
I remember this now - we don't support the struct access to the HET RAM - you'll have to do the access using a cast e.g.
//unsigned tmp = HET_L00_0.memory.control_word & 0x000FFFFF; // RETRIEVE THE PULSE WIDTH COUNT
unsigned tmp = ((HETPROGRAM0_UN*)(&HETRAMStart))->Program0_ST.L00_0.memory.control_word & 0x000FFFFF; // RETRIEVE THE PULSE WIDTH COUNT
Please sign in to leave a comment.
Comments
3 comments