I have experimented further and I am seeing some very odd things.
I took my project from my first post in this thread and removed the line that was causing an error from the scatter file because I needed to continue with the project.
Then I added some code at the end of main.c to catch an exception.
void UsageFault_Handler(void)
{
PRINTF("UsageFault \n");
while(1);
}
After adding this code, the provisioning tool reports the following error:
"Cannot parse SREC image converted from ELF. Details: data added to a segment must be adjacent to or overlapping with the original segment data"
The error is somehow related to how data and code are stored in the image. If I make the string in the PRINTF statement longer or shorter, the message dissapears.
The memory organization in my project seems to be causing problems, but as far as I can see I'm not trying to do anything out of the ordinary.
Is there anything with regard to memory organization that I need to be aware of when using the provisioning tool?
Best regards,
Jan