cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo WL55JC2 - Generate continuous 432.492 MHz

Franck95
Associate

Hi,

I’m looking for some help — I’m trying to generate a continuous waveform at 432.492 MHz using the Nucleo WL55JC2, but I haven’t had any success so far. I also tried at 861.1 MHz, but still got no output.

After extensive troubleshooting, I discovered that the issue was caused by the TCXO (PB0) not being powered at 3.3 V, and the SP3T not being properly configured because PC3/PC4/PC5 remained at 0 V instead of 3.3 V.

To address this, I modified the project — without generating the CW signal for now — simply to control the state levels of PB0, PC3, PC4, and PC5, and to make it work correctly with both the CM0+ and CM4 cores.


M0PLUS main.c is:

#include "stm32wlxx_hal.h"

static void Error_Handler(void)
{
__disable_irq();
while (1) { }
}

int main(void)
{
HAL_Init();

/* Clocks GPIOB/GPIOC */
__HAL_RCC_GPIOB_CLK_ENABLE();
__HAL_RCC_GPIOC_CLK_ENABLE();

/* Configure PB0, PC3/PC4/PC5 en sortie push-pull */
GPIO_InitTypeDef g = {0};
g.Mode = GPIO_MODE_OUTPUT_PP;
g.Pull = GPIO_NOPULL;
g.Speed = GPIO_SPEED_FREQ_LOW;

/* PB0 = VDD_TCXO (SB20 = ON) */
g.Pin = GPIO_PIN_0;
HAL_GPIO_Init(GPIOB, &g);

/* PC3 = VDD_SP3T ; PC4/PC5 = sélecteurs (SB18 = ON) */
g.Pin = GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5;
HAL_GPIO_Init(GPIOC, &g);

/* Force tout à 1 : PB0, PC3, PC4, PC5 */
HAL_GPIO_WritePin(GPIOB, GPIO_PIN_0, GPIO_PIN_SET);
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5, GPIO_PIN_SET);

/* Boucle vide : les niveaux restent maintenus */
while (1) { __NOP(); }
}

and M4 main.c is
// CM4 main.c (minimal)
#include "stm32wlxx_hal.h"

int main(void)
{
HAL_Init();

// Horloge système basique (ou ta SystemClock_Config existante)
// SystemClock_Config(); // si tu l’as déjà

// Libère le CM0+
HAL_PWREx_ReleaseCore(PWR_CORE_CPU2);

while (1) { __NOP(); }
}


But still not working.
It seem that CM0PLUS is blocked.

The link to the project available 7 days:

https://fromsmash.com/JgyvPbhz4w-ct

Thanks by advance !
Franck


Edited to apply source code formatting - please see How to insert source code for future reference.

0 REPLIES 0