CN0540 and the STM Discovery Kit
The following sections on setup describe the steps for setting up the CN0540 board using the 32F746GDISCOVERY micro-controller boards.
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.
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.
Porting the EVAL-CN0540-ARDZ MBED Example program to DISCO-F746NG Board
Then click the “Platform Selection” section of your online IDE
After that, select the “Add Board” option.
Then, search for the DISCO-F746NG board on the available platforms.
Next is to add the DISCO-F746NG board to your online compiler.
After that, the DISCO-F746NG board will be available to your available platforms.
Then select it and recompile the code.
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:
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)
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.
Download the AD7768_demo.bin firmware.
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.
If the download fails, a FAIL.TXT file will appear on the DIS_F746NG device.
If the download is successful the .bin file will disappear from the DIS_F746NG device and there will be no FAIL.TXT file.
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