Hello!
Why very simple program listed in "NHET getting started" application note spraba0b.pdf does not working?
Breakpoint from HET modules is generated and the only way to continue debug or work is set bit0=0 in HETGCR.
Registers value after stopping program execution (program is stopped at small time after starting N2HET):
HETEXC2 = 0x100
HETPAR = 0x20
I write PFR = 0x700 for lr=128, GCR is 0x00070001
If I add six instructions in .het file without changing other files
BR { next= L00, cond_addr= L00, event = ZERO}
BR { next= L00, cond_addr= L00, event = ZERO}
BR { next= L00, cond_addr= L00, event = ZERO}
BR { next= L00, cond_addr= L00, event = ZERO}
BR { next= L00, cond_addr= L00, event = ZERO}
BR { next= L00, cond_addr= L00, event = ZERO}
then program begin to work.
The key problem is that I not use halcogen to clear HETRAM and HETRAM is overwriten only by my het program without clearing before writing. And other (unused!) commands in HETRAM is executed because of bug in RM48L952 chip.
For testing, you may fill HETRAM to 0xFF before loading user program, and het program after loading to HETRAM from that application note will not work.
There is need to have unknown at this moment number of instructions that will not stop N2HET module (no breakpoint bit).