Hello,
I'm adding support for our custom hardware using the open flashloader and using it in JFlash. (Using a J-link plus to connect if this matters)
I see from here wiki.segger.com/Open_Flashloader#Init that 1 is an error code, but when I manually return an error in flash algorithm functions like SEGGER_OPEN_Read and SEGGER_OPEN_Erase, nothing happens and it shows up as successful in J-Flash. It only shows a RAMCode error with returning 1 in Uninit. (I don't know if this is a bug or what I'm asking below.)
Thus, I'm wondering if it is possible for J-Flash choose to use it's own flash programmer instead of using the openflashloader, .elf I've specified in JLinkDevices.xml. Our custom device uses external serial SPI flash, so we must run our flashloader methods.
edit: It looks like I do not have this problem with SEGGER_OPEN_Program right now, when I select program on jflash it runs and returns whatever error code I give. Just erase I'm running into the above problem.
Thanks,
I'm adding support for our custom hardware using the open flashloader and using it in JFlash. (Using a J-link plus to connect if this matters)
I see from here wiki.segger.com/Open_Flashloader#Init that 1 is an error code, but when I manually return an error in flash algorithm functions like SEGGER_OPEN_Read and SEGGER_OPEN_Erase, nothing happens and it shows up as successful in J-Flash. It only shows a RAMCode error with returning 1 in Uninit. (I don't know if this is a bug or what I'm asking below.)
Thus, I'm wondering if it is possible for J-Flash choose to use it's own flash programmer instead of using the openflashloader, .elf I've specified in JLinkDevices.xml. Our custom device uses external serial SPI flash, so we must run our flashloader methods.
edit: It looks like I do not have this problem with SEGGER_OPEN_Program right now, when I select program on jflash it runs and returns whatever error code I give. Just erase I'm running into the above problem.
Thanks,
The post was edited 4 times, last by fire ().