This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在使用C2000中C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f28004x\examples\flash目录下flashapi_ex5_lfu_no_reset历程时,成功通过if(command == (uint16_t)0x0700)判断后,程序却跳转到了static void Interrupt_illegalOperationHandler(void)中,请问在使用这个历程时需要什么额外的配置么?
你好,例程需要的配置一般在工程的main.c文件开头的注释中会说明,这个例程的说明挺多的,你可以看一下是否有做相关设置:
//! This example demonstrates how to perform a live firmware update with use //! of the Live Device Firmware Update (Live DFU or LDFU) command. The LDFU //! command is supported in Serial Flash Programmer which communicates with //! the SCI Flash Kernel. //! //! In the example, an SCI autobaud lock is performed and the byte used for autobaud //! lock is echoed back. Two interrupts are initialized and enabled: SCI Rx FIFO //! interrupt and CPU Timer 0 interrupt. The CPU Timer 0 interrupt occurs every 1 //! second; the interrupt service routine (ISR) for CPU Timer 0 toggles an LED //! based on the build configuration that is running. LED1 is toggled for the //! BANK0_FLASH and BANK0_ROM build configurations and LED2 is toggled for the //! BANK1_FLASH and BANK1_ROM build configuration. The SCI Rx FIFO interrupt is set //! for a FIFO interrupt level of 10 bytes. The number of bytes in a packet from the //! Serial Flash Programmer (when using the LDFU command) is 10. When a command is //! sent to the device from the Serial Flash Programmer, the SCI Rx FIFO ISR receives //! a command from the 10 byte packet in the FIFO. If the command matches the Live //! Device Firmware Update (Live DFU) command, then the code branches to the Live DFU //! function located inside of the SCI Flash Kernel for the corresponding bank. //! //! The project contains 2 build configurations: //! - BANK0_FLASH: Links the program sections to the appropriate locations //! in Bank 0 of flash and uses the Flash API library that //! links the Flash API functions to flash. The 'codestart' //! section is linked to the alternative flash entry point //! for Bank 0 (0x8EFF0) and the rest of the sections are //! linked to 0x082008 or above. Bank 0 configurations of //! the flash kernel reserve sector 0, sector 1, and the //! first 128 bits of sector 2 of Bank 0; therefore, sections //! must be linked to 0x082008 or higher. After building the //! configuration, the C2000 Hex Utility will output the //! program in the appropriate SCI boot hex format for the //! flash kernel and serial flash programmer in a file named //! 'flashapi_ex2_liveFirmwareUpdateBANK0FLASH.txt'. //! //! - BANK1_FLASH: Links the program sections to the appropriate locations //! in Bank 1 of flash and uses the Flash API library that //! links the Flash API functions to flash. The 'codestart' //! section is linked to the alternative flash entry point //! for Bank 1 (0x9EFF0) and the rest of the sections are //! linked to 0x092008 or above. Bank 1 configurations of //! the flash kernel reserve sector 0, sector 1, and the //! first 128 bits of sector 2 of Bank 1; therefore, //! sections must be linked to 0x092008 or higher. After //! building the configuration, the C2000 Hex Utility will //! output the program in the appropriate SCI boot hex format //! for the flash kernel and serial flash programmer in a //! file named 'flashapi_ex2_liveFirmwareUpdateBANK1FLASH.txt'. //! //! For more detailed steps and information refer to LFU_LED.docx placed at //! <C2000Ware>\device_support\f28004x\docs\LFU_LED_NO_RESET.pdf //! //! \b External \b Connections \n //! - Connect GPIO28 (SCI Rx) and GPIO29 (SCI Tx) to a COM port of the computer //! running the Serial Flash Programmer project. In control card this is //! routed via the USB port. So juct connecting the USB cable to PC will //! suffice. //! //! \b Watch \b LED1 or LED2 blinking and the blink rate. \n //! - None