Become a leader in the IoT community!

New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!

Step 1 of 5

CREATE YOUR PROFILE *Required

Change Email
OR
Step 2 of 5

WHAT BRINGS YOU TO DEVHEADS? *Choose 1 or more

Collaboration & Work 🤝
Learn & Grow 📚
Contribute Experience & Expertise 🔧
Step 3 of 5

WHAT'S YOUR INTEREST OR EXPERTISE? *Choose 1 or more

Hardware & Design 💡
Embedded Software 💻
Edge Networking
Step 4 of 5

Personalize your profile

Step 5 of 5

Read & agree to our COMMUNITY RULES

  1. We want this server to be a welcoming space! Treat everyone with respect. Absolutely no harassment, witch hunting, sexism, racism, or hate speech will be tolerated.
  2. If you see something against the rules or something that makes you feel unsafe, let staff know by messaging @admin in the "support-tickets" tab in the Live DevChat menu.
  3. No age-restricted, obscene or NSFW content. This includes text, images, or links featuring nudity, sex, hard violence, or other graphically disturbing content.
  4. No spam. This includes DMing fellow members.
  5. You must be over the age of 18 years old to participate in our community.
  6. Our community uses Answer Overflow to index content on the web. By posting in this channel your messages will be indexed on the worldwide web to help others find answers.
  7. You agree to our Terms of Service (https://www.devheads.io/terms-of-service/) and Privacy Policy (https://www.devheads.io/privacy-policy)
By clicking "Finish", you have read and agreed to the our Terms of Service and Privacy Policy.

How can I see this debug message in this way any idea anyone?

void SysWriteDebugConsole(const char* s) {
  asm("mov r0, #0x04\n"  // SYS_WRITE0
      "mov r1, %[str]\n"
      "bkpt #0xAB\n"
      :
      : [str] "r"(s)
      : "r0", "r1");
}
  1. 32bitwidesaviour#0000

    Syswrite0 is mostly on semihosting debugging. Get debug tools

  2. undefined2001#0000

    Thanks man.

  3. undefined2001#0000

    I also found it

  4. undefined2001#0000

    now time to check if I can make it work

  5. umeshlokhande#0000

    You can use advance debugging tools like Ozone debugger that will allow you to do instruction tracing. Just note that you need J-Link debugger to use these tools. We’ll cover such debugging topics in upcoming EH events

  6. undefined2001#0000

    jlink is expensive 🤧

  7. daleonpz#0000

    i know, but do not buy the cheap chinese version, you’ll waste your money. I tried many of them and they never really work, negative reliability.. if you don’t have access to jlink but use an stm32 you could try stlink, they are cheaper and good for stm

  8. undefined2001#0000

    comes built in with nucleo board

  9. undefined2001#0000

    but saw there are some firmware to turn stlink into jlink

  10. undefined2001#0000

    Haven’t tried that

  11. daleonpz#0000

    that should be enough.. i wouldn’t recommend to reflash a tool unless you have some spare time to debug it or for learning purposes.. a tool should be something you can trust, and hacking it is a miss and hit

  12. daleonpz#0000

    miss or hit

  13. undefined2001#0000
  14. umeshlokhande#0000

    I think you’re talking about jlink-ob firmware to be used with stlink relash utility to convert on board stlink to jlink

  15. daleonpz#0000

    it sound great. try it, if you want 😉

  16. undefined2001#0000

    have you tried it before?

  17. umeshlokhande#0000

    yes

  18. undefined2001#0000

    does it work like a jlink?

  19. umeshlokhande#0000

    It’s the same as official jlink and works the same, compatible with all their advance debugging s/w

  20. undefined2001#0000

    it’s flashing time

  21. umeshlokhande#0000

    almost all aspects are the same incl. flashing time. The only thing is when it’s on-board jlink it’ll not be used with other micro’s apart from the one on the official board.

  22. undefined2001#0000

    We can break it of from nucleo board

  23. undefined2001#0000

    or is it limited by the particular MCU of that board ?

  24. umeshlokhande#0000

    yes, if you break it then you’ll use as a normal stlink only

  25. undefined2001#0000

    can’t use jlink firmware after breaking?

  26. umeshlokhande#0000

    unfortunately no

  27. undefined2001#0000

    but connections are all same

  28. undefined2001#0000

    seger protecting their product <:salute:1140055295092076615>

  29. undefined2001#0000

    @umeshlokhande ozone is really good

  30. undefined2001#0000

    it manages peripherals with good details

  31. undefined2001#0000

    debugging is really wonderful

  32. umeshlokhande#0000

    In a situation where basic debugging can’t help I found s/w like ozone very effective

  33. undefined2001#0000

    it’s fast and responsive

  34. umeshlokhande#0000

    I’d like to add a few more advantages, such as helping to locate dead code and identifying code hotspots in a larger codebase

  35. undefined2001#0000

    I converted back into stlink

  36. undefined2001#0000

    I saw JLink education which seems affordable to me

CONTRIBUTE TO THIS THREAD

Browse other questions tagged