Quick start guide

Hardware requirements

  • Tower system for Kinetis K70F120M (with TWR-SER expansion)
  • Mini USB type-B cable
  • Silica BrooklynBoard
  • PC with at least one RS232 serial port and terminal software (two serial port for MAX3232 emulation)
  • RS232 DB9 serial cable (modem type)
  • Maxim Analog Essential Collection
_images/SILICA_Brooklyn_Board.jpg

Software requirements

  • CodeWarrior MCU v10.3 Special Edition (download here).
  • Brooklyn Board application firmware for TWR-K70F120M system (download here ....)

Hardware setup

  • Assemble tower system TWR-K70F120M and Brooklin Board as in figure below.
_images/assemble.jpg
Don’t care slot position, but be careful to connect Primary and Secondary connector properly.
Take care at reference signed near PCI board connectors.
_images/pmod_pry.jpg
  • Plug a Pmod Device (i.e. DS3231M Real Time Clock) inside properly connector.
_images/pmod_in.jpg

–> Be careful to see device reference next to connector. Each connector is designed for one or more devices and will only accept dedicated modules.

  • Plug Mini USB type-B cable into Cpu Board plug and connect to PC with Codewarrior. TWR power led will on
_images/twr_on.jpg
  • If you see device tab, you will find OSBDM/OSJTAG debug port
_images/twr_conn.jpg
  • plug the standard serial DB9 cable into serial connector on Tower System
  • connect serial cable to terminal PC (equipped with terminal SW)
_images/serial.jpg
  • On your terminal PC setup COMx parameter:
speed = 115200 baud
data with = 8
parity = none
stop bit = 1
flow control = none
_images/com_set.jpg

Now you are ready for install FW project.

Brooklyn Board FW setup

  • Extract from Pmod1_6.zip the folder Pmod1_6 and place it into Codewarrior default workspace
_images/pmod1_work.jpg
  • start Codewarrior. Select “workspace” as in default window and click OK.
_images/pmod2_work.jpg

Now we could see the welcome window of Codewarrior Developement Suite

_images/pmod3_welcome.jpg

maybe will open firewall popup as below

_images/pmod_fire.jpg

if yes, left-clik on enable access and proceed

  • close the welcome window by clicking ‘X‘ in the Welcome tab
_images/pmod_close_welcome.jpg

Now we can see the Codewarrior main window

_images/pmod_main.jpg

Codewarrior is ready to import the project

Pmod FIRMWARE IMPORT

  • Select File –> Import and click
_images/pmod_import.jpg
  • in the next tab select “Existing Project into Workspace” and click “NEXT”
_images/pmod_space.jpg
  • in the next window make the following step
1 - click on Brouse button.
2 - select folder “Pmod1_6” as below.
3 - click on OK button.
_images/pmod_folder.jpg
  • select checkbox “Pmod1_6(C:\User\ my_foder_name \workspace\Pmod1_6) and “Copy projects into workspace”
  • click “Finish”
_images/pmod_setprj.jpg

How to build Brooklyn Board FW

  • see Codewarrior Project tab an selec the project “Pmod1_6”, right-clik over, select “Clean Project” an clik
_images/pmod_clean.jpg

when process finish, see at hammer icon and click right arrow: in the tab you can see “1 FLASH” checked

_images/pmod_bcheck.jpg

now click single-hammer icon to build entire project

_images/pmod_build.jpg

See the “problems” tab. There are 2 warnings derived from original project. They have no functionallity effects.

_images/pmod_problem.jpg

see the bug icon and click right arrow, select “Debug configurations” and click

_images/pmod_setdb.jpg

Debug Configurations tab will open

_images/pmod_setdb1.jpg

expand Codewarrior Download, select “Pmod1_FLASH_PnE U-Multilink” an click. Now we see

_images/pmod_setdb2.jpg

click on “Debug” button and wait

maybe will open firewall popup as below

_images/pmod_fire1.jpg

if yes, left-clik on enable access and proceed

during firmware download this tab will open

_images/pmod_prog.jpg

and when download finish you see the main debug windows of Codewarrior

_images/pmod_debug.jpg

to start program you can press “F8” or click on Icon red-circled in image above

NOTE: for full Codewarrior functionallity please refer to Freescale Official Guide

download here Codewarrior Guide

Running Brooklyn Board FW

When you start program, in terminal window you can see for few seconds this screen

_images/first.jpg

and after you can see the main menu

_images/second.jpg
Now select device menu (typing selection key in the terminal window) and follow menu option to test device.
It is strongly recommended to change or insert Pmod Modules when Tower System is off (without power).
Then, turn off the power by disconnecting the Mini USB B-type cable, remove device (if present) and insert new module in properly connector.
Turn on the power by plug the Mini USB B-type cable. The program will restart. Follow same steps used before to test new device