3 Replies Latest reply on Jul 29, 2019 4:05 AM by RaktimR_11

    BCM94343 quick start guide  that maps J7 from 94343 to eval board

    GiHe_2512991

      in quick start guide bcm943341 is has the J7 mapping right in section 3: hardware details for that board,

      I need the same thing for BCM94343, which has no quick start guide with the J7 mapping.

       

      With the 943341 J7 has 28 pins

       

      with 94343 it has 30 pins,  where is this mapping outlined between bcm94343 and the dev board???

       

      any one know.

       

      Sincerely,

      Gillian.

        • 1. Re: BCM94343 quick start guide  that maps J7 from 94343 to eval board
          RaktimR_11

          Eval Board Header

           

           

          STM32F411VEH6 Pin Name

           

          WICED Enumeration

           

          J7.1

           

          VDD 3V3

           

          NA

           

          J7.2

           

          GND

           

          NA

           

          J7.3

           

          WL_GPIO_1

           

          NA

           

          J7.4

           

          MICRO_UART_RX

           

          WICED_GPIO_10

           

          J7.5

           

          MICRO_UART_CTS

           

          WICED_GPIO_18

           

          J7.6

           

          MICRO_UART_TX

           

          WICED_GPIO_9

           

          J7.7

           

          MICRO_UART_RTS

           

          WICED_GPIO_19

           

          J7.8

           

          MICRO_I2C1_SCL

           

           WICED_GPIO_24

           

          J7.9

           

          MCIRO_I2C1_SDA

           

          WICED_GPIO_25

           

          J7.10

           

          MICRO_GPIO_2

           

          WICED_GPIO_20

           

          J7.11

           

          MICRO_GPIO_3

           

          WICED_GPIO_21

           

          J7.12

           

          MICRO_GPIO_4

           

          WICED_GPIO_22

           

          J7.13

           

          MICRO_GPIO_5

           

          WICED_GPIO_23

           

          J7.14

           

          MICRO_WKUP

           

          WICED_GPIO_1

           

          J7.15

           

          MICRO_ADC_IN2

           

          WICED_GPIO_3

           

          J7.16

           

          MICRO_ADC_IN1

           

          WICED_GPIO_2

           

          J7.17

           

          MICRO_SPI1_SSN

           

          WICED_GPIO_5

           

          J7.18

           

          MICRO_ADC_IN3

           

          WICED_GPIO_4

           

          J7.19

           

          MICRO_SPI1_MISO

           

          WICED_GPIO_7

           

          J7.20

           

          MICRO_SPI1_SCK

           

          WICED_GPIO_6

           

          J7.21

           

          MICRO_GPIO_0

           

          WICED_GPIO_11

           

          J7.22

           

          MICRO_SPI1_MOSI

           

          WICED_GPIO_8

           

          J7.23

           

          MICRO_SP12_SSN

           

          WICED_GPIO_15

           

          J7.24

           

          MICRO_GPIO_1

           

          WICED_GPIO_26

           

          J7.25

           

          MICRO_SPI2_MISO

           

          WICED_GPIO_17

           

          J7.26

           

          MICRO_SPI2_SCK

           

          WICED_GPIO_16

           

          J7.27

           

          MICRO_I2C2_SDA

           

          WICED_GPIO_27

           

          J7.28

           

          MICRO_SPI2_MOSI

           

          NC

           

          J7.29

           

          GND

           

          NA

           

          J7.30

           

          MICRO_I2C2_SCL

           

          WICED_GPIO_12


          1 of 1 people found this helpful
          • 2. Re: BCM94343 quick start guide  that maps J7 from 94343 to eval board
            GiHe_2512991

            Raktim Thank you,

             

            I am using the information J7 mapping you outlined but I was not able to get it to work at this time

            using this code. I"m trying to use multiple PWM's to run power to motors, this is for testing purposes

            on a product we are developing. I have not added the other PWM_GPIO's yet.  if you have some code examples I would appreciate it. or point me somewhere that has them using cypress examples.

             

            Do you by chance have any code examples: ??   i'm listing our code example here

             

            #include "wiced.h"

             

            #define PWM_PIN WICED_PWM_1  //# White Led using base GPIO allocation j2 pin21 found this by testing each J7 pin

             

            #define PWM_PIN WICED_GPIO_20

             

            void application_start()

            {   /* start of program  */

             

                wiced_init();   /* Initialize the WICED device */

             

                wiced_gpio_deinit(WICED_LED2);

                wiced_gpio_deinit(WICED_LED1);

                wiced_gpio_deinit(WICED_GPIO_20);

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO((" =============================================================\n"));

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO(("Date 5_9_19   \n"));

                WPRINT_APP_INFO(("HELLO, WELCOME TO Multiple PWM test PROGRAM USING Keyboard \n"));

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO(("Set up Putty to COM port using, Baud 115200,terminal line echo forced on \n"));

                WPRINT_APP_INFO(("Typing via Putty \n"));

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO((" Enter m1 for motor 1, m2 for motor 2, m3 for motor 3, m4 for motor 4\n"));

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO((" \n"));

             

                char  receiveChar;

                uint32_t expected_data_size = 1;

             

                #define RX_BUFFER_SIZE (5)

                wiced_ring_buffer_t rx_buffer;

                uint8_t   rx_data[RX_BUFFER_SIZE];

                ring_buffer_init(&rx_buffer, rx_data, RX_BUFFER_SIZE );

             

                wiced_uart_config_t uart_config =

                {    /* start to change baud rate */

                        .baud_rate    = 115200,

                        .data_width   = DATA_WIDTH_8BIT,

                        .parity       = NO_PARITY,

                        .stop_bits    = STOP_BITS_1,

                        .flow_control = FLOW_CONTROL_DISABLED,

                };   /* End to change baud rate */

            while (1)

            {

                char receiveColor;

                wiced_uart_init( STDIO_UART, &uart_config, &rx_buffer);

                while ( 1 )

                {    /* start of while loop for program  */

                    if (wiced_uart_receive_bytes(STDIO_UART, &receiveChar, &expected_data_size, WICED_NEVER_TIMEOUT) == WICED_SUCCESS)

                    {  /*Start to get input loop */

                        receiveColor = receiveChar;

                        if(receiveColor == 'm1') /* start if for motor 1 */

                        {

             

                            WPRINT_APP_INFO((" \n"));

                            WPRINT_APP_INFO((" \n"));

                            WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveColor));

                            WPRINT_APP_INFO(("=>=>=> m1 for motor 1 \n"));

             

                            WPRINT_APP_INFO((" \n"));

                            break;

                        }/* finish if for red */

                        else if (receiveColor == 'm2') /* start if for motor 2 */

                        {

             

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveColor));

                             WPRINT_APP_INFO(("=>=>=> m2 for motor 2  \n"));

                             WPRINT_APP_INFO((" \n"));

                             break;

                        }   /* finish if for blue */

                        else if(receiveColor == 'm3')  /* start if for motor 3 */

                        {

             

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                             WPRINT_APP_INFO(("=>=>=> m3 for motor 3 \n"));

             

                             WPRINT_APP_INFO((" \n"));

                             break;

                        }  /* finish if for green */

                        else if(receiveColor == 'o') /* start if for motor 4 */

                        {

             

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                             WPRINT_APP_INFO(("=>=>=> m4 for motor 4 \n"));

             

                             WPRINT_APP_INFO((" \n"));

                             break;

                        }   /* finish if for power error */

             

                        else

                             {

                                 WPRINT_APP_INFO((" \n"));

                                 WPRINT_APP_INFO(("    due to error, Press POWER \n"));

                                 WPRINT_APP_INFO((" \n"));

                             }

             

                        } /* finish if error */

             

             

                    }  /* end of getting char loop */

             

             

            /* ========================================================================================= */

             

             

             

             

            /* program turns on and off led by pressing 0 or 1 from terminal */

             

                #define PWM_PIN WICED_PWM_1

             

                int duty_cycle = 0.0;

                wiced_gpio_deinit(WICED_LED2);

                wiced_gpio_deinit(WICED_LED1);

                WPRINT_APP_INFO((" \n"));

             

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO(("Enter 1 for 25 percent, 2 for 50 percent, 3 for 75 percent, 4 for 100 percent or 0 for off \n"));

                WPRINT_APP_INFO(("Enter 5 at any time for restart program for new color \n"));

             

                WPRINT_APP_INFO((" \n"));

                WPRINT_APP_INFO((" \n"));

             

                /* #define RX_BUFFER_SIZE (5) */

                ring_buffer_init(&rx_buffer, rx_data, RX_BUFFER_SIZE );

             

                wiced_uart_init( STDIO_UART, &uart_config, &rx_buffer);

                while ( 1 )

                {    /* start of while loop for program  */

                    if (wiced_uart_receive_bytes(STDIO_UART, &receiveChar, &expected_data_size, WICED_NEVER_TIMEOUT) == WICED_SUCCESS)

                    {  /*Start to get input loop */

                        if(receiveChar == '1') /* start if for 25 bright */

                        {

                            duty_cycle = 25.0;

                            WPRINT_APP_INFO((" \n"));

                            WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                            WPRINT_APP_INFO(("Percentage of brightness is  %d\n",duty_cycle));

                            WPRINT_APP_INFO(("Press button on keyboard to change brightness\n"));

                            WPRINT_APP_INFO((" \n"));

                            wiced_pwm_init(PWM_PIN, 1000, duty_cycle);

                            wiced_pwm_start(PWM_PIN);

                            wiced_rtos_delay_milliseconds(10);

                        }/* finish if for 25 bright */

                        else if (receiveChar == '2') /* start if for 50 bright */

                        {

                             duty_cycle = 50.0;

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                             WPRINT_APP_INFO(("Percentage of brightness is  %d\n",duty_cycle));

                             WPRINT_APP_INFO(("Press button on keyboard to change brightness\n"));

                             WPRINT_APP_INFO((" \n"));

                             wiced_pwm_init(PWM_PIN, 1000, duty_cycle);

                             wiced_pwm_start(PWM_PIN);

                             wiced_rtos_delay_milliseconds(10);

                        }   /* finish if for 50 bright */

                        else if(receiveChar == '3')  /* start if for 75 bright */

                        {

                             duty_cycle =75.0;

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                             WPRINT_APP_INFO(("Percentage of brightness is  %d\n",duty_cycle));

                             WPRINT_APP_INFO(("Press button on keyboard to change brightness\n"));

                             WPRINT_APP_INFO((" \n"));

                             wiced_pwm_init(PWM_PIN, 1000, duty_cycle);

                             wiced_pwm_start(PWM_PIN);

                             wiced_rtos_delay_milliseconds(10);

                        }  /* finish if for 75 bright */

                        else if(receiveChar == '4') /* start if for 100 bright */

                        {

                             duty_cycle =100.0;

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                             WPRINT_APP_INFO(("Percentage of brightness is  %d\n",duty_cycle));

             

                             WPRINT_APP_INFO(("Press button on keyboard to change brightness\n"));

                             WPRINT_APP_INFO((" \n"));

                             wiced_pwm_init(PWM_PIN, 1000, duty_cycle);

                             wiced_pwm_start(PWM_PIN);

                             wiced_rtos_delay_milliseconds(10);

                        }   /* finish if for 100 bright */

                        else if(receiveChar == '0')  /* start if for 0 bright */

                        {

                             duty_cycle =00.0;

                             WPRINT_APP_INFO((" \n"));

                             WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                             WPRINT_APP_INFO(("Percentage of power is  %d\n",duty_cycle));

                             WPRINT_APP_INFO(("Press button on keyboard to change power\n"));

                             WPRINT_APP_INFO((" \n"));

                             wiced_pwm_init(PWM_PIN, 1000, duty_cycle);

                             wiced_pwm_start(PWM_PIN);

                             wiced_rtos_delay_milliseconds(10);

                        }

                        else if (receiveChar =='5')

                        {

                            WPRINT_APP_INFO((" \n"));

                            WPRINT_APP_INFO(("=>=>=> You entered  %c\n",receiveChar));

                            WPRINT_APP_INFO(("  You will be starting the program over \n"));

                            WPRINT_APP_INFO((" Enter m1 , m2, m3, m4\n"));

             

                            WPRINT_APP_INFO((" \n"));

                            break;

                        }

                        else

                        {

                            WPRINT_APP_INFO((" \n"));

                            WPRINT_APP_INFO(("    due to error, Press 1,2,3,4,0 for power  \n"));

                            WPRINT_APP_INFO((" \n"));

                        }

                     }

             

                  }

              }

             

            }

            • 3. Re: BCM94343 quick start guide  that maps J7 from 94343 to eval board
              RaktimR_11

              We don't have any code examples for the specific use-case you mentioned. But a general example demonstrating the usage of wiced apis can be found here: CypressAcademy_WW101_Files/Projects/ww101key/02 at master · cypresssemiconductorco/CypressAcademy_WW101_Files · GitHub

               

              Additional help article:

              PWM Application for CYW943907AEVAL1F