Hi,
I tried to program the DMA of the MCBSTR9 board but found out that it does not work. So far, Timer, ADC, VIC, & GPIO work for me.
The funny thing I see is that when I use simulation mode and run it in debugging mode, writing into the DMA registers like:
DMA->CCNF= 0xc000;
or
DMA_Channel3->SRC = &sourceAddress;
give "no write permission" warning message. The same thing goes for reading these registers.
I do not get this error for other on-chip peripherals I mentioned above. Can someone shed some light?
Sorry I meant to write
DMA->CNFR = 1;
instead of
Maybe this can help you: http://www.keil.com/support/docs/814.htm
have you seen this example in your tool chain installation path?
...\Keil\ARM\Examples\ST\STR91xLib\DMA\EXAMPLE1
No, it stops at ..\Keil\ARM\Examples\ST\STR91xLib\DMA (no Example1 directory)
it is included in MDK 3.20.
I already seen this accessing memory error but in my case the evaluation board wasn't correctly chosen in the project options / Device tab
Thanks for pointing out the example program. The example program works.
But I still have a query. Why Keil IDE simulation mode does not support the DMA? I can see other peripherals in the drop down menu, but not the DMA.