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

 
 
> Хранение данных в Flash-памяти
Vadim.Dyachuk
сообщение Oct 21 2013, 12:55
Сообщение #1


Участник
*

Группа: Участник
Сообщений: 21
Регистрация: 9-10-13
Пользователь №: 78 662



Доброго времени суток!

Меня интересует такой вопрос: "Можно ли хранить в Flash-памяти большой объём информации (к примеру 8 кб) который не будет стерт при перезагрузке МК, если можно то как его туда записать ?"
Использую IAR EW, МК XMEGA 32A4.

Заранее спасибо!
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
ILYAUL
сообщение Oct 22 2013, 09:01
Сообщение #2


Профессионал
*****

Группа: Свой
Сообщений: 1 940
Регистрация: 16-12-07
Из: Москва
Пользователь №: 33 339



Description:
SPM can be used to erase a page in the program memory, to write a page in the program memory (that is already erased), and to set boot loader lock bits. In some devices, the program memory can be written one word at a time, in other devices an entire page can be programmed simultaneously after first filling a temporary page buffer. In all cases, the program memory must be erased one page at a time. When erasing the program memory, the RAMPZ and Z register are used as page address. When writing the program memory, the RAMPZ and Z register are used as page or word address, and the R1:R0 register pair is used as data. R1 determines the instruction high byte, and R0 determines the instruction low byte... When setting the boot loader lock bits, the R1:R0 register pair is used as data. Refer to the device documentation for detailed description of SPM usage. This instruction can address the entire program memory.

А для xmeg to` более конкретно

The SPM instruction can access the entire flash, including the boot loader section itself. The protection level for the boot loader
section can be selected by the boot loader lock bits. If this section is not used for boot loader software, application code
can be stored here.
Прикрепленные файлы
Прикрепленный файл  MANUAL_XMEGA_A_.rar ( 5.52 мегабайт ) Кол-во скачиваний: 21
 


--------------------
Закон Мерфи:

Чем тщательнее составлен проект, тем больше неразбериха, если что-то пошло не так
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- Vadim.Dyachuk   Хранение данных в Flash-памяти   Oct 21 2013, 12:55
- - ILYAUL   Можно. Вы же написали boot , всё тоже самое   Oct 21 2013, 13:09
- - Vadim.Dyachuk   Дело в том что boot секция занята bootloader'о...   Oct 21 2013, 13:24
|- - zombi   Цитата(Vadim.Dyachuk @ Oct 21 2013, 16:24...   Oct 21 2013, 13:34
|- - Vadim.Dyachuk   Цитата(zombi @ Oct 21 2013, 16:34) Видеть...   Oct 21 2013, 13:49
|- - zombi   Цитата(Vadim.Dyachuk @ Oct 21 2013, 16:49...   Oct 21 2013, 14:19
- - Vadim.Dyachuk   То есть если просто зашить программу по заданному ...   Oct 22 2013, 06:33
- - ILYAUL   Правильно , пока вы ей не передадите управление   Oct 22 2013, 07:47
- - Vadim.Dyachuk   Спасибо за помощь! Но есть еще один вопрос: ...   Oct 22 2013, 08:12
- - ILYAUL   Обычно boot секция органично расположена в програм...   Oct 22 2013, 08:17
- - Vadim.Dyachuk   Просто, насколько я знаю в МК с поддержкой Boot-се...   Oct 22 2013, 08:24
- - ILYAUL   Всё таки интересно как Вы написали Boot loader Th...   Oct 22 2013, 08:33
- - Vadim.Dyachuk   Как я понял, прямо Вы мне не ответите?   Oct 22 2013, 08:47
- - Vadim.Dyachuk   Спасибо за помощ!   Oct 22 2013, 10:28
- - sKWO   Цитата(Vadim.Dyachuk @ Oct 21 2013, 16:55...   Oct 23 2013, 18:03


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

 


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


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