W38 have 512KB flash, when try to program a bin or S19 which is larger than 256KB with Jflash GUI, it always says selected data does not fill into selected flash sector, refer to below figure 1. But with same image if I use jlink command to download, it can success, log can refer to below figure 2, also tried to download with IAR+JLINK, it can also download well. not sure why Jflash GUI can't work, need expert's support.
[SOLVED] Jflash GUI can't support >256KB image programing for KW38
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
Hi,
it works with the J-Link Commander, because you are flashing different files.
.bin files do not contain any address information, nor do they specify empty ranges, s19 files do.
Thus, J-Flash has to assume that it is a continuous block of data that you are trying to program.
The flash on the MKW34A512 devices is split in two parts, that are not next to each other (2x256KB, 0x0000_0000 - 0x4_0000 and 0x1000_0000 - 0x1004_0000).
So J-Flash correctly points out, that continuous 512 KB do not fit in the selected address range.
If you use the s19 file instead of the bin file, it should work.
BR
FabianPlease read the forum rules before posting.
Keep in mind, this is *not* a support forum.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support you can contact us via our support system: segger.com/ticket/
Or you can contact us via e-mail. -
-
Hi,
Sorry for the delay in response.
It seems like I misjudged where the problem was originating from:
J-Flash does not accept aliased areas but only the actual flash areas for programming.
On the KW38 devices, the flash from 0x1000_0000 - 0x1004_0000 is aliased to 0x4_0000 onward.
It seems like the data file was created using the aliased flash area.
Could you please try the following J-Flash + command line?
%JLinkInstDir%\JFlash.exe -openprj%KW38ProjectPath% -open%PathToDataFile%\ble_shell_frdmkw38.bin,0x0 -delrange0x0,0x3FFFF -relocate0x0FFC0000 -merge%PathToDataFile%\ble_shell_frdmkw38.bin,0x0 -delrange0x40000,0x7FFFF
You would have to replace the following:
%JLinkInstDir% == Install directory of the J-Link Software
%KW38ProjectPath% == J-Flash project file path
%PathToDataFile% == Directory containing the data file
This should also work with the .s19 file instead of .bin.
The Command line will open the J-Flash project with a data file containing the data in the correct ranges.
Best regards,
FabianPlease read the forum rules before posting.
Keep in mind, this is *not* a support forum.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support you can contact us via our support system: segger.com/ticket/
Or you can contact us via e-mail.
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0
-
Tags