Missing RAM functions from Execution Profile

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Missing RAM functions from Execution Profile

      Hi,

      I am debugging an externally built executable in Embedded Studio, my setup is NXP MIMXRT1060-EVK board + JLink.

      My main purpose is to profile my application, and I found Embedded Studio very good for that.
      it is the only tool I found so far to find hotspots with SWO PC Sampling, since it shows hit counts at instruction level.

      There is a major problem however,
      in the Execution Profile I can only see functions and instructions in flash.
      The code I mostly need to profile is running from SDRAM, at address 0x80000000-0x82000000.

      The Execution Trace view seems to collect RAM PC Samples, it shows addresses and correct symbols,
      but this data seems to be filtered away in the Execution Profile view.

      Am I missing some configuration? Any help would really be appreciated

      Thanks

      The post was edited 1 time, last by ballotz ().

    • Hello,

      Thank you for your inquiry.
      Such an issue is not known to us.
      Could you provide an example project for reproduction?

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      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,

      attached you can find the MCUXpresso project used to build the test application and the ES project used.
      I added a couple screen shots of Instruction Trace and Execution Profile taken with the project provided.

      Many thanks,
      Alessio
      Images
      • EP.PNG

        20.98 kB, 804×323, viewed 43 times
      • ET.PNG

        15.57 kB, 819×234, viewed 47 times
      Files
    • Hello,

      I gave the project a try on a generic MIMXRT1060-EVK board with the QSPI Flash selected.
      However the application would not download properly with Embedded Studio.
      Is there anything I have to consider here for the reproduction project?
      How was your eval board set up exactly?

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      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.
    • New

      Hi,

      just in case, I re-tryied the provided project, it downloads correctly and runs as I remember it did.

      The board setup should be the default MIMXRT1060-EVK setup, with QSPI Flash.
      I took a picture so you can check jumpers and switches.
      I connected the JLink through J21, the full 20 pins connector.

      The ES version I'm using is Release 4.50 / Build 2020021311.41397 ad it uses J-Link 6.62b

      I gave a try to the new Ozone 3.20b (uses a different JLink version) and it fails downloading the program.

      With my company we encountered troubles with newer Ozone/JLink versions and RT106x processors,
      leading to a bad state of the flash. I don't know if could be the case, I mentioned it just in case,
      I am going to open a thread about it soon.

      Thanks for the support.
      Alessio
      Images
      • IMG_0993_low.jpg

        879.52 kB, 1,632×1,224, viewed 2 times
    • New

      Hi Alessio,

      Ok I was able to Flash the application now.
      However it gets stuck in the ROM bootloader at 0x00200000 for me.
      I have the same jumper settings like on your board.

      Anything else that might need to be considered?
      If you do a erase of the external e.g. with J-Flash or J-Link Commander and then try to Flash the application you have attached. Does it run for you as expected?

      Regarding the profiling of RAM data via SWO, it is currently not fully supported but we are looking into it.

      Regarding the Ozone issue. Did you make sure your setup lets the ROM bootloader run through?
      Per default Ozone will try to launch the application from the elf base address and not the target specific boot address.
      For more information see here:
      wiki.segger.com/Debug_on_a_Tar…Bootloader#ROM_bootloader

      If I do this Ozone behaves just like Embedded Studio.

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      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.