|
EPSC |
|
|
|
Jan 15 2010, 10:06
|
Частый гость
 
Группа: Свой
Сообщений: 187
Регистрация: 4-01-07
Из: Казань
Пользователь №: 24 091

|
Добрый день. Сталкнулся с проблемой загрузки программы во флаш. Имеется след. система. EP2C5 - SRAM - EPCS. в качестве памяти программ используется SRAM. В отладчике все работает. Пытаюсь загрузить во флэш через flash-programmer выдает следующее: CODE #!/bin/sh # # This file was automatically generated by the Nios II IDE Flash Programmer. # # It will be overwritten when the flash programmer options change. #
cd H:/Nios_60/software/count_binary_0/Debug
# Creating .flash file for the FPGA configuration "$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="H:/Nios_60/nios_uart.sof" --outp ut="nios_uart.flash" Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert --device=EPCS128 --option=nios_ uart.opt H:/Nios_60/nios_uart.sof nios_uart.pof Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Peak virtual memory: 73 megabytes Info: Processing ended: Fri Jan 15 12:40:07 2010 Info: Elapsed time: 00:00:05 Info: Total CPU time (on all processors): 00:00:05 Info: ******************************************************************* Info: Running Quartus II Convert_programming_file Info: Command: quartus_cpf --no_banner --convert nios_uart.pof nios_uart.rpd Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings Info: Peak virtual memory: 71 megabytes Info: Processing ended: Fri Jan 15 12:40:16 2010 Info: Elapsed time: 00:00:08 Info: Total CPU time (on all processors): 00:00:07
# Programming flash with the FPGA configuration "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00201000 --sidp=0x0 0202068 --id=477433320 --timestamp=1263547010 --instance=0 "nios_uart.flash" Using cable "ByteBlasterMV [LPT1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00202068: verified No EPCS layout data - looking for section [EPCS-EF3013] Unable to use EPCS device Leaving target processor paused
# Creating .flash file for the project "$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="nios_uart.flash" --input="count_ binary_0.elf" --output="epcs_flash_controller_0.flash"
# Programming flash with the project "$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00201000 --sidp=0x0 0202068 --id=477433320 --timestamp=1263547010 --instance=0 "epcs_flash_controlle r_0.flash" Using cable "ByteBlasterMV [LPT1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00202068: verified No EPCS layout data - looking for section [EPCS-EF3013] Unable to use EPCS device Leaving target processor paused
Такое ощущение что флэшку не видит. Может кто сталкивался????? Работаю в QuartusII 9.0.
Сообщение отредактировал Omen_13 - Jan 19 2010, 20:31
Причина редактирования: Оформление
|
|
|
|
|
 |
Ответов
|
Apr 13 2011, 13:21
|
Местный
  
Группа: Свой
Сообщений: 399
Регистрация: 1-01-06
Из: Волгоград
Пользователь №: 12 763

