Загрузка данных
(gdb) load
Loading section rom_start, size 0x2278 lma 0x60000000
Loading section text, size 0xec878 lma 0x60002280
Loading section .ARM.exidx, size 0x8 lma 0x600eeaf8
Loading section initlevel, size 0x188 lma 0x600eeb00
Loading section device_area, size 0x384 lma 0x600eec88
Loading section sw_isr_table, size 0x470 lma 0x600ef00c
Loading section _static_thread_data_area, size 0x90 lma 0x600ef47c
Loading section dma_driver_api_area, size 0x28 lma 0x600ef50c
Loading section entropy_driver_api_area, size 0x8 lma 0x600ef534
Loading section flash_driver_api_area, size 0x18 lma 0x600ef53c
Loading section gpio_driver_api_area, size 0x24 lma 0x600ef554
Loading section i2c_driver_api_area, size 0x18 lma 0x600ef578
Loading section i2s_driver_api_area, size 0x14 lma 0x600ef590
Loading section clock_control_driver_api_area, size 0x1c lma 0x600ef5a4
Loading section mdio_driver_api_area, size 0x18 lma 0x600ef5c0
Loading section uart_driver_api_area, size 0x4c lma 0x600ef5d8
Loading section ethphy_driver_api_area, size 0x28 lma 0x600ef624
Loading section net_l3_register_area, size 0x30 lma 0x600ef64c
Loading section net_socket_register_area, size 0x10 lma 0x600ef67c
Loading section log_const_area, size 0x188 lma 0x600ef68c
Loading section log_backend_area, size 0x10 lma 0x600ef814
Loading section input_callback_area, size 0x24 lma 0x600ef824
Loading section shell_area, size 0x30 lma 0x600ef848
Loading section shell_root_cmds_area, size 0x40 lma 0x600ef878
Loading section shell_subcmds_area, size 0x3ac lma 0x600ef8b8
Loading section shell_dynamic_subcmds_area, size 0x24 lma 0x600efc64
Loading section tdata, size 0x8 lma 0x600efc8c
Loading section rodata, size 0x397b4 lma 0x600efc94
Loading section nocache, size 0x3800 lma 0x60129848
Loading section .ramfunc, size 0x80 lma 0x6012d048
Loading section datas, size 0x549c lma 0x6012d0c8
Loading section device_states, size 0x34 lma 0x60132564
Loading section log_mpsc_pbuf_area, size 0x40 lma 0x60132598
Loading section log_msg_ptr_area, size 0x4 lma 0x601325d8
Loading section log_dynamic_area, size 0xc4 lma 0x601325dc
Loading section k_mem_slab_area, size 0xfc lma 0x601326a0
Loading section k_heap_area, size 0x3c lma 0x6013279c
--Type <RET> for more, q to quit, c to continue without paging--c
Loading section k_mutex_area, size 0xc8 lma 0x601327d8
Loading section k_msgq_area, size 0xf0 lma 0x601328a0
Loading section k_sem_area, size 0xd8 lma 0x60132990
Loading section net_buf_pool_area, size 0xb0 lma 0x60132a68
Loading section net_if_area, size 0x44 lma 0x60132b18
Loading section net_if_dev_area, size 0x28 lma 0x60132b60
Loading section net_l2_area, size 0x14 lma 0x60132b88
Loading section usbd_context_area, size 0x74 lma 0x60132b9c
Loading section usbd_class_fs_area, size 0x18 lma 0x60132c10
Loading section usbd_class_hs_area, size 0x18 lma 0x60132c28
Loading section usbd_msc_lun_area, size 0x10 lma 0x60132c40
Loading section .last_section, size 0x4 lma 0x60132c50
Start address 0x8001a5c8, load size 1255492
Transfer rate: 12 KB/sec, 1859 bytes/write.
(gdb) info break
Num Type Disp Enb Address What
1 hw breakpoint keep y 0x8004de50 in z_cstart at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/kernel/init.c:777
breakpoint already hit 1 time
2 hw breakpoint keep y 0x8001ad02 in mpu_configure_regions_from_dt
at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/arch/arm/core/mpu/arm_mpu.c:114
breakpoint already hit 1 time
3 hw breakpoint keep y 0x8001ae70 in arm_core_mpu_enable at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/arch/arm/core/mpu/arm_mpu.c:288
breakpoint already hit 1 time
(gdb) c
Continuing.
Breakpoint 1, z_cstart () at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/kernel/init.c:777
777 z_sys_init_run_level(INIT_LEVEL_EARLY);
(gdb) c
Continuing.
Breakpoint 2, 0x8001ad02 in mpu_configure_regions_from_dt (reg_index=<optimized out>) at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/arch/arm/core/mpu/arm_mpu.c:114
114 num_regions = mem_attr_get_regions(®ion);
(gdb) c
Continuing.
Breakpoint 3, arm_core_mpu_enable () at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/arch/arm/core/mpu/arm_mpu.c:288
288 MPU->CTRL = MPU_CTRL_ENABLE_Msk | MPU_CTRL_PRIVDEFENA_Msk;
(gdb) p/x mpu_config.mpu_regions[0]
Cannot access memory at address 0x305f48
(gdb) stepi
0x8001ae72 288 MPU->CTRL = MPU_CTRL_ENABLE_Msk | MPU_CTRL_PRIVDEFENA_Msk;
(gdb) stepi
0x8001ae74 288 MPU->CTRL = MPU_CTRL_ENABLE_Msk | MPU_CTRL_PRIVDEFENA_Msk;
(gdb) stepi
__DSB () at /home/vovan/ZEPHYR_RTOS/zephyrproject/modules/hal/cmsis_6/CMSIS/Core/Include/cmsis_gcc.h:186
186 __ASM volatile ("dsb 0xF":::"memory");
(gdb) stepi
z_arm_usage_fault () at /home/vovan/ZEPHYR_RTOS/zephyrproject/zephyr/arch/arm/core/cortex_m/fault_s.S:80
80 mrs r0, MSP
(gdb) print num_regions
No symbol "num_regions" in current context.