Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate user config with adv_trace #155

Open
jmadden173 opened this issue Nov 18, 2024 · 1 comment
Open

Integrate user config with adv_trace #155

jmadden173 opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request stm32 Issues relating to the STM32 MCU

Comments

@jmadden173
Copy link
Contributor

Describe the Enhancement
Use the interrupt definition that is used in the LoRa firmware to drive the user configuration. When the program is running we should be able to use the GUI to "pause" the code and enter the configuration where the config can be saved to the device. The adv_trace utility is already implemented in the LoRa app code for print statements, I believe any receive communication is done.

Benefits

  • Allow for configuration without reflashing

Possible Drawbacks
Interfering with the main code

Additional Context
I could not find any documentation adv_trace utility but it appears in the LoRa code and is listed under utilities for the HAL documentation. I listed some resources below for what I've currently found.

Function to setup receive callback: https://github.com/jlab-sensing/STM32CubeWL/blob/2047c75fa46f21f305162b3039b6313aa42a3f8b/Utilities/trace/adv_trace/stm32_adv_trace.h#L123
Example code from AT command example: https://github.com/jlab-sensing/STM32CubeWL/blob/2047c75fa46f21f305162b3039b6313aa42a3f8b/Projects/B-WL5M-SUBG1/Applications/LoRaWAN/LoRaWAN_AT_Slave/LoRaWAN/App/lora_command.c#L625
Example implemented callback: https://github.com/jlab-sensing/STM32CubeWL/blob/2047c75fa46f21f305162b3039b6313aa42a3f8b/Projects/B-WL5M-SUBG1/Applications/LoRaWAN/LoRaWAN_AT_Slave/LoRaWAN/App/lora_command.c#L775

@jmadden173 jmadden173 added enhancement New feature or request stm32 Issues relating to the STM32 MCU labels Nov 18, 2024
@jmadden173
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stm32 Issues relating to the STM32 MCU
Projects
None yet
Development

No branches or pull requests

2 participants