is there any reason why a program is running good with jtag , but not running good when booting from flash( after loading hex file to flash) ?
Some of the lIkely reasons are that the flash image (i.e. the LDR file) is not constructed correctly for the flash device, or that an init file for initializing the external memory was not included in the LDR file.
I'm working with custom board with bf 547.
I'm putting the processor in secure mode and than I decrypt my code with AES algorithm , and place the decrypted code in code section (0xffa00000) . everything is working fine until I disconnect the jtag and try to boot from flash.
when the code is running with jtag there are some read and right from flash tasks that are working as expected .
I guess that mean that the external memory is configured correctly .
The code without encryption works fine and also works good when I decrypt it , not in secure mode .
Any idea why it's happening ?
I forgot to mention .
When I'm working with jtag and the option "Use xml reset values" is Unmarked, the program crash in or right before the "raise 2" command . I don't no if it crashes from the same reason that it doesn't boot from flash but it could be .
Maybe there is something missing in the initialization of my system ?
thanks in advance ,
This looks like a duplicate of your other thread, here, which is now being dealt with by private support. As per the other thread, please continue to discuss this issue via private support, and I will lock this thread (and post the outcome of the private support request - if appropriate - to the other thread.
Retrieving data ...