vshymanskyy / lbm-micropython

LoRa Basic Modem integration for MicroPython
1 stars 0 forks source link

`mpy_ld` fails to link functions in specific files #1

Closed vshymanskyy closed 3 days ago

vshymanskyy commented 6 days ago

GH Actions Failure: https://github.com/vshymanskyy/lbm-micropython/actions/runs/11120545524/job/30897750176#step:7:228

This is the line: https://github.com/vshymanskyy/micropython/blob/bfe115ee37ad739a0bf7606a06e475237e87d9cc/tools/mpy_ld.py#L656

This is the full list (if I skip this error):

ral_sx126x_handles_part has no section
ral_sx126x_reset has no section
ral_sx126x_init has no section
ral_sx126x_wakeup has no section
ral_sx126x_set_sleep has no section
ral_sx126x_set_standby has no section
ral_sx126x_set_fs has no section
ral_sx126x_set_tx has no section
ral_sx126x_set_rx has no section
ral_sx126x_cfg_rx_boosted has no section
ral_sx126x_set_rx_tx_fallback_mode has no section
ral_sx126x_stop_timer_on_preamble has no section
ral_sx126x_set_rx_duty_cycle has no section
ral_sx126x_set_lora_cad has no section
ral_sx126x_set_tx_cw has no section
ral_sx126x_set_tx_infinite_preamble has no section
ral_sx126x_cal_img has no section
ral_sx126x_set_tx_cfg has no section
ral_sx126x_set_pkt_payload has no section
ral_sx126x_get_pkt_payload has no section
ral_sx126x_get_irq_status has no section
ral_sx126x_clear_irq_status has no section
ral_sx126x_get_and_clear_irq_status has no section
ral_sx126x_set_dio_irq_params has no section
ral_sx126x_set_rf_freq has no section
ral_sx126x_set_pkt_type has no section
ral_sx126x_get_pkt_type has no section
ral_sx126x_set_gfsk_mod_params has no section
ral_sx126x_set_gfsk_pkt_params has no section
ral_sx126x_set_lora_mod_params has no section
ral_sx126x_set_lora_pkt_params has no section
ral_sx126x_set_lora_cad_params has no section
ral_sx126x_set_lora_symb_nb_timeout has no section
ral_sx126x_set_flrc_mod_params has no section
ral_sx126x_set_flrc_pkt_params has no section
ral_sx126x_get_gfsk_rx_pkt_status has no section
ral_sx126x_get_lora_rx_pkt_status has no section
ral_sx126x_get_flrc_rx_pkt_status has no section
ral_sx126x_get_rssi_inst has no section
ral_sx126x_get_lora_time_on_air_in_ms has no section
ral_sx126x_get_gfsk_time_on_air_in_ms has no section
ral_sx126x_get_flrc_time_on_air_in_ms has no section
ral_sx126x_set_gfsk_sync_word has no section
ral_sx126x_set_lora_sync_word has no section
ral_sx126x_set_flrc_sync_word has no section
ral_sx126x_set_gfsk_crc_params has no section
ral_sx126x_set_flrc_crc_params has no section
ral_sx126x_set_gfsk_whitening_seed has no section
ral_sx126x_lr_fhss_init has no section
ral_sx126x_lr_fhss_build_frame has no section
ral_sx126x_lr_fhss_handle_hop has no section
ral_sx126x_lr_fhss_handle_tx_done has no section
ral_sx126x_lr_fhss_get_time_on_air_in_ms has no section
ral_sx126x_lr_fhss_get_hop_sequence_count has no section
ral_sx126x_lr_fhss_get_bit_delay_in_us has no section
ral_sx126x_get_lora_rx_pkt_cr_crc has no section
ral_sx126x_get_tx_consumption_in_ua has no section
ral_sx126x_get_gfsk_rx_consumption_in_ua has no section
ral_sx126x_get_lora_rx_consumption_in_ua has no section
ral_sx126x_get_random_numbers has no section
ral_sx126x_handle_rx_done has no section
ral_sx126x_handle_tx_done has no section
ral_sx126x_get_lora_cad_det_peak has no section
ralf_sx126x_setup_gfsk has no section
ralf_sx126x_setup_lora has no section
ralf_sx126x_setup_flrc has no section
ralf_sx126x_setup_lora_cad has no section

Weirdly, this only affects functions of 2 files:

I was unable to spot the difference in any compilation flags between these files and any others. This affects all architectures.

vshymanskyy commented 3 days ago

Fixed now