Paul Nehlich 8cdb2e4052 README.md aktualisiert
gdb without pagination and with -ex flags added
2023-09-25 14:58:42 +02:00
2023-09-20 12:50:48 +02:00
2023-09-11 18:12:52 +02:00
2023-09-11 18:12:52 +02:00
2023-09-18 22:59:12 +02:00
2023-09-20 12:50:48 +02:00
2023-09-11 18:12:52 +02:00
2023-09-20 12:50:48 +02:00
2023-09-25 14:58:42 +02:00

FSBL

FSBL code is at https://github.com/Xilinx/embeddedsw/

there:

cd lib/sw_apps/zynq_fsbl/src/ && make BOARD=zed CFLAGS=-DFSBL_DEBUG_INFO

Building

Requirements [TBC]:

  • cmake
  • arm-none-eabi-gcc
cmake -DFSFW_OSAL=freertos -DFSFW_ADD_HAL=OFF -DCMAKE_TOOLCHAIN_FILE=../bsp_z7/cmake/arm-none-eabi.toolchain ..

Debugging on zedboard

Requirements [TBC]:

  • OpenOCD
  • arm-none-eabi-gdb

Connect to zedboard jtag and uart usb port.

On PC connected to zedboard jtag usb port:

openocd -f board/digilent_zedboard.cfg

If you have one around, load bitstream at startup (go get a coffee, takes time with onboard JTAG, blue LED lights up when done):

openocd -f board/digilent_zedboard.cfg -c "init" -c "pld load 0 system.bit"

To use JTAG Boot for the obsw, you first need to run the FSBL once.

On build PC (adapt IP if different from debugging PC):

arm-none-eabi-gdb fsbl.elf
>target extended-remote localhost:3333
>load
>cont
>^C^D^D

Then load the actual obsw:

arm-none-eabi-gdb freeRTOS
>target extended-remote localhost:3333
>load
>cont

Short form, less interactive:

arm-none-eabi-gdb fsbl.elf -ex "target extended-remote localhost:3333" -ex "set pagination off" -ex "load" -ex "continue"
>^C^D^D
arm-none-eabi-gdb freeRTOS -ex "target extended-remote localhost:3333" -ex "set pagination off" -ex "load" -ex "continue"

Uart usb port should output something at 115200baud, (I use moserial to monitor).

Description
No description provided
Readme 10 MiB
mohr_ci Latest
2024-12-18 14:49:18 +01:00
Languages
C 95.9%
HTML 1.1%
CSS 0.8%
JavaScript 0.6%
Assembly 0.6%
Other 0.9%