реклама на сайте
подробности

 
 
> проблема с Openocd
asket
сообщение Dec 12 2011, 10:01
Сообщение #1


Частый гость
**

Группа: Участник
Сообщений: 91
Регистрация: 24-08-06
Из: Москва
Пользователь №: 19 809



Просьба помочь новичку разобраться с OpenOCD 0.5.0 + Eclipse, процессор AT91SAM9263, мне нужно загрузить прошивку во внешную SDRAM в режиме отладки, но она не загружается, хотел бы понять ошибки.

Первое что я сделал, запустил демон telnet
Код
openocd -f my_openocd_tiny.cfg

Open On-Chip Debugger 0.5.0 (2011-08-26-10:27)
Licensed under GNU GPL v2
For bug reports, read

    http://openocd.berlios.de/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'jtag'

trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain

adapter_nsrst_delay: 300

jtag_ntrst_delay: 200

RCLK - adaptive

1

Info : RCLK (adaptive clock speed) not supported - fallback to 3 kHz

Info : JTAG tap: at91sam9263.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0)

Info : Embedded ICE version 6

Info : at91sam9263.cpu: hardware has 2 breakpoint/watchpoint units


конфигурационный файл достаточно прост
Код
#daemon configuration
telnet_port 4444
gdb_port 3333

# include the FT2232 interface config
source [find interface/olimex-jtag-tiny.cfg]

# include the target config
source [find target/at91sam9263.cfg]


далее запускаю arm-eabi-gdb с подключением к telnet, данная утилитка взята из ecoscentric

Код
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
0x00000000 in ?? ()
(gdb) mon reset halt
JTAG tap: at91sam9263.cpu tap/device found: 0x0792603f (mfg: 0x01f, part: 0x7926, ver: 0x0)
target state: halted
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.
NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.
(gdb) load
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) load pio_test
Loading section .rom_vectors, size 0x40 lma 0x2001b300
Loading section .text, size 0x1670c lma 0x2001b840
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Loading section .rodata, size 0x4668 lma 0x20031f4c
Ignoring packet error, continuing...
Loading section .data, size 0x2df8 lma 0x200365b4
Ignoring packet error, continuing...
Start address 0x2001b840, load size 121772
Ignoring packet error, continuing...
Transfer rate: 620 bytes/sec, 12177 bytes/write.
(gdb)


как видно gdb пытается залить elf- прошивку в SDRAM по адресу 0x2001b300, но стучится лбом об стену, что не так?
Может скрипт понадобится для инициализации EBI0?

Спасибо за любую помощь.

Кстати, чуть не забыл, во флеше RedBoot, при загрузке выдает сообщение об ограничении возможности использования оперативки, поэтому в lds-файле указал стартовый адрес доступной памяти

Код
RAM: 0x20000000-0x24000000 [0x2001b300-0x238ed000 available]                    
FLASH: 0x10000000-0x107fffff, 128 x 0x10000 blocks

Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 20th July 2025 - 18:32
Рейтинг@Mail.ru


Страница сгенерированна за 0.01352 секунд с 7
ELECTRONIX ©2004-2016