|
9.1 SP2 1. Выхлоп Flash Programmer-а, добавил еще ключ --verify на всяк. Код [NiosII EDS]$ $SOPC_KIT_NIOS2/bin/nios2-flash-programmer "D:/Projects/Vezuviy/C ontroller_New/fpga/software/test_bsp/flash/controller_epcs_flash_controller.fla sh" --base=0x2001800 --epcs --sidp=0x20022A0 --id=0x514AFF4A --timestamp=129657 8400 --device=1 --instance=0 '--cable=USB-Blaster [USB-0]' --program --verbose --debug Reading override file "d:/altera/91/nios2eds/bin/nios2-flash-override.txt" Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x020022A0: verified Processor data bus width is 32 bits Looking for EPCS registers at address 0x02001800 (with 32bit alignment) Initial values: 0001703A 04C00074 9801483A 9CFFF804 983FFD1E 0000203A Not here: reserved fields are non-zero Looking for EPCS registers at address 0x02001900 (with 32bit alignment) Initial values: 92400237 4A40100C 483FFD26 90000135 92400237 4A40200C Not here: reserved fields are non-zero Looking for EPCS registers at address 0x02001A00 (with 32bit alignment) Initial values: 00000000 00000000 00000260 00000000 00000000 00000001 Valid registers found EPCS signature is 0x12 EPCS identifier is 0xEF3013 Using EPCS size information from section [EPCS-EF3013] Device size is 512KByte (4Mbit) Erase regions are: offset 0: 8 x 64K EPCS status is 0x00 : Checksumming existing contents 00000000 : Verifying existing contents 00000000 : Needs erase then program 00010000 : Verifying existing contents 00010000 : Needs erase then program 00020000 : Verifying existing contents 00020000 : Needs erase then program 00000000 : Reading existing contents 00010000 : Reading existing contents 00020000 : Reading existing contents Checksummed/read 62kB in 3.1s 00000000 ( 0%): Erasing 00010000 (33%): Erasing 00020000 (66%): Erasing Erased 192kB in 0.4s (480.0kB/s) 00000000 ( 0%): Programming 00010000 (33%): Programming 00020000 (66%): Programming Programmed 131KB +61KB in 7.6s (25.2KB/s) Did not attempt to verify device contents Leaving target processor paused 2. Делать дамп флешки через .jic пока не умею ) умею только делать .jic для прошивки через convert programming files. 3. Проверил чтение-запись во флешку из программы Nios-а с помощью стандартных функций alt_read_flash, alt_write_flash - все пишется/читается правильно.
|
|
|
|
Сообщений в этой теме
artem79 EPSC Jan 15 2010, 10:06 vadimuzzz а систему в SOPC-билдере не пересобирали? обычно т... Jan 15 2010, 14:41 artem79 Перепробывал разные варианты. пересобирал и т.д. У... Jan 26 2010, 06:59 vadimuzzz а флеш точно EPCS или аналог? точное название микр... Jan 26 2010, 07:15 Stewart Little Цитата(artem79 @ Jan 26 2010, 09:59) Пере... Jan 26 2010, 07:51  artem79 Цитата(Stewart Little @ Jan 26 2010, 10:5... Jan 26 2010, 08:33   Stewart Little Цитата(artem79 @ Jan 26 2010, 11:20) Проб... Jan 26 2010, 08:38   vadimuzzz Цитата(artem79 @ Jan 26 2010, 14:33) EPCS... Jan 26 2010, 08:44    Stewart Little Цитата(vadimuzzz @ Jan 26 2010, 11:44) [E... Jan 26 2010, 10:51     vadimuzzz Цитата(Stewart Little @ Jan 26 2010, 16:5... Jan 26 2010, 10:59      artem79 Цитата(vadimuzzz @ Jan 26 2010, 13:59) ой... Jan 26 2010, 11:19       Stewart Little Цитата(artem79 @ Jan 26 2010, 14:19) нет.... Jan 26 2010, 11:25 artem79 После сохдания файла ниос вроде начал программиров... Jan 26 2010, 09:23 Stewart Little Цитата(artem79 @ Jan 26 2010, 12:23) Посл... Jan 26 2010, 09:38 vadimuzzz по логам - все нормально, верификация проходит (ст... Jan 26 2010, 09:38 artem79 Цитата(vadimuzzz @ Jan 26 2010, 12:38) по... Jan 26 2010, 09:55  vadimuzzz Цитата(artem79 @ Jan 26 2010, 15:55) Полу... Jan 26 2010, 10:03   artem79 Цитата(vadimuzzz @ Jan 26 2010, 13:03) ве... Jan 26 2010, 10:18 vadimuzzz непонятно.. надо как-нибудь дамп sram сделать посл... Jan 26 2010, 10:36 artem79 Цитата(vadimuzzz @ Jan 26 2010, 13:36) не... Jan 26 2010, 10:39  vadimuzzz Цитата(artem79 @ Jan 26 2010, 16:39) внеш... Jan 26 2010, 10:46 artem79 Все заработало! Последняя причина была в подкл... Jan 26 2010, 11:51 Reanimator++ Осваиваю Flash Programmer.
Собственно сначала натк... Apr 13 2011, 10:46 Stewart Little Цитата(Reanimator++ @ Apr 13 2011, ... Apr 13 2011, 13:40 vadimuzzz 1. давайте выхлоп флеш-программера с ключом -debug... Apr 13 2011, 12:57 vadimuzzz так, логи чистые.
дамп можно слить так:
Кодnios2-f... Apr 13 2011, 13:37 Reanimator++ Ок, попробуем дампы сравнить с помощью Flash Progr... Apr 13 2011, 19:18 Reanimator++ Сравнил дампы флеши после работы Quartus II Progra... Apr 14 2011, 07:16 vadimuzzz что-то это мне напоминает:
http://electronix.ru/fo... Apr 14 2011, 07:42 Reanimator++ Ух, сильно. Пошел коллекционировать квартусы, буду... Apr 14 2011, 08:06 Reanimator++ Ура, получилось! Спасибо за помощь в борьбе с ... Apr 14 2011, 12:04 vadimuzzz я бы гуй пока не трогал, разберитесь в консоли сна... Apr 14 2011, 14:33 Reanimator++ С консолью разобрался, благо утилиты несложные. На... Apr 14 2011, 15:49 vadimuzzz Цитата(Reanimator++ @ Apr 14 2011, ... Apr 14 2011, 22:55 gosu-art Добрый день!
Простите, если немножечко не в те... May 12 2011, 09:28 vadimuzzz Цитата(gosu-art @ May 12 2011, 16:28... May 12 2011, 09:59  gosu-art Цитата(vadimuzzz @ May 12 2011, 13:59) см... May 12 2011, 10:10   vadimuzzz Цитата(gosu-art @ May 12 2011, 17:10... May 12 2011, 11:13 Reanimator++ Кажется понял в чем вопрос.
В epcs содержится .rbf... May 12 2011, 20:41 vadimuzzz Цитата(Reanimator++ @ May 13 2011, ... May 12 2011, 23:06
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0
|
|
|