Hi all... maybe this is too a basic question... I was working with WinAvr, and have decided to work with winarm also. So I downloaded the winarm20060606 and installed it, and opened the programmers notepad from the pn folder and loaded a example project and clicked "make All" i get this message which is OK i think ************************************************************************ **** -------- begin -------- arm-elf-gcc (GCC) 4.1.1 (WinARM) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Size before: main.elf : section size addr .text 2816 0 .bss 224 1073741824 .stack 1024 1073742080 .comment 135 0 .debug_aranges 192 0 .debug_pubnames 666 0 .debug_info 2973 0 .debug_abbrev 1310 0 .debug_line 890 0 .debug_frame 672 0 .debug_str 875 0 .debug_loc 1094 0 .debug_ranges 200 0 Total 13071 Size after: main.elf : section size addr .text 2816 0 .bss 224 1073741824 .stack 1024 1073742080 .comment 135 0 .debug_aranges 192 0 .debug_pubnames 666 0 .debug_info 2973 0 .debug_abbrev 1310 0 .debug_line 890 0 .debug_frame 672 0 .debug_str 875 0 .debug_loc 1094 0 .debug_ranges 200 0 Total 13071 Errors: none -------- end -------- > Process Exit Code: 0 > Time Taken: 00:01 ************************************************************************ **** Then to download the code in to my controller i clicked "Make program" i get this message ************************************************************************ **** > "make.exe" program You may have to bring the target in bootloader-mode now. lpc21isp main.hex com1 115200 14746 lpc21isp version 1.31 File main.hex: loaded... converted to binary format... image size : 2816 Can't open COM-Port com1 ! - Error: 2 make.exe: *** [program] Error 2 > Process Exit Code: 2 > Time Taken: 00:00 ************************************************************************ **** NOW I need information about -- HOW to download into my flash of LPC2106 controller?? How do i satisfy this statement --->> You may have to bring the target in bootloader-mode now. Is it ok if i just connect a serial cable from my PC COM port to the (OLIMEX LPC2106) Board DB9 connector ?? I am sure there must be some settings to be done before i program the controller. can any of u pls give me some information regarding this. thanks for your time cal.
Calvin Ho wrote: > Hi all... > > maybe this is too a basic question... > > I was working with WinAvr, and have decided to work with winarm also. > > So I downloaded the winarm20060606 and installed it, and opened the > programmers notepad from the pn folder and loaded a example project and > clicked "make All" > > i get this message which is OK i think > > ************************************************************************ **** > -------- begin -------- > arm-elf-gcc (GCC) 4.1.1 (WinARM) > Copyright (C) 2006 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is > NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > > Size before: > main.elf : > section size addr > .text 2816 0 > .bss 224 1073741824 > .stack 1024 1073742080 > .comment 135 0 > .debug_aranges 192 0 > .debug_pubnames 666 0 > .debug_info 2973 0 > .debug_abbrev 1310 0 > .debug_line 890 0 > .debug_frame 672 0 > .debug_str 875 0 > .debug_loc 1094 0 > .debug_ranges 200 0 > Total 13071 > > > > > Size after: > main.elf : > section size addr > .text 2816 0 > .bss 224 1073741824 > .stack 1024 1073742080 > .comment 135 0 > .debug_aranges 192 0 > .debug_pubnames 666 0 > .debug_info 2973 0 > .debug_abbrev 1310 0 > .debug_line 890 0 > .debug_frame 672 0 > .debug_str 875 0 > .debug_loc 1094 0 > .debug_ranges 200 0 > Total 13071 > > > > Errors: none > -------- end -------- > > >> Process Exit Code: 0 >> Time Taken: 00:01 > > ************************************************************************ **** > > > Then to download the code in to my controller i clicked "Make program" > i get this message > ************************************************************************ **** >> "make.exe" program > > You may have to bring the target in bootloader-mode now. > lpc21isp main.hex com1 115200 14746 > lpc21isp version 1.31 > File main.hex: > loaded... > converted to binary format... > image size : 2816 > Can't open COM-Port com1 ! - Error: 2 This indicates that the COM-Port is either not available or it is used by another software. USB-seriall-Adapter in use? The entry for the COM-Port in the makefile which us used as parameter in the call of lpc21isp must be the one connected to the LPC's UART0. > make.exe: *** [program] Error 2 > >> Process Exit Code: 2 >> Time Taken: 00:00 > ************************************************************************ **** > > NOW I need information about -- > HOW to download into my flash of LPC2106 controller?? There are several solutions when using the LPC bootloader - the method used (make program->call of lpc21isp) after correcting the parameters - the old Philips ISP tools - Flash Magic > How do i satisfy this statement --->> You may have to bring the target > in bootloader-mode now. Make shure the "BSL-Pin" is low before doing a reset (P0.14 on LPC2106), see the LPC2106 user's manual. Depending on your hardware/board P0.14 and Reset might be controlled by the COM-Port status-outputs. If not it has do be done manually: Hold P0.14 low, pulse Reset low, now the booloader is active > Is it ok if i just connect a serial cable from my PC COM port to the > (OLIMEX LPC2106) Board DB9 connector ?? Set the BSL-Jumper, Push the Reset button, release the reset-button, do "make program". > I am sure there must be some settings to be done before i program the > controller. See above, the user's manual, the NXP application-notes the Flashmagic documentation. > can any of u pls give me some information regarding this. Hope this helps
Martin Thomas wrote: Hope this helps........... It really helped me, and got me going on with my development. I downloaded flash magic, since i could not find the link to old Philips ISP tools. I used flash magic to download and using the jumper on the BSL pins during downloading the program and removing the jumper and pressing reset for execution, it worked. I noticed that, with "programmers notepad" i can "clean-all" and "make-all" and also "make-program" to download the hex file into the board and execute it without using the flash magic. !! It worked and i did not have to use flash magic at all. So does it mean, i dont need flash magic to download the program onto my board?
Calvin Ho wrote: > ... > So does it mean, i dont need flash magic to download the program onto my > board? Yes. Flashmagic and lpc21isp are just different programs which can "talk" to the LPC's internal bootloader. Read the LPC user's manual (ISP) for further information.
Martin Thomas wrote: > Calvin Ho wrote: >> ... >> So does it mean, i dont need flash magic to download the program onto my >> board? > > Yes. Flashmagic and lpc21isp are just different programs which can > "talk" to the LPC's internal bootloader. Read the LPC user's manual > (ISP) for further information. thank you Thomas, I am going through the manuals and other sources, Winarm is really so easy, i remember installing eclipse, gnuarm, and cygwin and all other tools, it was so complicated, now with winarm it seems much easy. thanks.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.