3 Replies Latest reply on Oct 12, 2017 6:37 PM by Clive One

    I-Cube LoRaWan V1.1.2 with STM32L151CC

    Jérémy Da Silva

      Hi everybody,

       

      I made my PCBA with a STM32l151CC and a SX1272 from Semtech in order to make a LoRa Accessory.

       

      I use Cube MX software to configure all the peripheral of my accessory (SPI, ADC, RTC, etc.) and I add all the LoRaWan files of the I-Cube LoRaWan V1.1.2. I tried to send Continuous waves but it doesn't work.

       

      My code is :

       

      int main (void){

         HAL_Init();

       

        /* USER CODE BEGIN Init */

       

        /* USER CODE END Init */

       

        /* Configure the system clock */
        SystemClock_Config();
       
        /* USER CODE BEGIN SysInit */

       

        /* USER CODE END SysInit */

       

        /* Initialize all configured peripherals */
        MX_RTC_Init();
        MX_GPIO_Init();
        MX_NVIC_Init();
        MX_SPI2_Init();
        MX_ADC_Init();
        /* Initialize interrupts */

       

        /* USER CODE BEGIN 2 */
        hardware_init();
       
        HW_Init(); 

       

         RadioEvents.TxTimeout = OnRadioTxTimeout;
        Radio.Init( &RadioEvents );

       

        test12 = Radio.Read(0x01);
        Radio.SetTxContinuousWave( 868000000, 20, 65535 );
        test12 = Radio.Read(0x01);
        Radio.Send(NULL,0);
          while (1);

      }

       

      But it does not work. When I read the value of the first register, I have 0x08. Any ideas to help me ?

       

      Best regards,

      Jérémy