DFU Programming Example Code for DFUSec.exe version 1.11

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DFU Programming Example Code for DFUSec.exe version 1.11

1,307件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gregd on Wed Dec 04 07:48:40 MST 2013
Is there example code available for the LPC4350 to support the latest version of the DFUSec.exe (v1.11).  I have searched all through LPCOpen v2.02 and can't find any example projects.  I need to develop and external NOR flash driver.

The lpcopen v1.03 version contains example code in the C:\LPCOpen V1.03\lpcopen\applications\lpc18xx_43xx\examples\dfuutil folder but they are for DFUSec.exe (v1.10).

Thanks,
Greg Dunn
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,116件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gregd on Wed Dec 04 11:48:13 MST 2013
Thank you very much for you quick response Kevin!

Greg Dunn
0 件の賞賛
返信

1,116件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wellsk on Wed Dec 04 10:11:01 MST 2013
The code is in the v2.02 release for the LPC18xx/43xx for the Keil LPC1857 board. (http://www.lpcware.com/system/files/lpcopen_v2_02_keil_iar_keil_mcb_1857.zip)
The example is located in the applications/lpc18xx_43xx/examples/dfuutil area and is called "dfuutil_programming_any".

Note there is no project file for this so I'll manually provide the details you need for building this...
Link code and data to address range 0x10000000 - 0x10007FFF, 32K size max recommended, but larger image is ok if your chip has the IRAM, code entry point is 0x10000000 (place startup code here)

You will need the following include paths in your project:
software\lpc_core\lpc_chip\chip_18xx_43xx
software\lpc_core\lpc_chip\chip_18xx_43xx\config_18xx (you will build for an M3 core, but the image will run on the LPC43xx M4 cores...)
software\lpc_core\lpc_chip\chip_common
software\lpc_core\lpc_chip\usbd_rom
software\lpc_core\lpc_board\boards_18xx\keil_mcb_1857
software\lpc_core\lpc_board\board_common
applications\lpc18xx_43xx\examples\dfuutil\dfuutil_programming_any
applications\lpc18xx_43xx\examples\dfuutil\dfuutil_common

Add the following source files to your project:
C:\dev\git\lpcopen\applications\lpc18xx_43xx\examples\dfuutil\dfuutil_programming_any
C:\dev\git\lpcopen\applications\lpc18xx_43xx\examples\dfuutil\dfuutil_common

Link the image with the chip and board libraries

There are a number of reference programming algorithms in the "dfuutil_programming_any" directory. You can add/remove/adjust these as necessary, but make sure your new NOR code is setup correctly in the dfuutil_programming_root_algorithm.c file in the algo_root_init() function.

Generate the binary for your image when complete and use the DFUSec tool RAW mode to add a header to the image. Use the image with header in the algo selection box in the programming mode with your sequenced programming steps.

Let me know if you need a project file for Keil or IAR. This program requires a larger than normal stack size (but no heap), I recommended a minimum of 0x800 bytes, maybe more depending on how much stack your NOR code may need..
0 件の賞賛
返信