frux-c / uhf_rfid

this is a uhf app for the flipper zero, that uses the YRM100 module.
190 stars 7 forks source link

Update to Newest Firmware (0.97.1) #11

Closed nicholascioli closed 5 months ago

nicholascioli commented 6 months ago

Hello!

I recently bought a UHF module to try with this repo and can't get the project to build on the newest available firmware, version 0.97.1. I did the following to try to compile it:

The error that I got is as follows:

$ ./fbt fap_uhf_rfid
        CC      applications/main/uhf_rfid/scenes/uhf_scene_delete.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_delete_success.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_device_info.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_file_select.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_read_tag.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_read_tag_success.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_save_name.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_save_success.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_saved_menu.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_settings.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_start.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_tag_menu.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_verify.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_write_tag.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_write_tag_success.c
        CC      applications/main/uhf_rfid/uhf_app.c
applications/main/uhf_rfid/uhf_app.c: In function 'uhf_show_loading_popup':
applications/main/uhf_rfid/uhf_app.c:185:5: error: unknown type name 'TaskHandle_t'
  185 |     TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
      |     ^~~~~~~~~~~~
applications/main/uhf_rfid/uhf_app.c:185:31: error: implicit declaration of function 'xTaskGetHandle' [-Werror=implicit-function-declaration]
  185 |     TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
      |                               ^~~~~~~~~~~~~~
applications/main/uhf_rfid/uhf_app.c:185:46: error: 'configTIMER_SERVICE_TASK_NAME' undeclared (first use in this function)
  185 |     TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
applications/main/uhf_rfid/uhf_app.c:185:46: note: each undeclared identifier is reported only once for each function it appears in
applications/main/uhf_rfid/uhf_app.c:189:9: error: implicit declaration of function 'vTaskPrioritySet' [-Werror=implicit-function-declaration]
  189 |         vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
      |         ^~~~~~~~~~~~~~~~
applications/main/uhf_rfid/uhf_app.c:189:38: error: 'configMAX_PRIORITIES' undeclared (first use in this function)
  189 |         vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
      |                                      ^~~~~~~~~~~~~~~~~~~~
applications/main/uhf_rfid/uhf_app.c:193:38: error: 'configTIMER_TASK_PRIORITY' undeclared (first use in this function)
  193 |         vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
        SDKCHK  targets/f7/api_symbols.csv
scons: *** [build/f7-firmware-D/.extapps/uhf_rfid/uhf_app.o] Error 1
API version 50.0 is up to date

********** FBT ERRORS **********
build/f7-firmware-D/.extapps/uhf_rfid/uhf_app.o: Error 1

I tried to see if just importing FreeRTOS.h and task.h would fix the issue, but it seems as though it is more complicated than that since it fixed the errors but still didn't run on the flipperzero itself.

        CC      applications/main/uhf_rfid/scenes/uhf_scene_delete.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_delete_success.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_device_info.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_file_select.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_read_tag.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_read_tag_success.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_save_name.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_save_success.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_saved_menu.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_settings.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_start.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_tag_menu.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_verify.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_write_tag.c
        CC      applications/main/uhf_rfid/scenes/uhf_scene_write_tag_success.c
        CC      applications/main/uhf_rfid/uhf_app.c
        SDKCHK  targets/f7/api_symbols.csv
API version 50.0 is up to date
        APPCHK  build/f7-firmware-D/.extapps/uhf_rfid.fap
scons: *** [build/f7-firmware-D/.extapps/uhf_rfid.impsyms] build/f7-firmware-D/.extapps/uhf_rfid.fap: app may not be runnable. Symbols not resolved using firmware's API: {'xTaskGetHandle', 'vTaskPrioritySet'}

********** FBT ERRORS **********
build/f7-firmware-D/.extapps/uhf_rfid.impsyms: build/f7-firmware-D/.extapps/uhf_rfid.fap: app may not be runnable. Symbols not resolved using firmware's API: {'xTaskGetHandle', 'vTaskPrioritySet'}

Please let me know if I am just compiling this project incorrectly, as I am still new to the flipperzero scene.

RogueMaster commented 6 months ago

Get working code from here This app is a working app on RM firmware... here it is in the code

frux-c commented 5 months ago

Yea, I really need to push out updates. But I haven't gotten the chance with work, school life balance right now✍️ I'm keeping list of changes i need to do. But if the framework changed I definitely need to prioritize this

frux-c commented 5 months ago

Fixed. Please try rebuild from master and let me know before I close this issue.