Hello,
I have 2 N2HET program (A and B). I had to cut down a bigger program in 2 because of the limitation on the number of instructions.
Thus, A and B have 1 instruction in common that enable HTU transfer, but this instruction is not at the same address in both program.
In my sys_main this is what I do:
- Setup every registers and peripheral (N2HET, DCP of HTU,...)
- load program A in the N2HET RAM
- run the program A
- Wait until I have received the required number of data transferred by the HTU
- disable the N2HET
- Load program B in the N2HET RAM
- disable HTU, and re-configure the DCP with the new address of the instruction in the program B, then enable HTU again
- Run program B
Result:
When I look into the buffer after the program A, the HTU has correctly transferred the number of data I was expected to receive.
but the HTU seems to be disabled for the second program.
Do you have any idea on how I can implement this, when I try to modify the DCP, nothing happens
thank you
Brice