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

 
 
2 страниц V  < 1 2  
Reply to this topicStart new topic
> Ликбез, вопрос к "отцам"
hoggar
сообщение Nov 28 2006, 14:22
Сообщение #16


Участник
*

Группа: Новичок
Сообщений: 22
Регистрация: 13-11-06
Пользователь №: 22 246



после установки MEMMAP = 1 или MEMMAP = 2 картина изменилась:

Tue Nov 28 14:18:08 2006: J-Link firmware: V1.20 (J-Trace ARM Rev.1 compiled Feb 8 2006 19:01:36)
Tue Nov 28 14:18:08 2006: JTAG speed is initially set to: 32 kHz
Tue Nov 28 14:18:08 2006: Halting CPU core
Tue Nov 28 14:18:08 2006: Software reset was performed
Tue Nov 28 14:18:08 2006: Initial reset was performed
Tue Nov 28 14:18:08 2006: J-Link found 1 JTAG device. ARM core Id: 4F1F0F0F(ARM7)
Tue Nov 28 14:18:08 2006: Device at TAP0 selected
Tue Nov 28 14:18:08 2006: Auto JTAG speed: 1600 kHz
Tue Nov 28 14:18:08 2006: Auto JTAG speed: 1600 kHz
Tue Nov 28 14:18:09 2006: 736 bytes downloaded and verified (1.07 Kbytes/sec)
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000181
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000182
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000001E8
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000001F8
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000208
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000210
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000220
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000222
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000246
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000252
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000258
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x0000025C
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000261
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000264
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000266
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000050
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000000D4
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000102
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000128
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000280
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000284
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x0000028B
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000002E8
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000299
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000002A8
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000002C4
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x00000170
Tue Nov 28 14:18:09 2006: Warning: Target inconsistency detected at Memory address 0x000002DC
Tue Nov 28 14:18:09 2006: There were warnings during download, see Log Window
Tue Nov 28 14:18:10 2006: Loaded debugee: C:\Projects\new\Debug\Exe\new.d79
Tue Nov 28 14:18:10 2006: Target reset
Tue Nov 28 14:18:10 2006: Profiler: No cycle counter could be found. Profiler will only count function calls.
Tue Nov 28 14:18:10 2006: Failed to set breakpoint at 0x00000220 (out of hardware breakpoints)
Tue Nov 28 14:18:10 2006: Profiler: Could not set enough breakpoints.
Go to the top of the page
 
+Quote Post
hoggar
сообщение Dec 1 2006, 17:13
Сообщение #17


Участник
*

Группа: Новичок
Сообщений: 22
Регистрация: 13-11-06
Пользователь №: 22 246



ниче не понимаю, никак не могу войти в прерывание.

1. Это кусок из стартапа:

MODULE ?RESET
COMMON INTVEC:CODE:NOROOT(2)
PUBLIC __program_start
EXTERN ?cstartup
EXTERN undef_handler, swi_handler, prefetch_handler
EXTERN data_handler, my_irq_handler, fiq_handler
CODE32 ; Always ARM mode after reset

~часть текста не показана~

org 0x18
__irq_handler
ldr pc,[pc,#24] ; Branch to irq_handler

org 0x1c
__fiq_handler
ldr pc,[pc,#24] ; Branch to fiq_handler

; Constant table entries (for ldr pc) will be placed at 0x20
; Exception vectors can be specified in C code by #pragma vector or by filling
; in the vectors below. The vector address is the ARM vector number + 0x20.

~часть текста не показана~

org 0x38
dc32 my_irq_handler
org 0x3c
dc32 fiq_handler
LTORG
; ENDMOD __program_start
ENDMOD

2. Разрешил прерывание каждую секунду (от RTC)
CIIR_bit.IMSEC = 1;

3. Инициализация прерывания
VICIntEnable = (1 << 13);
VICVectCntl0 = 0xd ;
VICVectCntl0 = VICVectCntl0 | 0x20;
VICVectAddr0 = (unsigned)RTC_isr_handler;

4. Обработчик.

__irq void my_irq_handler (void)
{
ISR_pntr isr_pntr;

isr_pntr = (ISR_pntr)VICVectAddr;
while (isr_pntr != 0)
{
VICVectAddr = 0;
(*isr_pntr)();
isr_pntr = (ISR_pntr)VICVectAddr;
}
}
Go to the top of the page
 
+Quote Post
IV_K
сообщение Dec 2 2006, 13:48
Сообщение #18


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

Группа: Свой
Сообщений: 121
Регистрация: 17-06-05
Пользователь №: 6 087



__enable_interrupt() в функции main есть? =)
Go to the top of the page
 
+Quote Post
hoggar
сообщение Dec 4 2006, 13:15
Сообщение #19


Участник
*

Группа: Новичок
Сообщений: 22
Регистрация: 13-11-06
Пользователь №: 22 246



Цитата(IV_K @ Dec 2 2006, 13:48) *
__enable_interrupt() в функции main есть? =)


Как раз ее-то и не хватало. Спасибо. smile.gif
Go to the top of the page
 
+Quote Post
hoggar
сообщение Dec 7 2006, 16:35
Сообщение #20


Участник
*

Группа: Новичок
Сообщений: 22
Регистрация: 13-11-06
Пользователь №: 22 246



прочитал, что в одном из слотов векторов прерываний должно храниться какое-то значение, чтобы чексумма векторов с этим значением давала 0, в связи с этим вопрос: это значение как то надо вычислять или оно само определяется??
Go to the top of the page
 
+Quote Post
Alexey Bishletov
сообщение Dec 8 2006, 09:37
Сообщение #21


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

Группа: Новичок
Сообщений: 121
Регистрация: 15-08-06
Пользователь №: 19 557



Цитата(hoggar @ Dec 7 2006, 16:35) *
прочитал, что в одном из слотов векторов прерываний должно храниться какое-то значение, чтобы чексумма векторов с этим значением давала 0, в связи с этим вопрос: это значение как то надо вычислять или оно само определяется??

Обычно его определяет программатор.
Go to the top of the page
 
+Quote Post

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

 


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


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