frux-c / uhf_rfid

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

Cant build app on uFBT/FBT #13

Closed mxcdoam closed 3 months ago

mxcdoam commented 3 months ago

I Can't build .fap for latest firmware (0.98.3) using both uFBT and FBT.

uFB errors:

~/uhf_rfid$ '/home/darwin/env/bin/ufbt' 
scons: Entering directory `/home/darwin/.ufbt/current/scripts/ufbt'
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_delete.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_delete_success.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_device_info.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_file_select.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_read_tag.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_read_tag_success.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_save_name.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_save_success.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_saved_menu.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_settings.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_start.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_tag_menu.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_write_tag.c
    CC  /home/darwin/uhf_rfid/scenes/uhf_scene_write_tag_success.c
    CC  /home/darwin/uhf_rfid/uhf_app.c
    CC  /home/darwin/uhf_rfid/uhf_module.c
    CC  /home/darwin/uhf_rfid/uhf_worker.c
    CDB /home/darwin/uhf_rfid/.vscode/compile_commands.json
/home/darwin/uhf_rfid/uhf_app.c: In function 'uhf_app_main':
/home/darwin/uhf_rfid/uhf_app.c:203:5: error: implicit declaration of function 'furi_hal_uart_set_br'; did you mean 'furi_hal_serial_set_br'? [-Werror=implicit-function-declaration]
  203 |     furi_hal_uart_set_br(FuriHalUartIdUSART1, DEFAULT_BAUDRATE);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     furi_hal_serial_set_br
/home/darwin/uhf_rfid/uhf_module.c:9:18: error: unknown type name 'UartIrqEvent'
    9 | void rx_callback(UartIrqEvent event, uint8_t data, void* ctx) {
      |                  ^~~~~~~~~~~~
/home/darwin/uhf_rfid/uhf_app.c:203:26: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
  203 |     furi_hal_uart_set_br(FuriHalUartIdUSART1, DEFAULT_BAUDRATE);
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          FuriHalBusUSART1
/home/darwin/uhf_rfid/uhf_app.c:203:26: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
scons: *** [/home/darwin/.ufbt/build/uhf_rfid/uhf_app.o] Error 1
/home/darwin/uhf_rfid/uhf_module.c: In function 'setup_and_send_rx':
/home/darwin/uhf_rfid/uhf_module.c:21:5: error: implicit declaration of function 'furi_hal_uart_tx'; did you mean 'furi_hal_i2c_tx'? [-Werror=implicit-function-declaration]
   21 |     furi_hal_uart_tx(FuriHalUartIdUSART1, cmd, cmd_length);
      |     ^~~~~~~~~~~~~~~~
      |     furi_hal_i2c_tx
/home/darwin/uhf_rfid/uhf_module.c:21:22: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
   21 |     furi_hal_uart_tx(FuriHalUartIdUSART1, cmd, cmd_length);
      |                      ^~~~~~~~~~~~~~~~~~~
      |                      FuriHalBusUSART1
/home/darwin/uhf_rfid/uhf_module.c:21:22: note: each undeclared identifier is reported only once for each function it appears in
/home/darwin/uhf_rfid/uhf_module.c: In function 'm100_module_alloc':
/home/darwin/uhf_rfid/uhf_module.c:56:5: error: implicit declaration of function 'furi_hal_uart_set_irq_cb' [-Werror=implicit-function-declaration]
   56 |     furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, rx_callback, module->buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/darwin/uhf_rfid/uhf_module.c:56:30: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
   56 |     furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, rx_callback, module->buf);
      |                              ^~~~~~~~~~~~~~~~~~~
      |                              FuriHalBusUSART1
/home/darwin/uhf_rfid/uhf_module.c:56:51: error: 'rx_callback' undeclared (first use in this function)
   56 |     furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, rx_callback, module->buf);
      |                                                   ^~~~~~~~~~~
/home/darwin/uhf_rfid/uhf_module.c: In function 'm100_get_select_param':
/home/darwin/uhf_rfid/uhf_module.c:198:30: error: 'FuriHalUartIdLPUART1' undeclared (first use in this function); did you mean 'FuriHalBusLPUART1'?
  198 |     furi_hal_uart_set_irq_cb(FuriHalUartIdLPUART1, rx_callback, module->buf);
      |                              ^~~~~~~~~~~~~~~~~~~~
      |                              FuriHalBusLPUART1
/home/darwin/uhf_rfid/uhf_module.c:198:52: error: 'rx_callback' undeclared (first use in this function)
  198 |     furi_hal_uart_set_irq_cb(FuriHalUartIdLPUART1, rx_callback, module->buf);
      |                                                    ^~~~~~~~~~~
/home/darwin/uhf_rfid/uhf_module.c:200:9: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
  200 |         FuriHalUartIdUSART1,
      |         ^~~~~~~~~~~~~~~~~~~
      |         FuriHalBusUSART1
/home/darwin/uhf_rfid/uhf_module.c: In function 'm100_set_baudrate':
/home/darwin/uhf_rfid/uhf_module.c:346:22: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
  346 |     furi_hal_uart_tx(FuriHalUartIdUSART1, cmd, length);
      |                      ^~~~~~~~~~~~~~~~~~~
      |                      FuriHalBusUSART1
/home/darwin/uhf_rfid/uhf_module.c:347:5: error: implicit declaration of function 'furi_hal_uart_set_br'; did you mean 'furi_hal_serial_set_br'? [-Werror=implicit-function-declaration]
  347 |     furi_hal_uart_set_br(FuriHalUartIdUSART1, baudrate);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     furi_hal_serial_set_br
cc1: all warnings being treated as errors
scons: *** [/home/darwin/.ufbt/build/uhf_rfid/uhf_module.o] Error 1

FBT errors:


darwin@darwin-x:~/flipperzero-firmware$ '/home/darwin/flipperzero-firmware/fbt' COMPACT=1 DEBUG=0 launch APPSRC=applications_user/uhf_rfid
    CC  applications_user/uhf_rfid/uhf_app.c
    CC  applications_user/uhf_rfid/uhf_module.c
applications_user/uhf_rfid/uhf_module.c:9:18: error: unknown type name 'UartIrqEvent'
    9 | void rx_callback(UartIrqEvent event, uint8_t data, void* ctx) {
      |                  ^~~~~~~~~~~~
applications_user/uhf_rfid/uhf_module.c: In function 'setup_and_send_rx':
applications_user/uhf_rfid/uhf_module.c:21:5: error: implicit declaration of function 'furi_hal_uart_tx'; did you mean 'furi_hal_i2c_tx'? [-Werror=implicit-function-declaration]
   21 |     furi_hal_uart_tx(FuriHalUartIdUSART1, cmd, cmd_length);
      |     ^~~~~~~~~~~~~~~~
      |     furi_hal_i2c_tx
applications_user/uhf_rfid/uhf_app.c: In function 'uhf_app_main':
applications_user/uhf_rfid/uhf_app.c:203:5: error: implicit declaration of function 'furi_hal_uart_set_br'; did you mean 'furi_hal_serial_set_br'? [-Werror=implicit-function-declaration]
  203 |     furi_hal_uart_set_br(FuriHalUartIdUSART1, DEFAULT_BAUDRATE);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     furi_hal_serial_set_br
applications_user/uhf_rfid/uhf_module.c:21:22: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
   21 |     furi_hal_uart_tx(FuriHalUartIdUSART1, cmd, cmd_length);
      |                      ^~~~~~~~~~~~~~~~~~~
      |                      FuriHalBusUSART1
applications_user/uhf_rfid/uhf_module.c:21:22: note: each undeclared identifier is reported only once for each function it appears in
applications_user/uhf_rfid/uhf_app.c:203:26: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
  203 |     furi_hal_uart_set_br(FuriHalUartIdUSART1, DEFAULT_BAUDRATE);
      |                          ^~~~~~~~~~~~~~~~~~~
      |                          FuriHalBusUSART1
applications_user/uhf_rfid/uhf_app.c:203:26: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
applications_user/uhf_rfid/uhf_module.c: In function 'm100_module_alloc':
applications_user/uhf_rfid/uhf_module.c:56:5: error: implicit declaration of function 'furi_hal_uart_set_irq_cb' [-Werror=implicit-function-declaration]
   56 |     furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, rx_callback, module->buf);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
applications_user/uhf_rfid/uhf_module.c:56:30: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
   56 |     furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, rx_callback, module->buf);
      |                              ^~~~~~~~~~~~~~~~~~~
      |                              FuriHalBusUSART1
applications_user/uhf_rfid/uhf_module.c:56:51: error: 'rx_callback' undeclared (first use in this function)
   56 |     furi_hal_uart_set_irq_cb(FuriHalUartIdUSART1, rx_callback, module->buf);
      |                                                   ^~~~~~~~~~~
applications_user/uhf_rfid/uhf_module.c: In function 'm100_get_select_param':
applications_user/uhf_rfid/uhf_module.c:198:30: error: 'FuriHalUartIdLPUART1' undeclared (first use in this function); did you mean 'FuriHalBusLPUART1'?
  198 |     furi_hal_uart_set_irq_cb(FuriHalUartIdLPUART1, rx_callback, module->buf);
      |                              ^~~~~~~~~~~~~~~~~~~~
      |                              FuriHalBusLPUART1
applications_user/uhf_rfid/uhf_module.c:198:52: error: 'rx_callback' undeclared (first use in this function)
  198 |     furi_hal_uart_set_irq_cb(FuriHalUartIdLPUART1, rx_callback, module->buf);
      |                                                    ^~~~~~~~~~~
applications_user/uhf_rfid/uhf_module.c:200:9: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
  200 |         FuriHalUartIdUSART1,
      |         ^~~~~~~~~~~~~~~~~~~
      |         FuriHalBusUSART1
applications_user/uhf_rfid/uhf_module.c: In function 'm100_set_baudrate':
applications_user/uhf_rfid/uhf_module.c:346:22: error: 'FuriHalUartIdUSART1' undeclared (first use in this function); did you mean 'FuriHalBusUSART1'?
  346 |     furi_hal_uart_tx(FuriHalUartIdUSART1, cmd, length);
      |                      ^~~~~~~~~~~~~~~~~~~
      |                      FuriHalBusUSART1
applications_user/uhf_rfid/uhf_module.c:347:5: error: implicit declaration of function 'furi_hal_uart_set_br'; did you mean 'furi_hal_serial_set_br'? [-Werror=implicit-function-declaration]
  347 |     furi_hal_uart_set_br(FuriHalUartIdUSART1, baudrate);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     furi_hal_serial_set_br
cc1: all warnings being treated as errors
    SDKCHK  targets/f7/api_symbols.csv
scons: *** [build/f7-firmware-C/.extapps/uhf_rfid/uhf_app.o] Error 1
scons: *** [build/f7-firmware-C/.extapps/uhf_rfid/uhf_module.o] Error 1
API version 58.0 is up to date

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

A compiled .fap file from the "releases" section doesn't work on 0.98.3 FW either. Am i doing something wrong?

Didgitalpunk commented 3 months ago

compiled fap is for 94.1, that's whi it doesn't work. as for why uFBT/FBT won't build, no clue. Frux is working on addind several features right now, so if you want to try out the app I suggest reverting back to 94.1

mxcdoam commented 3 months ago

compiled fap is for 94.1, that's whi it doesn't work. as for why uFBT/FBT won't build, no clue.

Frux is working on addind several features right now, so if you want to try out the app I suggest reverting back to 94.1

Yeah, I saw that he is busy, but it seemed like nobody had an issue with a build except me. Thanks for required FW version info, I will use it!

frux-c commented 3 months ago

@mxcdoam It's because of the hal (which includes serial) rework on the flipper framework. I have a compatible version on the uart_refractor branch but its very buggy and I'm looking for my blackmagic debugger since I don't know where I left it so I can figure out what I'm doing wrong.

mxcdoam commented 3 months ago

@frux-c No worries, i just needed a working buld to check if YRM100 + header are connected properly. I will use an old build+FW.
Also, thank you sooo much for this project! I'm following it on Discord, but can't write there. 😄

Didgitalpunk commented 3 months ago

Wait, you can't write in the discord?

On Mon, Mar 11, 2024, 3:04 PM mxcdoam @.***> wrote:

@frux-c https://github.com/frux-c No worries, i just needed a working buld to check if YRM100 + header are connected properly. I will use an old build+FW. Also, thank you sooo much for this project! I'm following it on Discord, but can't write there. 😄

— Reply to this email directly, view it on GitHub https://github.com/frux-c/uhf_rfid/issues/13#issuecomment-1988521142, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCLVB3LLKPGTZNRALIDHQ3YXW2VHAVCNFSM6AAAAABEQGBEQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBYGUZDCMJUGI . You are receiving this because you commented.Message ID: @.***>

mxcdoam commented 3 months ago

Wait, you can't write in the discord? … On Mon, Mar 11, 2024, 3:04 PM mxcdoam @.> wrote: @frux-c https://github.com/frux-c No worries, i just needed a working buld to check if YRM100 + header are connected properly. I will use an old build+FW. Also, thank you sooo much for this project! I'm following it on Discord, but can't write there. 😄 — Reply to this email directly, view it on GitHub <#13 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCLVB3LLKPGTZNRALIDHQ3YXW2VHAVCNFSM6AAAAABEQGBEQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBYGUZDCMJUGI . You are receiving this because you commented.Message ID: @.>

Yeah, the official FZ Discord channel (which have a page for your project) allows only read mode for users without verified cell phone number and i can't do that.

frux-c commented 3 months ago

hmm, I didn't even know that lol. I'm re-opening this issue until I finish and merge uhf_refractor branch. That branch will allow you to compile this app with the latest firmware once its done.

mxcdoam commented 3 months ago

Thank you!

frux-c commented 3 months ago

I found my esp for debugging, i might actually make some good progress this week :)

frux-c commented 3 months ago

Merged #14 should let you build now

Didgitalpunk commented 3 months ago

Aaand like clockwork there's a new firmware release xD

mxcdoam commented 3 months ago

Yes, it works now on 0.99.1! Thanks!!!