AnsweredAssumed Answered

DFU through USB Memory Issue

Question asked by dearmer.gary on Dec 16, 2015
Latest reply on Dec 17, 2015 by dearmer.gary
I've been trying to upgrade the firmware on my STM32F105 project by using DFU through USB. The problem is that I need to read ADC using DMA for both the boot code (to check whether some switches are set right to allow DFU), and in my main application. What is the best and safest way to ensure that the destination memory locations for the DMA are the same in both the boot ans application projects. I'm pretty sure that this is what is stopping things working at the moment.
I currently declare the array as follows:
__IO uint16_t ADCConvertedValue[5];
The line in the DMA initialisation, using standard peripheral libraries is:
  DMA_InitStructure.DMA_MemoryBaseAddr = (uint32_t)&ADCConvertedValue;
Any thoughts?

Outcomes