Tuesday, January 23rd 2018, 7:09am UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

kgraefe

Beginner

Date of registration: Jun 28th 2017

Posts: 2

1

Monday, January 8th 2018, 4:08pm

JLinkDevices.xml: Add multiple configurations for the same chip

I have two devices using the NXP MKL82Z128xxx7 with different clock settings and QSPI chips. Therefore I need to use different flashloader files for debugging and flashing. Is it possible to add multiple configurations to the JLinkDevices.xml?

This is what I already tried:

<Device>
<ChipInfo Vendor="NXP" Name="MKL82Z128xxx7" WorkRAMAddr="0x1FFFA000" WorkRAMSize="0x18000" Core="JLINK_CORE_CORTEX_M0" />
<FlashBankInfo Name="QSPI" BaseAddr="0x68000000" MaxSize="0x02000000" Loader="TWRKL82Z72M.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
</Device>
<Device>
<ChipInfo Vendor="NXP" Name="MKL82Z128xxx7-Custom" WorkRAMAddr="0x1FFFA000" WorkRAMSize="0x18000" Core="JLINK_CORE_CORTEX_M0" />
<FlashBankInfo Name="QSPI" BaseAddr="0x68000000" MaxSize="0x02000000" Loader="TWRKL82Z72M-Custom.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
</Device>

When I select "MKL82Z128xxx7" in J-Flash it knows about the internal flash and the QSPI (Size: 128 KB + 16 MB). When selecting "MKL82Z128xxx7-Custom" the itnernal flash is not recognized (Size: 16MB), even if I use the same ELF file.


Apparently I shouldn't change the name attribute for the second device. Is there another way to have two configurations?

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 567

2

Wednesday, January 10th 2018, 3:14pm

Hello,

Thank you for your inquiry.
Currently there is now way to store two different configurations for the same device.
By naming the device "MKL82Z128xxx7-Custom" you essentially created a completely new device which only has the provided information from the .xml.
Any other memory (e.g. internal Flash) is not known for this configuration.

We are currently working on a solution to store multiple configurations for such cases as yours and it is expected to be released by the end of Q1 2018.

Best regards,
Nino