Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
3 answers
167 views

How to perform a MCU reset after a specific hardfault?

As I didn't find an existing questions on stackoverflow or on google, please find the context below. I'm investigating an issue leading to 2 different hardfaults on ARM Cortex-M33. The first one ...
Issylin's user avatar
  • 520
0 votes
0 answers
34 views

Conditional watchpoint on NXP LPC55S28

I need to debug a program that sets a specific memory location to 0 unexpectedly while running, leading to a hardfault down the line. I want to catch that memory write with a conditional watchpoint. ...
DarkFranX's user avatar
  • 500
3 votes
1 answer
761 views

How can I debug a HardFault on my STM32H743 when the recovered stack frame does not contain plausible information?

I am currently trying to track down the reason for a HardFault that sometimes occurs on my STM32H743. I was able to narrow down the culprit to a section of code of about ~200 lines. Now of course I ...
Jonarw's user avatar
  • 61
0 votes
0 answers
241 views

Booting the CPU through JTAG debugger. How to exit from debug state and start from newly added PC address

I would like to use the DAP interface in the cortexm4 processor to download application code into a memory that can be accessed by a JTAG debugger. For now, I wanted to follow the following steps ...
cher's user avatar
  • 11
0 votes
2 answers
3k views

Open OCD Error: libusb_open() failed with LIBUSB_ERROR_ACCESS on Windows 10 for STM32

I am trying to flash a code to a STM32F030R8T6 using Visual Studio Code and OpenOCD on Windows 10. I am also using STM32CubeMX to auto generate the beginning code and using a stlink v2. The computer ...
casual_ginger's user avatar
0 votes
1 answer
825 views

how does stack unwinding in cortex m devices works?

I can't find a good explanation for this anywhere - I'm using a cortex-m4 device (specifically, it's a STM32L4 discovery board) and I try to write a tool that will print the call stack for me (...
fptech20's user avatar
  • 163
1 vote
0 answers
44 views

MCU step by step debugging, how is pipeline treated?

guys. How cortex pipeline is working during step by step debugging? I can see registers and memory are changing every single step when using debugger. Does debugger commands to flush pipeline every ...
GONGDOL's user avatar
  • 11
0 votes
0 answers
189 views

cortex debug samd21 cortex M0+

Is anyone succesfully debugging a cortex M0+ board with vscode and cortex debug ? Let me explain, I have a personal borad build with an atsamd21e18a, when I start debug session it's ok debug starts ...
simon's user avatar
  • 1,214
0 votes
0 answers
1k views

application not working after debug session and reset stm32

I'm new member of this community. I've a custom board using stm32l431cct6 microcontroller and I have a strange iussue after program the boards with Keil uVision or Eclipse IDE. I'm working with a ...
Matt92's user avatar
  • 1
1 vote
1 answer
61 views

How to debug IACCESS violation memfault in Arm CortexM

When the PC value gets corrupted due to any reason, there can be an IACCESS fault. How can we find out which was the previous instruction (address of previous instruction) being executed before the ...
Kishore SN's user avatar
0 votes
1 answer
440 views

How do I best convert source paths in a linux ELF file to debug the ELF file on Windows

I am planning to run U-boot on an ARM based (Cortex-R5 BIG ENDIAN) embedded system. U-Boot will run as a second level bootloader on top of a 1st level bootloader developed using IAR Embedded Workbench ...
Ulf Samuelsson's user avatar
4 votes
0 answers
3k views

Debugging STM32 with OpenOCD, STM32 for VSCODE won't work or flash, Configuration issue maybe?

First and for most I googled a lot and Its been a week of searching with no solution at all. Please bare with me! I tried to add all necessary info! Please request more If you need. My problem is: I ...
The_M_Code's user avatar
5 votes
2 answers
1k views

Conditional data watchpoint doesn't work in ARM GDB

My intent is to be able to catch when a global variable has some exact value. GDB has data watchpoints according to which this can be implemented. Consider this simple program written for x86 Linux: ...
Maximilian Gerhardt's user avatar
1 vote
0 answers
386 views

Do i need a segger j link base to flash a arm cortex m soc?

I have a arm cortex m based micro controller. I need to update firmware in it. I was suggested to buy a segger j link base(which is a bit costly) to upgrade firmware. I read a bit about segger j link ...
husgor's user avatar
  • 51
0 votes
2 answers
165 views

DS-5 configuration for Cortex-M7

I'm starting my very first project with arm device. Concretely, I'd like to do some image processing on the cortex-M7 programming in C/C++. I got the DS-5 community working just fine and I'm following ...
karl71's user avatar
  • 1,092

15 30 50 per page