Tool/software: TI C/C++ Compiler
Hello,
I want to run a smal program on the chip. I faced two main problems:
- the first is that if I do the array initialization in this way :
xmss_params params;
// TODO test more different OIDs
uint32_t oid = 0x00000001;
/* For WOTS it doesn't matter if we use XMSS or XMSSMT. */
xmss_parse_oid(¶ms, oid);
unsigned char seed[params.n];
Th program enter in a infinite loop.
To solve that i defined manually the size of the arrays. e.g.
unsigned char seed[32];
Which is not practical. Is it another solution for that?
- The second problem is: when I add code lines to the main function, the program stopped in the first line, and the debugger indicates these code line data entry:
resetEntry
b resetEntry
undefEntry
b undefEntry
svcEntry
b svcEntry
prefetchEntry
b prefetchEntry
dataEntry
b dataEntry
b phantomInterrupt
ldr pc,[pc,#-0x1b0]
ldr pc,[pc,#-0x1b0]
When I delete the last code lines and minimize the size of main function, the error disappears.
Bests,
Rachel.