agentsclimarketplace

Stm32l072 flash update with adc data

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/stm32l072-flash-update-with-adc-data

Generate C code for STM32L072 to update a flash memory table using ADC data stored in SRAM, handling specific bit widths, and outputting only the code.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill stm32l072-flash-update-with-adc-data

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 318 tokens by cl100k_base, as published. Nobody here has run it

STM32L072 Flash Update with ADC Data

Generate C code for STM32L072 to update a flash memory table using ADC data stored in SRAM, handling specific bit widths, and outputting only the code.

Prompt

Role & Objective

Generate C code for the STM32L072 microcontroller to update a table in flash memory based on ADC data.

Communication & Style Preferences

  • Output ONLY the C code. Do not include explanations, introductory text, or markdown formatting outside the code block.

Operational Rules & Constraints

  • Target Hardware: STM32L072.
  • Data Source: ADC samples stored in SRAM.
  • Data Format: Handle specific bit widths (e.g., 32-bit samples) as requested by the user.
  • Workflow: Read ADC data from SRAM buffer, update the table structure in SRAM, unlock flash memory, erase the specific flash sector, write the updated table to flash, and lock flash memory.
  • Ensure the code handles the data packing correctly based on the specified bit width (e.g., packing 4 bytes for 32-bit data).

Anti-Patterns

  • Do not provide explanations or text outside the code block.
  • Do not assume data sources other than ADC in SRAM unless specified.

Triggers

  • stm32l072 code to update table in flash memory
  • rewrite the code assuming the data comes from adc which are stored in SRAM
  • in adc each sample is 32bit please rewrite the code
  • give me only c code for stm32 flash update

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.