File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1536,6 +1536,10 @@ msgstr ""
15361536msgid "No timer available"
15371537msgstr ""
15381538
1539+ #: shared-module/usb/core/Device.c
1540+ msgid "No usb host port initialized"
1541+ msgstr ""
1542+
15391543#: ports/nrf/common-hal/_bleio/__init__.c
15401544msgid "Nordic system firmware out of memory"
15411545msgstr ""
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ SECTIONS
211211 _ld_dtcm_data_flash_copy = LOADADDR(.dtcm_data);
212212 _ld_dtcm_data_size = SIZEOF(.dtcm_data);
213213
214- .dtcm_bss :
214+ .dtcm_bss (NOLOAD) :
215215 {
216216 . = ALIGN(4);
217217
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ void tuh_umount_cb(uint8_t dev_addr) {
5151STATIC xfer_result_t _xfer_result ;
5252STATIC size_t _actual_len ;
5353bool common_hal_usb_core_device_construct (usb_core_device_obj_t * self , uint8_t device_number ) {
54+ if (!tuh_inited ()) {
55+ mp_raise_RuntimeError (translate ("No usb host port initialized" ));
56+ }
57+
5458 if (device_number == 0 || device_number > CFG_TUH_DEVICE_MAX + CFG_TUH_HUB ) {
5559 return false;
5660 }
You can’t perform that action at this time.
0 commit comments