Giter Club home page Giter Club logo

Comments (4)

jamisonderek avatar jamisonderek commented on August 15, 2024

Thanks for reporting the issue! It looks like the latest toolchain requires that there are no unused variables or parameters (which wasn't a requirement when I was writing with the older toolset.) I pushed a fix, so "git pull" should address the issues. Sorry about that.

from flipper-zero-tutorials.

jamisonderek avatar jamisonderek commented on August 15, 2024

We would need to pass two additional parameters... "-Wno-error=unused-variable -Wno-error=unused-parameter" to make those into warnings only. Unfortunately, I'm not able to figure out if there is some kind of environment variable, py file, or json file we are supposed to change to pass the additional parameters to our gcc when we run FBT.

On Windows in official firmware I was able to run the following two commands:

scripts/toolchain/fbtenv.cmd

(fbt) C:\repo\flipper\firmware\official-firmware>arm-none-eabi-gcc -o build\\f7-firmware-D\\.extapps\\Subghz_Demo\\subghz_demo_app.o -c -std=gnu17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mthumb -Wall -Wextra -Werror -Wno-error=unused-variable -Wno-error=unused-parameter -Wno-address-of-packed-member -Wredundant-decls -Wdouble-promotion -fdata-sections -ffunction-sections -fsingle-precision-constant -fno-math-errno -g -Og -ggdb3 -mword-relocations -mlong-calls -fno-common -nostdlib -fvisibility=hidden -D_GNU_SOURCE -D\"M_MEMORY_FULL(x)=abort()\" -DSTM32WB -DSTM32WB55xx -DUSE_FULL_ASSERT -DUSE_FULL_LL_DRIVER -DHAVE_FREERTOS -DUSB_PMASIZE=0x400 -DLFS_CONFIG=lfs_config.h -DPB_ENABLE_MALLOC -DFURI_DEBUG -DNDEBUG -Ifuri -Iapplications\\services -Iapplications\\main -Ifirmware\\targets\\furi_hal_include -Ifirmware\\targets\\f7\\ble_glue -Ifirmware\\targets\\f7\\fatfs -Ifirmware\\targets\\f7\\furi_hal -Ifirmware\\targets\\f7\\inc -I. -Ilib -Ilib\\mlib -Ibuild\\f7-firmware-D\\assets\\compiled -Ilib\\STM32CubeWB\\Drivers\\CMSIS\\Device\\ST\\STM32WBxx\\Include -Ilib\\STM32CubeWB\\Drivers\\CMSIS\\Include -Ilib\\STM32CubeWB\\Drivers\\STM32WBxx_HAL_Driver\\Inc -Ilib\\STM32CubeWB\\Middlewares\\ST\\STM32_WPAN -Ilib\\drivers -Ilib\\FreeRTOS-Kernel\\include -Ilib\\FreeRTOS-Kernel\\portable\\GCC\\ARM_CM4F -Ilib\\FreeRTOS-glue -Ilib\\microtar\\src -Ilib\\toolbox -Ilib\\ST25RFAL002 -Ilib\\ST25RFAL002\\include -Ilib\\ST25RFAL002\\source\\st25r3916 -Ilib\\libusb_stm32\\inc -Ilib\\drivers -Ilib\\flipper_format -Ilib\\one_wire -Ilib\\infrared\\encoder_decoder -Ilib\\infrared\\worker -Ilib\\littlefs -Ilib\\mbedtls -Ilib\\mbedtls\\include -Ilib\\subghz -Ilib\\nfc -Ilib\\app-scened-template -Ilib\\callback-connector -Ilib\\digital_signal -Ilib\\fnv1a_hash -Ilib\\heatshrink -Ilib\\micro-ecc -Ilib\\nanopb -Ilib\\u8g2 -Ilib\\lfrfid -Ilib\\flipper_application -Ibuild\\f7-firmware-D\\.extapps\\Subghz_Demo applications\\plugins\\subghz_demo\\subghz_demo_app.c

from flipper-zero-tutorials.

jamisonderek avatar jamisonderek commented on August 15, 2024

I verified fix (using HackRF One get and give signals). I Confirmed code is able to send/receive the count, low tone and high tone.

Pulled latest code from this repo. Built and ran using official firmware from commit 5d4057f7.

from flipper-zero-tutorials.

dan3333 avatar dan3333 commented on August 15, 2024

That fixed it, thanks

from flipper-zero-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.