реклама на сайте
подробности

 
 
> Keil MON166 Target Monitor, поделитесь опытом
Massaew
сообщение Oct 11 2007, 10:06
Сообщение #1


Участник
*

Группа: Свой
Сообщений: 66
Регистрация: 25-05-07
Из: СПб
Пользователь №: 27 967



Здравствуйте!

Кто пользовался Keil MON166 Target Monitor поделитесь опытом, а то чего то невыходит ничего.

P.S. Понимаю вопрос очень общий, но пока конкретным вопросам неоткуда взяться
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
Massaew
сообщение Nov 12 2007, 08:20
Сообщение #2


Участник
*

Группа: Свой
Сообщений: 66
Регистрация: 25-05-07
Из: СПб
Пользователь №: 27 967



К сожалению ответа на свой вопрос в настройвах вашего проекта я не нашел.

Вот я описал все свои шаги и какую проблему они порождают, так сказать.
Решил описать более менее подробно чтобы легче вникнуть было и избежать доп вопросов
(сорри за настойчивость)

Конфигурирую монитор, следуя инструкциям readme.txt

Выбираю режим UART ASC0 MODE: In this configuration the Monitor program will be direct
programmed to (Flash) EPROM's.

a) Create a new empty sub-folder in C:\KEIL\C166\MONITOR.
сделал, папка допустим называется MyMON

cool.gif Copy the contents of the sub-folder C:\KEIL\C166\MONITOR\USER167 to this
new folder.

сделал

c) Load the project file Monitor.UV2 into uVision2 environment.
сделал

d) Set the Monitor Mode you want to configure as current target with the
dialog Project - Targets, Groups, Files...

сделал

e) Describe your target hardware in the file ABSTRACT.TXT. If you generate
the Monitor in BOOTSTRAP MODE the content of this file will be shown
during the selection of the Monitor program.

не делал

f) Open the file CONFIG.INC and specify your hardware.

DATA_START Specifies the start address for the Monitor Data Area. This
address must be an addressable RAM area.

в RAM (0х07Е600)


CODE_START Specifies the start address for the Monitor Code Area.
в RОM (0х000000)



VECTAB Defines the Interrupt Vector Address relocation and is only
required if CODE_START is 0. In this case, the application
program cannot write the interrupt vectors in the address space
0 .. 0x200. Instead it is possible to relocate the interrupt
vectors to an address in RAM space and use in uVision2 Project-
Options for Target-L166 Misc-Interrupt Vector Table Address
to generate the interrupt vector table at a different address.

в RAM (0х070000)


BAUDRATE Defines the communication Baudrate. In BOOTSTRAP MODE the
baudrate is self-adjusting and this value is not used. For the
SIMULATED SERIAL MODE the maximum Baudrate is 38400bps @20MHz CPU
clock. In most cases, the maximum baudrate is 57600bps. Try
9600bps first, before you use higher baudrates.

If you set BAUDRATE to the value 0, code for automatic baudrate
adjustment will be used. In this case the Monitor works typical
with baudrates between 2400bps and 57600bps. Try 9600bps first.
The automatic baudrate detection does not work for the SIMULATED
SERIAL MODE.

9600


CPU_CLOCK Defines the internal CPU Clock frequency and is used to calculate
BAUDRATE factors for the serial interface. The internal Clock
might be different from the XTAL frequency, due to on-chip PLL of
the 166/ST10 device. CPU_CLOCK is not relevant in BOOTSTRAP Mode.

20000000

g) If you generate the Monitor in BOOTSTRAP MODE open the file BOOTCOPY.BAT
and set the variable MON_NAME to the name of your target system. Example:
SET MON_NAME=Phytec 167

не делал

h) Generate your Monitor configuration with Project - Build Target.
сделал

i) If you generate the Monitor in UART ASC0 MODE or SIMULATED SERIAL MODE,
you need to burn the file MONITOR.H86 into the (Flash) EPROM of your
target system.

прошил

плюс к этому
Reserve Statements In Application Programs

BOOTSTRAP MODE and UART ASC0 MODE:
Requires the NMI and ASC0 interrupt vectors. You need to enter under
Options - L166 Misc - RESERVE: 8H-0BH, 0ACH-0AFH

