Wiki

This version (09 Mar 2022 04:16) was approved by John Neeko Garlitos.The Previously approved version (15 Dec 2021 12:18) is available.Diff

CN0540 and the STM Discovery Kit

General Setup

The following sections on setup describe the steps for setting up the CN0540 board using the 32F746GDISCOVERY micro-controller boards.

Equipment

Hardware Setup

The following sections describe the process of setting up the hardware for the 32F746GDISCOVERY micro-controller boards. It's important to note that the Arduino headers on the CN0540 are surface mounted and as such the user should take care not to bend or break the headers.

32F746 Discovery

Shown below is the CN0540 board mounted on the 32F746GDISCOVERY board via the Arduino headers. The 32F746GDISCOVERY board only requires a Standard-A to Mini-B USB cable to connect to the PC. If properly connected the large red LED LD7 should light as well as the red LED LD2.

Software Setup

Porting the EVAL-CN0540-ARDZ MBED Example program to DISCO-F746NG Board

  1. The first step in interfacing the EVAL-CN0540-ARDZ to DISCO-F746NG board is importing the EVAL-CN0540-ARDZ into your online compiler. Refer to this link for the instructions: Importing the EVAL-CN0540-ARDZ MBED Example program
  2. Then click the “Platform Selection” section of your online IDE.
  3. After that, select the “Add Board” option.
  4. Then, search for the DISCO-F746NG board on the available platforms.
  5. Next is to add the DISCO-F746NG board to your online compiler.
  6. After that, the DISCO-F746NG board will be available to your available platforms.
  7. Then select it and recompile the code.
  8. The extracted binary can be loaded to the DISCO-F746NG board by dragging and dropping the binary file to the DISCO-F746NG directory.

Note: Refer to this video for the example on how to load a program: https://youtu.be/3xbzuPLcmCk?t=233

Installing the 32F746 Discovery Board driver

Following are the steps then required to be completed to set up the EVAL-CN0540-ARDZ Shield using the 32F746G Discovery board:

  1. Download the ST-LINK/V2 driver and run the .exe file. Follow the instructions on the window that appears to install the drives. (Note: This requires a free account for my.st.com)
  2. Plug the USB cables from the PC into the 32F746G Discovery board. If installation was successful a new device named DIS_F746NG should appear under 'This PC' in Windows File Explorer.
  3. Download the AD7768_demo.bin firmware.
  4. Copy and paste or drag and drop the AD7768_demo.bin file into the DIS_F746NG device/folder. This will load the firmware onto the board.
  5. If the download fails, a FAIL.TXT file will appear on the DIS_F746NG device.
  6. If the download is successful the .bin file will disappear from the DIS_F746NG device and there will be no FAIL.TXT file.
  7. Unplug the 32F746G Discovery board from the PC and plug it back in to hard reset the board and finalize installation.

Designing User Interface using the 32F746NG Discovery board

One of the major features of the 32F746G Discovery board is the on-board touchscreen, which can be used by the CN0540 board. User can design their own User Interface (UI) by by adding the DISCOF746NG Board Support Package (BSP). Using the DISCOF746NG BSP custom UI can be done as shown in the images below.

End of Document

resources/eval/user-guides/circuits-from-the-lab/cn0540/stm-discovery.txt · Last modified: 09 Mar 2022 04:16 by John Neeko Garlitos