S32DS3.5 platform project file establishment and configuration tool use

       At present, I see that there are many learning blogs about S32DS on CSDN, etc., but many of them are based on for ARM, and modularize various peripherals, and the content is very detailed and rich. I just joined the job recently and need to develop S32K144 on the S32DS3.5 platform, which involves multiple communication interfaces and so on. I found that the various interface configurations of this version are somewhat different from those for ARM, so this article will briefly introduce it first. 3.5 simple configuration and so on.

 1. Platform development kit download

        This time I used the S32K144 chip. There are many official routines that can be downloaded, but the firmware package may not be automatically downloaded after the software is installed. Here, find and install it in the connection shown in the figure below. The installation process may be a bit slow.

        There is a corresponding download link in the Help on the upper left. I open it here too slowly, so I won’t show pictures. Readers can download it according to their own needs.

        After the download is complete, creating a new project is similar to that of version 2.2, and you can configure it freely according to your own situation.

 

2. Platform graphical interface configuration

        The specific parameters of the initial configuration will not change. In the graphical configuration of 2.2, you can pull the interface you want to use, such as can_pal, spi_pal, etc., but in version 3.5, there is a column of configuration tools, and various official library functions are available. It can be configured in it, and the pins including GPIO and so on can also be freely selected.

         The figure below shows the pin configuration, which can configure the working mode of each pin of the chip, input and output, pull-up and pull-down, etc. For detailed pin functions, please refer to the data sheet.

 

 

        The figure below shows the clock configuration. The clock can be configured according to the requirements. I have intercepted a part of it.

        The figure below is a reference to the official library function, which can be selected according to the needs.

 

3. Examples

        Below I will give a brief explanation with reference to the spi_pal routine of the official routine:

        The first is the graphical configuration page. The routine configures the SPI communication between LPSPI0 and FLEXIO on the board and calls the spi_pal function. The configuration demonstration in the above figure refers to this routine.

 Part of the configuration information can be learned in detail in the routine, so I won’t go into details here.

After configuration, as shown in the figure below, click Update Source Code to write the configuration information directly into the main function

/* Including necessary configuration files. */
#include "sdk_project_config.h"

        Retroactive discovery is defined here:

/* Include header files for all configured components */
#include "clock_config.h"
#include "pin_mux.h"
#include "peripherals_spi_pal_1.h"
#include "peripherals_spi_pal_2.h"

        I don’t give too much introduction to the code here. This article mainly wants to share with you some specific operations about the configuration of version 3.5. Now I am just starting to learn these, and there will be many questions. Welcome to correct me. I will continue to write in the follow-up Some similar learning records, including serial port, CAN, SPI, etc., hope to make progress with everyone.

 

 

Guess you like

Origin blog.csdn.net/happy_friend_/article/details/131330613