сделал и плюс еще те адреса где распологаются DATA_START и VECTAB

Все, теперь монитор создан, прошит, настроен, и можно отлаживать свой проект (пусть будет MyPrj)

Теперь настраиваю проект MyPrj
uVision2 Project-Options for Target-Debug выбираю использовать keil monitor 166driver,
жму settings выскакивает error

The monitor configuration file каракули.MON could not be found in the
directory c:\progfiles\keil\c166\Monitor\'
Please select a different configuration or copy the configuration files
into this directory


Так вот вопрос, что туда копировать?!! В папке MyMON файлов с расширением *.MON нет.


Что я не доделал?

Плизззз, хелп!!!
Go to the top of the page
 
+Quote Post
scifi
сообщение Nov 12 2007, 13:48
Сообщение #3


Гуру
******

Группа: Свой
Сообщений: 3 020
Регистрация: 7-02-07
Пользователь №: 25 136



Цитата(Massaew @ Nov 12 2007, 11:20) *
Теперь настраиваю проект MyPrj
uVision2 Project-Options for Target-Debug выбираю использовать keil monitor 166driver,
жму settings выскакивает error

The monitor configuration file каракули.MON could not be found in the
directory c:\progfiles\keil\c166\Monitor\'
Please select a different configuration or copy the configuration files
into this directory

Если Keil установлен в Program Files, то весьма вероятно, что пробел в имени директории сбивает Keil с толку. Я всегда устанавливал в C:\Keil, чтобы избежать эти засады.
А вообще предлагаю игнорировать это сообщение об ошибке и выбрать в списке "Monitor in ROM". Это особый пункт списка мониторов, он существует независимо от всех *.MON файлов (можно их все стереть), и именно он Вам и нужен.
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- Massaew   Keil MON166 Target Monitor   Oct 11 2007, 10:06
- - scifi   Цитата(Massaew @ Oct 11 2007, 14:06) Здра...   Oct 12 2007, 07:57
|- - Massaew   Цитата(scifi @ Oct 12 2007, 11:57) Сконфи...   Oct 12 2007, 15:31
|- - scifi   Цитата(Massaew @ Oct 12 2007, 19:31) Секц...   Oct 14 2007, 17:40
|- - Massaew   Цитата(scifi @ Oct 14 2007, 21:40) Для от...   Oct 16 2007, 10:16
- - scifi   Можно для начала проверить работоспособность монит...   Oct 16 2007, 13:37
|- - Massaew   Я опять здесь! Цитата(scifi @ Oct 16 200...   Oct 30 2007, 11:52
|- - scifi   Цитата(Massaew @ Oct 30 2007, 14:52) Вопр...   Oct 30 2007, 14:36
|- - Massaew   Цитата(scifi @ Oct 30 2007, 18:36) Как сф...   Oct 31 2007, 06:28
- - Massaew   У меня поломка! В плате что-то накрылось. Пока...   Oct 20 2007, 18:58
- - scifi   К сожалению, у меня нет времени, чтобы объяснять е...   Oct 31 2007, 11:36
- - Massaew   А я так надеялся! Остался последний шаг, как я...   Oct 31 2007, 17:08
- - scifi   Конфигурация монитора: прошит во флэш-ПЗУ по адрес...   Nov 1 2007, 06:31
- - Massaew   Я так понял, что без прошивки ROM не обойтись. Нас...   Nov 8 2007, 13:57
- - Massaew   scifi, уважаемый! Пришлите мне пожайлуста ваш ...   Nov 9 2007, 16:27
|- - scifi   Цитата(Massaew @ Nov 9 2007, 19:27) Пришл...   Nov 10 2007, 12:15
|- - Massaew   Переставил Keil в c:\Keil Ошибка все равно вы...   Nov 13 2007, 10:54
- - Massaew   Вообжем после неудачи с Keil, решил попробовать от...   Nov 23 2007, 08:29
- - Massaew   Проблему решил (еще до нового года), вот появилось...   Mar 28 2008, 09:33


Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 21st July 2025 - 19:28
Рейтинг@Mail.ru


Страница сгенерированна за 0.01384 секунд с 7
ELECTRONIX ©2004-2016