I am new to SLTB004A radio boards.
I want to configure the thunderboard sense 2 as unmodulated carrier transmitter.
For this reason im using rail_test example in Simplicity Studio 5.
Then i connect the serial console and with commands disable the receiver, set the Tx Power and start the Tx Tone.
My question is how can i program the board from the start as unmodulated carrier transmitter with specific frequency and power (in dB) without the need of any serial commands?
So when i connect the power supply, the board will start to transmit the tone (unmodulated carrier)
Probably the easiest way is to open the Simple TRX example, configure the required frequency in the radio configuratior, modify the code to call RAIL_SetTxPower() to set the required power and RAIL_StartTxStream() from the app_init() function instead of start reception (RAIL_StartRx()).
I followed the same procedure that you described.
I used RAIL_SetTxPowerDbm() instead of RAIL_SetTxPower() and it worked !!!
Cool! Let us know if you have more questions.
I have one more question. Now i want to add sleep mode with timer wake-up source.
Specifically, I want to transmit a CW for 3 seconds and then go to sleep (and this runs over and over again).
I tried to use the example " Sleep without timer synchronization" (without Power Manager) but CORE_ENTER_CRITICAL(), CORE_EXIT_CRITICAL(), CORE_EXIT_CRITICAL() are not defined.
So, how can i setup this sleep configuration and select energy mode (EM1/EM2/EM3/EM4) ?
I think the only appropriate energy mode for my application is EM2 because the timer wakes up the device and there are not external interrupts (if i am not wrong).
Power management is rather Platform related so, if the information below does not help, you better to open a case in 32 bit MCU forum.
From Studio v5 the recommended approach to exploit low power capabilities of the EFR32 devices is to use the Power Manager. Please, study the description and API reference on https://docs.silabs.com/.