Перейти к содержанию
    

hoggar

Участник*
  • Постов

    22
  • Зарегистрирован

  • Посещение

Репутация

0 Обычный

Информация о hoggar

  • Звание
    Участник
    Участник
  1. STR GPIO

    При конфигурации GPIO с помощью библиотек, скачанных с сайта STR обнаружил следующее typedef struct { u8 GPIO_Pin; u8 GPIO_Direction; u8 GPIO_Type; u8 GPIO_IPConnected; u16 GPIO_Alternate; }GPIO_InitTypeDef; не понял, что такое IPConnected и для чего эта фича. В DS и UM, скачанных с того же сайта говорится только, что по default`у IPConnected is disable.
  2. Flash не шьется (str 912)

    Очень странно?!?! При установке J-Tag speed 1000 kHz все получилось.
  3. Flash не шьется (str 912)

    Использую IAR. Написал программу, залил для отладки во Flash, все шло нормально, смотрел регистры, память и прочее. (PLL не использовался) После исправления обнаруженных неточностей Flash заливаться категорически отказывается. В окне Log отопражается следующее: Fri Feb 16 11:06:20 2007: Auto JTAG speed: 2666 kHz Fri Feb 16 11:06:20 2007: Found unique position in JTAG chain of ARM chip: DRPre = 1, IRPre = 5 Fri Feb 16 11:06:20 2007: Using DBGRQ to halt CPU Fri Feb 16 11:06:20 2007: Resetting TRST in order to halt CPU Fri Feb 16 11:06:20 2007: CP15.0.0: 0x41259660: ARM, Architecure 5TE Fri Feb 16 11:06:20 2007: J-Link: ARM9, 966 core Fri Feb 16 11:06:20 2007: 6060 bytes downloaded and verified (2.27 Kbytes/sec) Fri Feb 16 11:06:20 2007: Warning: Target inconsistency detected at Memory address 0x04001400 ................................................................................ .............................................................. ................................................................................ .............................................................. Fri Feb 16 11:06:20 2007: Warning: Target inconsistency detected at Memory address 0x0400131C Fri Feb 16 11:06:20 2007: There were warnings during download of FLASH loader, see Log Window Fri Feb 16 11:06:22 2007: Failed to load flash loader: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Evaluation\ARM\config\flashloader\ST\FlashSTR91x.d79
  4. iar+timer str9

    как, все таки, оживить таймер в симуляторе IAR`а режим рпаботы таймера - PWM настроил Timer01 на тактирование от внутреннено источника (APB), предделитель не используется бит разрешения EN (Coounter enable) установлен спасибо всем откликнувшимся, разобрался
  5. iar+timer str9

    Отлаживаю прогу в симуляторе, но после того как выставляется бит включения таймера он почему-то не инкрементируется.
  6. прерывемя в IAR

    Настроил прерывания, которые повторяются каждые 1000000 циклов, в окне Interrupt Log показывается, что прерывания симулируются, но при этом в столбце number всегда остаются 0, и не происходит перехода к обработчику прерываний.
  7. прерывемя в IAR

    Возможно ли в иаре имитировать прерывания по внешнему входу, если да, то как?
  8. Ликбез

    прочитал, что в одном из слотов векторов прерываний должно храниться какое-то значение, чтобы чексумма векторов с этим значением давала 0, в связи с этим вопрос: это значение как то надо вычислять или оно само определяется??
  9. Ликбез

    Как раз ее-то и не хватало. Спасибо. :)
  10. Ликбез

    ниче не понимаю, никак не могу войти в прерывание. 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; } }
  11. Ликбез

    после установки 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.
  12. Ликбез

    при попытке проошить возникают проблемы в log окне IAR'а пишется следующее: Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000181 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000182 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000001DC Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000001E8 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000001F8 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000200 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000210 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000212 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000236 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000242 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000248 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x0000024C Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000250 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000255 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000256 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000038 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x0000003C Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000050 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000000D4 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000102 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000128 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x0000026C Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000270 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000276 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000002D4 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000284 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000294 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000002B0 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x00000170 Tue Nov 28 12:36:31 2006: Warning: Target inconsistency detected at Memory address 0x000002C8 Tue Nov 28 12:36:31 2006: There were warnings during download, see Log Window Tue Nov 28 12:36:33 2006: Loaded debugee: C:\Projects\new\Debug\Exe\new.d79 Tue Nov 28 12:36:33 2006: Target reset Tue Nov 28 12:36:34 2006: The stack 'CSTACK' is filled to 100% (1280 bytes used out of 1280). The warning threshold is set to 90%. Tue Nov 28 12:36:34 2006: The stack pointer for stack 'CSTACK' (currently 0x40001294) is outside the stack range (0x40000000 to 0x40000500) Tue Nov 28 12:36:34 2006: The stack pointer for stack 'SVC_STACK' (currently 0x400032A0) is outside the stack range (0x40000900 to 0x40000B00) Tue Nov 28 12:36:34 2006: The stack pointer for stack 'IRQ_STACK' (currently 0x400022A0) is outside the stack range (0x40000500 to 0x40000700) Tue Nov 28 12:36:34 2006: The stack pointer for stack 'UND_STACK' (currently 0x400032A0) is outside the stack range (0x40000D00 to 0x40000F00) Tue Nov 28 12:36:34 2006: The stack pointer for stack 'ABT_STACK' (currently 0x400032A0) is outside the stack range (0x40000B00 to 0x40000D00) как с этим справиться??
  13. Ликбез

    Tакой вопрос, если я размещаю код во флэше, значит ли это, что в регистре MEMMAP нужно выставить режим User Flash Mode. Как в IAR объявить isr если прерывание произошло из-за ошибки выборки команды или из-за неверного обращения к памяти, я нашел только __fiq, __irq, __swi. Хотя в кейле существуют extended keywords для подобных случаев.
  14. Ликбез

    для чего нужен CSTACK
×
×
  • Создать...