dnfuss Community Member

  • Member since Sep 23rd 2020
Last Activity

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

  • dnfuss -

    Replied to the thread 'program 1 over 0' error on single step.

    Post
    Hi Nino It's okay- I think the issue is with the Freescale LMEM cache block-If I disable caching in the bootloader, it look like I'm at last able to step and debug as expected in ext.flash (so far, so good anyway...) If this is the cause, I'd really…
  • dnfuss -

    Replied to the thread 'program 1 over 0' error on single step.

    Post
    Hi Nino I have attached a Jlink logfile indicating an instance of this. Some background: My setup is that I am using a Kinetis K60 MCU with an external flash bank. I have a bootloader which runs in internal flash, performing the low-level…
  • dnfuss -

    Posted the thread 'program 1 over 0' error on single step.

    Thread
    I'm experiencing a similar issue as described here J-Link Programming Failed messages and was hoping to see a resolution- I am able to download and run my application in external flash. After reaching a breakpoint, I can single-step 2 or 3 times before…
  • dnfuss -

    Replied to the thread [SOLVED] BreakPoint callback on function name.

    Post
    Hi Nino Thanks for your response- Since posting this, I believe this issue might relate to a more significant issue for me where during the target download phase, where I'm seeing the "Timeout while checking target RAM , core does not stop message",
  • dnfuss -

    Replied to the thread [SOLVED] BreakPoint callback on function name.

    Post
    Thank you Nino, that's what I was looking for. However, I've noticed that I have to insert a delay which isn't present in the automation example in order for things to work; Break.SetOnSrc("TriggerFunc"); Util.Sleep(5000); // Without this, the…
  • dnfuss -

    Replied to the thread [SOLVED] BreakPoint callback on function name.

    Post
    Actually, I think I can do what I need as follows: Break.SetOnSrc("function_name") g_var = Elf.GetExprValue("function_name") void AfterTargetHalt() { if (g_var == Target.GetReg("PC")) { // Execute callback here } } Hoped there might be a more…
  • dnfuss -

    Replied to the thread [SOLVED] BreakPoint callback on function name.

    Post
    I'm looking for a way to execute a breakpoint callback when halted on the BP that was set using Break.SetOnSrc() which defined the function name (i.e. not the source location) This sounds like it would fit the bill- Just wondering if it ever got…
  • dnfuss -

    Posted the thread [SOLVED] BreakPoint callback on function name.

    Thread
    Actually, I think I can do what I need as follows: Break.SetOnSrc("function_name") g_var = Elf.GetExprValue("function_name") void AfterTargetHalt() { if (g_var == Target.GetReg("PC")) { // Execute callback here } } Hoped there might be a more…
  • dnfuss -

    Replied to the thread [SOLVED] Ozone hanging when loading code into external flash.

    Post
    Hi Nino If it does, the questions is why the debugger is not allowed to access it during debug. This is exactly the question- Execution runs perfectly in external flash when programmed with JFLASH, so I have raised a support ticket as you…
  • dnfuss -

    Replied to the thread [SOLVED] Ozone hanging when loading code into external flash.

    Post
    Hi Nino That's correct, the FlexBus init is done in the bootloader. I don't believe we have a chip-specific issue since when we're using JFLASH, we have to add the same init steps to the *.jflash project, and that's all working fine. I'm unsure from…
  • dnfuss -

    Replied to the thread [SOLVED] Ozone hanging when loading code into external flash.

    Post
    Hi Nino Thank you for your reply The external flash is connected via the K60's FlexBus interface. It's a Spansion/Cypress device (S29GL128S), and although not listed in your 'supported devices', we're able to read and write to it using JLINK via JFLASH…
  • dnfuss -

    Posted the thread Target Connection Lost when attaching to running program.

    Thread
    Hi My application has a bootloader which runs in the K60 internal flash, then jumps to an entry routine in an external flash bank. I can debug the bootloader perfectly, but as the transition to loading the external flash code is proving tricky, I'm…
  • dnfuss -

    Posted the thread [SOLVED] Ozone hanging when loading code into external flash.

    Thread
    Hi I'm attempting to create an Ozone project which permits the debugging of some code that lives in an external flash bank. There is also a bootloader which runs in the internal flash of the K60. After some guidance on this forum, I have the process…
  • dnfuss -

    Replied to the thread [SOLVED] Unexplained HardException fault.

    Post
    Hi Fabian -thanks for responding so quickly! Yes, in fact it is the bootloader elf that I am debugging. I've applied the recommended tweak to the setting of PC and SP as per wiki.segger.com/Debug_on_a_Target_with_Bootloader and it's now working, so…
  • dnfuss -

    Posted the thread [SOLVED] Unexplained HardException fault.

    Thread
    Hi I'm seeing something odd in Ozone... If I create a new project (without specifying JLINK settings )and load an elf file, Ozone is happy to download that to my target, provided the connected JLINK has already been configured for the target. If I…
  • dnfuss -

    Replied to the thread [SOLVED] JLink script to set RTC in K60.

    Post
    Hi Alex Thank you for your response- I've figured out what I was doing wrong-which was that the perhiperal registers are only accessible once the corresponding SIM has its clock enabled- Like I said, I'm something of a a noob. Anyway, the extract below…
  • dnfuss -

    Posted the thread [SOLVED] JLink script to set RTC in K60.

    Thread
    Hi I'm a newcomer to the capabilities of Jlink, and am investigating the possibility of using Jlink (and/or associated utilities) to set the RTC within an NXP K60. On the surface of it, I think it ought to be possible using a (dynamically…