Alex_rav(зеленинький я есть)
Feb 15 2007, 12:04
Цитата(KostyanPro @ Feb 14 2007, 15:02)

Вы на правильном пути.
Jam player можно аддаптировать под Windows, Unix или Embedded . Нужно лишь изменить функцию
int jam_jtag_io(int tms, int tdi, int read_tdo) в файле JAMSTUB.C
https://www.altera.com/support/software/dow.../dnl-player.jspИ продумать как файл *.jam будет попадать в контроллер.
как отослать данные на процессор я понял.....я ни как не пойму алгоритм программирования альтеры через 4 ее входа напрямую(через контроллер, без всяких других прибамбасов): TCL(понятно и легко реализуется на контроллере програмно), TDO, TDI, TMS.
В даташите написано
During in-system programming, instructions, addresses, and data are
shifted into the MAX 7000B device through the TDI input pin. Data is
shifted out through the TDO output pin and compared against the
expected data.
т.е. если я правильно понял, как только я начну отправлять программу на альтеру, она начнет программироваться, а за другие ножки не надо дергать?? Поехали дальше:
Programming a pattern into the device requires the following six ISP
stages. A stand-alone verification of a programmed pattern involves only
stages 1, 2, 5, and 6.
1. Enter ISP. The enter ISP stage ensures that the I/O pins transition
smoothly from user mode to ISP mode. The enter ISP stage requires
1 ms.
2. Check ID. Before any program or verify process, the silicon ID is
checked. The time required to read this silicon ID is relatively small
compared to the overall programming time.
3. Bulk Erase. Erasing the device in-system involves shifting in the
instructions to erase the device and applying one erase pulse of
100 ms.
4. Program. Programming the device in-system involves shifting in the
address and data and then applying the programming pulse to
program the EEPROM cells. This process is repeated for each
EEPROM address.
5. Verify. Verifying an Altera device in-system involves shifting in
addresses, applying the read pulse to verify the EEPROM cells, and
shifting out the data for comparison. This process is repeated for
each EEPROM address.
6. Exit ISP. An exit ISP stage ensures that the I/O pins transition
smoothly from ISP mode to user mode. The exit ISP stage requires
1 ms.
По первому пункту не понятно что для этого надо сделать? Просто отправить что-то на вход TDI??? потом подаждать ID, следующим пунктом идет стирание сектора, опять же непонятно, что для этого надо сделать...... 4 пункт в общем понятен - отправляем на альтеру программу бит за битом. Дальше проверка и выход, здесь участие контроллера вроде не нужно..... Все что я написал вообще имеет сходство с реальностью или это полная чушь???