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

 
 
 
Reply to this topicStart new topic
> msp430 bsl - есть ли альтернативные тулзы?, bsl умеет только mass erase, а надо сохранить info memory
yurich
сообщение Feb 24 2009, 17:59
Сообщение #1


Участник
*

Группа: Новичок
Сообщений: 25
Регистрация: 6-06-05
Пользователь №: 5 782



Доброго времени суток!
Есть девайс на msp4301611, в нем фирмварь апдейтится через bsl (ver 1.61). Но при этом сносит info memory. В command line ключиках для bsl есть только mass erase.
Может быть, есть альтернатива bsl, где есть опция не стирать info memory? MSPFET не помог.
Или альтернатива - только написать бутлоадер самому?
Go to the top of the page
 
+Quote Post
_3m
сообщение Feb 24 2009, 19:26
Сообщение #2


Знающий
****

Группа: Участник
Сообщений: 745
Регистрация: 28-12-06
Пользователь №: 23 960



bsldemo2 с ключиком "+a" пробовали?
Причина редактирования: Удалено ненужное цитирование.
Go to the top of the page
 
+Quote Post
yurich
сообщение Feb 25 2009, 15:19
Сообщение #3


Участник
*

Группа: Новичок
Сообщений: 25
Регистрация: 6-06-05
Пользователь №: 5 782



Цитата(_3m @ Feb 24 2009, 22:26) *
bsldemo2 с ключиком "+a" пробовали?

Пробовал, все равно сносит. Хотя пишет, что сохраняет.
Go to the top of the page
 
+Quote Post
rezident
сообщение Feb 26 2009, 19:39
Сообщение #4


Гуру
******

Группа: Свой
Сообщений: 10 920
Регистрация: 5-04-05
Пользователь №: 3 882



В программаторе Курта есть отдельная опция стирать/не стирать область INFO.
http://kurt.on.ufanet.ru/
Go to the top of the page
 
+Quote Post
M_Z
сообщение Feb 26 2009, 20:21
Сообщение #5


Местный
***

Группа: Свой
Сообщений: 483
Регистрация: 1-09-06
Из: Гродно РБ
Пользователь №: 20 011



Цитата(rezident @ Feb 26 2009, 22:39) *
В программаторе Курта есть отдельная опция стирать/не стирать область INFO.
http://kurt.on.ufanet.ru/

Но к сожалению независимо от этой птички всеравно стирается инфо wassat.gif
Go to the top of the page
 
+Quote Post
rezident
сообщение Feb 26 2009, 21:46
Сообщение #6


Гуру
******

Группа: Свой
Сообщений: 10 920
Регистрация: 5-04-05
Пользователь №: 3 882



Цитата(M_Z @ Feb 27 2009, 01:21) *
Но к сожалению независимо от этой птички всеравно стирается инфо wassat.gif
"Не верю!" (с) К.С.Станиславский
Go to the top of the page
 
+Quote Post
yurich
сообщение Feb 27 2009, 11:55
Сообщение #7


Участник
*

Группа: Новичок
Сообщений: 25
Регистрация: 6-06-05
Пользователь №: 5 782



Цитата(rezident @ Feb 27 2009, 00:46) *
"Не верю!" (с) К.С.Станиславский

Однако факт. Сносит.
Go to the top of the page
 
+Quote Post
rezident
сообщение Feb 27 2009, 15:26
Сообщение #8


Гуру
******

Группа: Свой
Сообщений: 10 920
Регистрация: 5-04-05
Пользователь №: 3 882



Прошу пардону! Конечно же стирает. Это я вчерась проглючил sad.gif Спутал особенности работы с Flash через BSL и через JTAG.
Суть в том, что у BSL есть только две команды, не требующие ввода пароля доступа: собственно ввод пароля и стирание всей Flash целиком (mass erase). Соответственно, чтобы сохранить содержимое области INFO, нужна старая прошивка из которой берется пароль доступа.
Вариант 1. Вначале в BSL вводится пароль доступа. Затем считывается область INFO. Потом считанное значение INFO имплементируется в новую прошивку.
Вариант 2. После введения пароля для стирания Flash используются команды посекторного стирания, а не команда стирания всей Flash целиком (mass erase). При этом имеется возможность сохранить содержимое области INFO.
В любом случае нужна старая прошивка для извлечения из нее пароля доступа.
Go to the top of the page
 
+Quote Post
yurich
сообщение Mar 11 2009, 13:21
Сообщение #9


Участник
*

Группа: Новичок
Сообщений: 25
Регистрация: 6-06-05
Пользователь №: 5 782



Цитата(rezident @ Feb 27 2009, 18:26) *
Прошу пардону! Конечно же стирает. Это я вчерась проглючил sad.gif Спутал особенности работы с Flash через BSL и через JTAG.
Суть в том, что у BSL есть только две команды, не требующие ввода пароля доступа: собственно ввод пароля и стирание всей Flash целиком (mass erase). Соответственно, чтобы сохранить содержимое области INFO, нужна старая прошивка из которой берется пароль доступа.
Вариант 1. Вначале в BSL вводится пароль доступа. Затем считывается область INFO. Потом считанное значение INFO имплементируется в новую прошивку.
Вариант 2. После введения пароля для стирания Flash используются команды посекторного стирания, а не команда стирания всей Flash целиком (mass erase). При этом имеется возможность сохранить содержимое области INFO.
В любом случае нужна старая прошивка для извлечения из нее пароля доступа.

