Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: MSP430F5418 + Code Composer V4.0 + DMA не работает Halt
Форум разработчиков электроники ELECTRONIX.ru > Микроконтроллеры (MCs) > MSP430
Paramedic
При отладке MSP430F5418 под Code Composer Studio V4.0 и использовнии в программе DMA при попытке останова программы возникает следующая проблема:
"MSP430: Trouble Halting Target CPU: Could not terminate EEM polling thread." Программа-то вроде бы останавливается (светодиод на плате перестают мигать), а отладчик показывает, что всё в процессе и не хочет останавливаться.
Без DMA всё гуд. Нашёл в ерате:
EEM4 - Bug description
Module: Enhanced Emulation Logic, Function: No breakpoint stop reaction at DMA/CPU switch
If an address-related trigger, such as the general IDE breakpoint, is triggered for a CPU instruction
one cycle after a DMA transaction, the stop reaction is not accepted by the EEM (does not halt
program execution). A data related trigger set at a DMA transaction one cycle after a CPU
instruction results in the same behavior.
Workaround:
Use trigger configurations that are not dependent on DMA/not-DMA transactions (Read, Write, or
Don't Care). The State Storage Block can then be used at program stop to determine:
• Whether the trigger-causing event was a DMA or a non-DMA transaction
• The state of the program at the time of the event
Пробовал различные конфигурации триггеров в отладчике, не помогает. Может кто сталкивался?
mdmitry
Цитата(Paramedic @ Nov 5 2009, 10:47) *
...

Посмотрите и другие ошибки. EEM8 не Ваш ли случай? Кстати, последняя версия SLAZ046D Revised October, 21, 2009.
Paramedic
Да, в моей ерате этого ещё не было sad.gif А TI тем временем мне отвечает:
"So, the problem is not caused by the DMA itself.
I assume the problem is caused by the special structure of your code and not due
to CCS software problem - have you verified if SPI is working correctly - maybe
the DMA was never starting as the required interrupt was missing in SPI
communication?
I would recommend to build up your code based on TI code examples like
msp430x54x_dma_03.c to ensure the problem is not caused by the structure of the
code and increase step by step functionality."
mdmitry
TI обещал новую исправленную версию описания для 54xx в ноябре-декабре сделать. Errata и User Guide уже есть rolleyes.gif
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Invision Power Board © 2001-2025 Invision Power Services, Inc.