note: lms= Lego Mindstorms
when openocd_flash doesn't work.
under programs Atmel /Sam-ba flash
In C++ Eclipse:
· setup_lms creates the makefiles
· all (see makefile.am for list of files ) (just normal make all)
· compiles and links to ecos
· the output file is forte. (no ext)
From Desktop:
when openocd_flash doesn't work.
under programs Atmel /Sam-ba flash
In C++ Eclipse:
· setup_lms creates the makefiles
· all (see makefile.am for list of files ) (just normal make all)
· compiles and links to ecos
· the output file is forte. (no ext)
From Desktop:
openocd_flash.bat
· first creates the forte.bin· It outputs size of forte.bin
· It flashes forte.bin to lms via jtag. (with the available FBs)
After flashing, the program does not run, it’s halted.
openocd.bat resets the lms and starts running.
In java Eclipse - run
open 4diac-ide deployment:
· check system with application
· download (FB instantiations that make up the application)
· application should run
Optional debugging with gdb
· start arm-elf-insight from cygwin
in gdb
· Open forte using default
· connect via Ethernet – localhost/3333
(where? details notes lost)
· monitor reset
· monitor halt
· (usually did a 2nd reset?)
· see GDB table for more commands
· can only use 1 breakpoint at a time
· openocd.bat (should already be running)
First Tasks:
Check Sensor HW outputs like:
GetButtonState() - buttons are 1,2,4,8 but which button is which
SetOutputPower(…) - from motor
etc.
Cmds from cygwin history:
cd events/
svn commit -m"solved issue in E_RS"
cd /cygdrive/c
whoami
login
cd /cygdrive_ecos
cd /cygdrive/c
cd sourceware_ecos
cd 3/lego/blink_hal
make
make clean
svn
arm-elf-insight
arm-elf-size blink_hal
cd ../d/AA_local/eclipseWork/forte_lms_neu/src/fblib/
No comments:
Post a Comment