Здравствуйте. Такой вопрос. Развел плату под AT91SAM7S64. Кварц 16 Мгц. При попытке запрограммировать короткие программы (сейчас не скажу точно объем, но ~1к) проблем нет, но при попытке запрограммировать 4к программу вылазит flash timeout error.
Причем стал вылазить достаточно неожиданно, после нескольких раз удачной прошивки. Почитал ERRATA на 64S, там написано, что:
Цитата
40.5.2 Master Clock (MCK)
40.5.2.1 MCK: Limited Master Clock Frequency Ranges
If the Flash is operating without wait states, the frequency of the Master Clock MCK must be
lower than 3 MHz or higher than 19 MHz.
If the Flash is operating with one wait state, the frequency of the Master Clock MCK must be
lower than 3 MHz or higher than 19 MHz.
If the Flash is operating with two wait states, the frequency of the Master Clock MCK must be
lower than 3 MHz or higher than 25 MHz.
If the Flash is operating with three wait states, the frequency of the Master Clock MCK must be
lower than 3 MHz or higher than 38 MHz.
If these constraints are not respected, the correct operation of the system cannot be guaranteed
and either data or prefetch abort might occur.
The maximum operating frequencies (at 30 MHz @ 0 Wait States and 55 MHz @ 1 Wait State)
as stated in Table 37-23, “Embedded Flash Wait States,” on page 504, are still applicable.
Note: It is not necessary to use 2 o 3 wait states because the Flash can operate at maximum frequency
with only 1 wait state.
Problem Fix/Workaround
The user must ensure that the device is running at the authorized frequency by programming the
PLL properly to not run within the forbidden frequency range.
Запись через ULINK - это операция с флешем. Может быть проблемой мой кварц на 16?