ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Понедельник
1 июля
61736 Топик полностью
Cидopгeк (30.06.2006 18:35, просмотров: 1) ответил Vasen на Спасибо тебе... Для 3 билда мну ужу сделал...
Кто использует сабж для ФилипсОвых АРМов, рекомендую прочитать: Чтоб попробовать свежевылеченного, написал простенькую прогу, мигающую светодиодом. Обнаружил странную траблу - все отлично работало, пока не выключишь питание, либо не нажмешь на ресет. При внимательном рассмотрении исходника стартового кода (в моем случае - Philips_LPC210X_Startup.s) обнаружил вот такой вот веселый коммент: * STARTUP_FROM_RESET * * If defined, the program will startup from power-on/reset. If not defined * the program will just loop endlessly from power-on/reset. * * This definition is not defined by default on this target because the * debugger is unable to reset this target and maintain control of it over the * JTAG interface. The advantage of doing this is that it allows the debugger * to reset the CPU and run programs from a known reset CPU state on each run. * It also acts as a safety net if you accidently download a program in FLASH * that crashes and prevents the debugger from taking control over JTAG * rendering the target unusable over JTAG. The obvious disadvantage of doing * this is that your application will not startup without the debugger. * * We advise that on this target you keep STARTUP_FROM_RESET undefined whilst * you are developing and only define STARTUP_FROM_RESET when development is * complete. * В результате - объявил в релиз - версии проекта глобальный дефайн 'STARTUP_FROM_RESET=1', после чего все заработало.