You are currently viewing Implementation of UART in BF532

Implementation of UART in BF532

Spread the love



In this exercise, you

☞Start up the VisualDSP++ environment

☞Open and build UART project

☞Changing the Project Options and Generating Loader file

☞Loading the Loader file into Flash and Run the Program

Step 1: Start VisualDSP++ and Open a Project

To start VisualDSP++ and open a project

1.    Click the Windows Start button and select Programs, Analog Devices, VisualDSP++ 4.5, and VisualDSP++ Environment.

2.    From the File menu, choose Open and then Project. VisualDSP++ displays the Open Project dialog box.

3.    In the Look in box, open the UART Project given in the CD Example codesproject-loaded-in-the-project-window

Project Loaded in the Project WindowChanging the Project Options:



This dialog box enables you to specify project build information.

9. Take a moment to view the various pages in the Project Options dialog box by selecting them from the tree on the left: Project, General, Compile, Assemble, Link, Load, Pre-Build, and Post-Build. On each page, you specify the tool options used to build the project.

Click the LOAD tab to display the General page, shown in Figure


choose boot mode as flash/ PROM, Boot Format as Intel ASCII and Output width as 16 bit.

Choose a folder for an output file After changing the options again Rebuild All


Loader file will be generated in the folder mentioned in the project options

Now the generated Loader file should be loaded into the Flash memory by using Blackfin Flash programmer

Make Sure that the Board is in Programming Mode, By Placing Jumpers at Proper Places In Programming Mode we should not connect any jumper to J1 and J2. The JUMPERS Should be there in J8 and WP and SSEL Should be Configured for BF532 i.e. The JUMPER should be there in the BF532 Side Now Actually BF532 Booting in “11“ mode i.e. Booting From SPI Flash for boot modes refer BF532 Hardware reference manual

Note :    Connect a Direct (1-1) Serial Cable to the Kit from PC

Step 1 – Connection Settings

Before the device can be used the settings required to make a connection must be specified.


Select the desired COM port from the drop down list or type the desired COM port directly into the box. If you enter the COM port yourself then you must enter it in one of the following formats.

Note: The Baud rate 115200 is to be selected for faster Loading of Larger Loader files. Note: Don’t Change Stop Bits and Data Bits, they are fixed in the code

Port name    COM1

Baud Rate    9600

Stop bits    1

Data bits    8


Port connected successfully will be displayed in output window

If it the port is not connected .The following message will display…


Ensure the kit is in proper mode and Press the RESET button in the Kit and try again..

Step 2 – Erasing

Press the erase button


Click ok to continue

After erasing the following message will be displayed in output window Note: Erase will take some time, based on the Flash Content. Worst Case Full Flash Erase time is around 120sec.Typical Timing is 30sec


Step 3 – Selecting the Hex File

Select the file by using browse button. The progress bar will show you the memory occupied and the file contents, file size and checksum will be displayed in status window.

Note: For Every Loader file, Checking in Status Window is Difficult; Checksum is the one that needs to check.


Step 4 – Programming the flash

Click program to program the device



After Successfully programming the Loader file , the Board should be configured to general Mode for running the loader file.

In general mode a jumper must be connected to J1 as given in 5th chapter.

Previously whatever are there in the ”Programming Mode” keep all Additionally just we need to put the JUMPER in J1 or BMODE1 in “C” side Now the Boot Mode is changed to “01 ” where it will Boot from 8-bit/16-bit Flash

Now open the HYPERTERMINAL Application as shown below


Port name : COM1

Baud rate : 9600

Parity : None

Data Bits : 8

Stop Bits : 1

Flow Control :None

RESET the Kit again (After Changing Hardware settings) You can See as shown


Type ‘@’ From Keyboard


Now Press any key DSP will Echo that key


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.