book icon indicating copy to clipboard operation
book copied to clipboard

GDB blocks after running the continue command in 2.2-hardware

Open BikiniBottomsVeryOwn opened this issue 3 years ago • 1 comments

Screenshot from 2022-10-18 02-02-15 Screenshot from 2022-10-18 02-02-39
Screenshot from 2022-10-18 02-04-41
Screenshot from 2022-10-18 02-02-58

using with the multiarch setup on ubuntu 22.04

BikiniBottomsVeryOwn avatar Oct 18 '22 07:10 BikiniBottomsVeryOwn

@BikiniBottomsVeryOwn - if you have the same hardware as the book, in 2.2 hardware, there's a note:

NOTE If GDB blocks the terminal instead of hitting the breakpoint after you issue the continue command above, you might want to double check that the memory region information in the memory.x file is correctly set up for your device (both the starts and lengths).

In which case, make sure your LENGTH for RAM is 40k (RAM : ORIGIN = 0x20000000, LENGTH = 40K) and not 64k which is the default when you clone/generate from the template.

E.g.

$ cat memory.x
/* Linker script for the STM32F303VCT6 */
MEMORY
{
  /* NOTE 1 K = 1 KiBi = 1024 bytes */
  FLASH : ORIGIN = 0x08000000, LENGTH = 256K
  RAM : ORIGIN = 0x20000000, LENGTH = 40K
}

mavjs avatar Nov 15 '22 16:11 mavjs