Сорри, из-за переключений между проектами не занимался некоторое время.

Так и делал. Брал пароль из старой прошивки и давал его BSL. На что BSL говорил, что все хорошо, сохраняю INFO sector A, но в результате сносил всё.
Вобщем, пока забили....
Go to the top of the page
 
+Quote Post
MrYuran
сообщение Mar 11 2009, 13:38
Сообщение #10


Беспросветный оптимист
******

Группа: Свой
Сообщений: 4 640
Регистрация: 26-12-07
Из: Н.Новгород
Пользователь №: 33 646



А msp430-bsl не пробовали из mspgcc?
вот хелп:
CODE

MSP430 Bootstrap Loader Version: 2.0

USAGE: msp430-bsl [options] [file]
Version: 2.0

If "-" is specified as file the data is read from the stdinput.
A file ending with ".txt" is considered to be in TI-Text format,
'.a43' and '.hex' as IntelHex and all other filenames are
considered as ELF files.

General options:
-h, --help Show this help screen.
-c, --comport=port Specify the communication port to be used.
(Default is 0)
0->COM1 / ttyS0
1->COM2 / ttyS1
etc.
-P, --password=file Specify a file with the interrupt vectors that
are used as password. This can be any file that
has previously been used to program the device.
(e.g. -P INT_VECT.TXT).
-f, --framesize=num Max. number of data bytes within one transmitted
frame (16 to 240 in steps of 16) (e.g. -f 240).
-m, --erasecycles=num Number of mass erase cycles (default is 1). Some
old F149 devices need additional erase cycles.
On newer devices it is no longer needed. (e.g. for
an old F149: -m20)
-U, --unpatched Do not download the BSL patch, even when it is
needed. This is used when a program is downloaded
into RAM and executed from there (and where flash
programming is not needed.)
-D, --debug Increase level of debug messages. This won't be
very useful for the average user...
-I, --intelhex Force fileformat to IntelHex
-T, --titext Force fileformat to be TI-Text
-N, --notimeout Don't use timeout on serial port (use with care)
-B, --bsl=bsl.txt Load and use new BSL from the TI Text file
-S, --speed=baud Reconfigure speed, only possible with newer
MSP403-BSL versions (>1.5, read slaa089a.pdf for
details). If the --bsl option is not used, an
internal BSL replacement will be loaded.
Needs a target with at least 2kB RAM!
Possible values are 9600, 19200, 38400
(default 9600)
-1, --f1x Specify CPU family, in case autodetect fails
-4, --f4x Specify CPU family, in case autodetect fails
--F1x and --f2x are only needed when the "change
baudrate" feature is used and the autodetect feature
fails. If the device ID that is uploaded is known, it
has precedence to the command line option.
--invert-reset Invert signal on RST pin (used for some BSL hardware)
--invert-test Invert signal on TEST/TCK pin (used for some BSL
hardware)
--swap-reset-test Swap the TEST/TCK and RST control signals.
--test-on-tx Also toggle TX line for the TEST/TCK signal.
--ignore-answer Ignore answers and ACKs from the BSL (dont use unless
you know what you do)
--no-BSL-download Do not download replacement BSL (disable automatic)
--force-BSL-download Download replacement BSL even if not needed (the one
in the device would have the required features)

Program Flow Specifiers:
-e, --masserase Mass Erase (clear all flash memory)
-m, --mainerase Erase main flash memory only (requires --password)
--erase=address Selectively erase segment at the specified address
(requires --password)
--erase=adr1-adr2 Selectively erase a range of segments
(requires --password)
-E, --erasecheck Erase Check by file
-p, --program Program file
-v, --verify Verify by file

The order of the above options matters! The table is ordered by normal
execution order. For the options "Epv" a file must be specified.
Program flow specifiers default to "pvr" if a file is given.
Don't forget to specify "e" or "eE" when programming flash!

Data retreiving:
-u, --upload=addr Upload a datablock (see also: -s).
-s, --size=num Size of the data block do upload. (Default is 2)
-x, --hex Show a hexadecimal display of the uploaded data.
(Default)
-b, --bin Get binary uploaded data. This can be used
to redirect the output into a file.

Do before exit:
-g, --go=address Start programm execution at specified address.
This implies option --wait.
-r, --reset Reset connected MSP430. Starts application.
This is a normal device reset and will start
the programm that is specified in the reset
vector. (see also -g)
-w, --wait Wait for <ENTER> before closing serial port.

Address parameters for --erase, --upload, --size can be given in
decimal, hexadecimal or octal.

If it says "NAK received" it's probably because you specified no or a
wrong password. NAKs during programming indicate that the flash was not
erased before programming.

Я правда тоже не пользовался ни разу частичным стиранием


--------------------
Программирование делится на системное и бессистемное. ©Моё :)
— а для кого-то БГ — это Bill Gilbert =)
Go to the top of the page
 
+Quote Post

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

 


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


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