AnsweredAssumed Answered

STM32F105 in-application programming restrictions?

Question asked by Andy J on Feb 17, 2015
Latest reply on Feb 18, 2015 by Andy J
I'm looking at the feasibility of performing in-application programming for an existing product that has an external CAN interface, but which, as far as I can tell, cannot use the integral system boot loader, (as CAN1 is used, not CAN2). In normal operation, to support CAN, HSE is used, which is compatible with PM0075 statement concerning the system boot loader: "The USART peripheral operates with the internal 8 MHz oscillator (HSI), however the CAN and USB OTG FS can only function if an external 8 MHz, 14.7456 MHz or 25 MHz clock (HSE) is present." However, PM0075 also states that "For write and erase operations on the Flash memory (write/erase), the internal RC oscillator (HSI) must be ON. The Flash memory can be programmed and erased using in-circuit programming and inapplication programming." which seems to rule out servicing the CAN interface while performing Flash erase/write operations, unless I'm misinterpretting the rules. Is this statement correct? Does this mean that an in-application reprogramming function has to select HSE to download the data via CAN for reprogramming, and then switch to HSI for the duration of Flash programming?


For anyone else reading around the subject, note that PM0075 references AN2662, but this became obsolete when AN2606 was updated in March 2010.