Not sure if this needs to be in the SES or J-Link forums since it isn't clear what part of the process is failing.
Using SES 6.32 I am creating an application for the STM32L062K8U6 on a custom PCB. I have code that works correctly when I do "Build->Build and Run". The output window says that it is downloading the ELF file, which is 57kb. In the project options Common->Linker setting I have the HEX file enabled as an additional output. In contrast to the 57kb ELF file the HEX file is 5kb which is an immediate cause for suspicion. When I select this file as the source for both J-Flash and J-Flash Lite the tool says it programs the device, but the code is clearly not executing correctly (as an aside, I don't understand why Segger's own tool won't use their own ELF format). It is not clear what part of this process I can troubleshoot. I have tried generating HEX, BIN, and SREC, none work.
In the SES options, there is the "Additional Output File Gap Fill Value" field, but when I pick one of the macros for that the HEX file is still 5kb. When selecting the STM32L062K8U6 as the device to be programmed in the J-Flash utilities, there is an "allow extra optional bytes" version, and there is a choice of picking "big endian" or "little endian", but it is also not clear how I would verify which of these options would be correct, if I'm picking the wrong ones (I leave these at default).
Using SES 6.32 I am creating an application for the STM32L062K8U6 on a custom PCB. I have code that works correctly when I do "Build->Build and Run". The output window says that it is downloading the ELF file, which is 57kb. In the project options Common->Linker setting I have the HEX file enabled as an additional output. In contrast to the 57kb ELF file the HEX file is 5kb which is an immediate cause for suspicion. When I select this file as the source for both J-Flash and J-Flash Lite the tool says it programs the device, but the code is clearly not executing correctly (as an aside, I don't understand why Segger's own tool won't use their own ELF format). It is not clear what part of this process I can troubleshoot. I have tried generating HEX, BIN, and SREC, none work.
In the SES options, there is the "Additional Output File Gap Fill Value" field, but when I pick one of the macros for that the HEX file is still 5kb. When selecting the STM32L062K8U6 as the device to be programmed in the J-Flash utilities, there is an "allow extra optional bytes" version, and there is a choice of picking "big endian" or "little endian", but it is also not clear how I would verify which of these options would be correct, if I'm picking the wrong ones (I leave these at default).