I'm implementing an open loader (actually I had it working on the ST-Link debugger but that sw has bugs) and I'm using IAR EWARM. I see the wiki page for the open loader specifies that all the code should be in a section called PrgCode and all program data should be in a section called PrgData. I have all my Init() functions and friends implemented and my struct FlashDevice filled out etc.
I'm getting an error when loading the openloader in jlink "****** Error: Error while loading flash algo ELF file: C:\Program Files (x86)\SEGGER\JLink\W25QXX_EXT.elf
No valid device has been selected."
I looked at the elf file of one of the compiled openloaders and noticed that my IAR elf file differs in that the section headers of mine are named differently. Before I get into the details of that, I was wondering if there is a document that specifies exactly what jlink is looking for in the elf file in order to load the code and data into memory? For example, is it looking for two Program headers, one for code and data and the other for the info? Is it looking for section headers? When does it look for the Init() (and friends) function address?
I'm getting an error when loading the openloader in jlink "****** Error: Error while loading flash algo ELF file: C:\Program Files (x86)\SEGGER\JLink\W25QXX_EXT.elf
No valid device has been selected."
I looked at the elf file of one of the compiled openloaders and noticed that my IAR elf file differs in that the section headers of mine are named differently. Before I get into the details of that, I was wondering if there is a document that specifies exactly what jlink is looking for in the elf file in order to load the code and data into memory? For example, is it looking for two Program headers, one for code and data and the other for the info? Is it looking for section headers? When does it look for the Init() (and friends) function address?