This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

iOS-DFU-Library: Data size exceed limits error – differs from Android to iOS?

When flashing files from an iOS device I run a lot into data size errors (not always), when using the same files on Android they can be copied without a problem.

It looks a like the error comes from the library on iOS. I am using the same microcontroller for both systems.
Is there a difference in checking if a file is too large on iOS and Android and if so, how can this be changed on iOS, as this is legacy from the library?

Best

JAL

Parents Reply Children
  • Hello Aleksander,

    thanks for your fast reply!

    we are using 4.11.0 on iOS. I don't know the number of the (working) Android version right now...

    Best JAL

    Logs from Xcode:

    2022-01-24 17:55:25.469204+0100 Calliope App[51583:22986336] MatrixConnectionViewController:154 Matrix view connecting to name: pevug, state: discovered
    2022-01-24 17:55:25.469449+0100 Calliope App[51583:22986336] CalliopeBLEDiscovery:31 calliope discovery state: discoveredAll
    2022-01-24 17:55:25.469772+0100 Calliope App[51583:22986336] CalliopeBLEDiscovery:31 calliope discovery state: connecting
    2022-01-24 17:55:25.470251+0100 Calliope App[51583:22986336] CalliopeBLEDiscovery:31 calliope discovery state: connecting
    2022-01-24 17:55:26.224710+0100 Calliope App[51583:22986675] CalliopeBLEDevice:38 calliope state: connected
    2022-01-24 17:55:26.224946+0100 Calliope App[51583:22986675] CalliopeBLEDiscovery:31 calliope discovery state: connected
    2022-01-24 17:55:26.225075+0100 Calliope App[51583:22986675] CalliopeBLEDiscovery:31 calliope discovery state: connected
    2022-01-24 17:55:26.225448+0100 Calliope App[51583:22986336] CalliopeBLEDevice:38 calliope state: evaluateMode
    2022-01-24 17:55:26.549203+0100 Calliope App[51583:22986675] CalliopeBLEDevice:135 found all of 1 required services:
    [Calliope_App.CalliopeService.dfu]
    2022-01-24 17:55:26.549395+0100 Calliope App[51583:22986675] CalliopeBLEDevice:136 found 0 of 1 optional services
    2022-01-24 17:55:26.608254+0100 Calliope App[51583:22986675] CalliopeBLEDevice:38 calliope state: usageReady
    2022-01-24 17:55:36.862061+0100 Calliope App[51583:22986336] EditorViewController:74 policy for action data:application/x-microbit-hex;base64,OjAyMDAwMDA0MDAwMEZBDQo6MTAwMDAwMDBDMDA3MDAwMEQxMDYwMDAwRDEwM…
    2022-01-24 17:55:36.873580+0100 Calliope App[51583:22986336] nil host used in call to allowsSpecificHTTPSCertificateForHost
    2022-01-24 17:55:36.873605+0100 Calliope App[51583:22986336] nil host used in call to allowsAnyHTTPSCertificateForHost:
    2022-01-24 17:55:36.908278+0100 Calliope App[51583:22986336] [LayoutConstraints] Changing the translatesAutoresizingMaskIntoConstraints property of a UICollectionViewCell that is managed by a UICollectionView is not supported, and will result in incorrect self-sizing. View: <_UIAlertControllerTextFieldViewCollectionCell: 0x101999370; frame = (0 0; 270 24); gestureRecognizers = <NSArray: 0x281640210>; layer = <CALayer: 0x28183d040>>
    2022-01-24 17:55:39.684370+0100 Calliope App[51583:22986336] Hex:160 writing file file:///var/mobile/Containers/Data/Application/EF2FB50D-92DD-451E-8519-E32623AFEB59/Documents/.hex
    2022-01-24 17:55:40.556732+0100 Calliope App[51583:22986675] CalliopeBLEDevice:383 received read response from <CBCharacteristic: 0x283cb5bc0, UUID = E95D93B1-251D-470A-A062-FA1922DFA9A8, properties = 0xA, value = {length = 1, bytes = 0x00}, notifying = NO>: Optional("00")
    2022-01-24 17:55:40.556821+0100 Calliope App[51583:22986336] CalliopeBLEDevice:311 read Optional(1 bytes) from <CBCharacteristic: 0x283cb5bc0, UUID = E95D93B1-251D-470A-A062-FA1922DFA9A8, properties = 0xA, value = {length = 1, bytes = 0x00}, notifying = NO>
    2022-01-24 17:55:40.616604+0100 Calliope App[51583:22987395] CalliopeBLEDevice:369 received write success message
    2022-01-24 17:55:40.616720+0100 Calliope App[51583:22986336] CalliopeBLEDevice:275 wrote <CBCharacteristic: 0x283cb5bc0, UUID = E95D93B1-251D-470A-A062-FA1922DFA9A8, properties = 0xA, value = {length = 1, bytes = 0x00}, notifying = NO>
    2022-01-24 17:55:40.681395+0100 Calliope App[51583:22987395] CalliopeBLEDiscovery:230 disconnected from Calliope mini [pevug])
    2022-01-24 17:55:40.681501+0100 Calliope App[51583:22987395] CalliopeBLEDiscovery:31 calliope discovery state: connected
    2022-01-24 17:55:40.681561+0100 Calliope App[51583:22987395] CalliopeBLEDevice:38 calliope state: discovered
    2022-01-24 17:55:40.683533+0100 Calliope App[51583:22986336] FirmwareUpload:225 DFU State change: DFUState
    2022-01-24 17:55:40.683992+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Connecting to Calliope mini [pevug]...
    2022-01-24 17:55:40.684231+0100 Calliope App[51583:22987395] CalliopeBLEDiscovery:31 calliope discovery state: discoveredAll
    2022-01-24 17:55:40.688088+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: centralManager.connect(peripheral, options: nil)
    2022-01-24 17:55:42.990108+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: [Callback] Central Manager did connect peripheral
    2022-01-24 17:55:42.992361+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Connected to Calliope mini [pevug]
    2022-01-24 17:55:42.993122+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Discovering services...
    2022-01-24 17:55:42.993539+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.discoverServices(nil)
    2022-01-24 17:55:43.260603+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Services discovered
    2022-01-24 17:55:43.262603+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Starting Legacy DFU...
    2022-01-24 17:55:43.263134+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Connected to Calliope mini [pevug]
    2022-01-24 17:55:43.263759+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Services discovered
    2022-01-24 17:55:43.264125+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Legacy DFU Service found
    2022-01-24 17:55:43.264463+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Discovering characteristics in DFU Service...
    2022-01-24 17:55:43.264916+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.discoverCharacteristics(nil, for: 00001530-1212-EFDE-1523-785FEABCD123)
    2022-01-24 17:55:43.499251+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: DFU characteristics discovered
    2022-01-24 17:55:43.500956+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Reading DFU Version number...
    2022-01-24 17:55:43.501526+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.readValue(00001534-1212-EFDE-1523-785FEABCD123)
    2022-01-24 17:55:43.558935+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Read Response received from 00001534-1212-EFDE-1523-785FEABCD123, value (0x): 0400
    2022-01-24 17:55:43.560160+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Version number read: 0.4
    2022-01-24 17:55:43.560797+0100 Calliope App[51583:22986336] FirmwareUpload:225 DFU State change: DFUState
    2022-01-24 17:55:43.560985+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Enabling notifications for 00001531-1212-EFDE-1523-785FEABCD123...
    2022-01-24 17:55:43.562117+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.setNotifyValue(true, for: 00001531-1212-EFDE-1523-785FEABCD123)
    2022-01-24 17:55:43.677832+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Notifications enabled for 00001531-1212-EFDE-1523-785FEABCD123
    2022-01-24 17:55:43.680139+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: DFU Control Point notifications enabled
    2022-01-24 17:55:43.681702+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...
    2022-01-24 17:55:43.682473+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.writeValue(0x0104, for: 00001531-1212-EFDE-1523-785FEABCD123, type: .withResponse)
    2022-01-24 17:55:43.683052+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Writing image sizes (0b, 0b, 146964b) to characteristic 00001532-1212-EFDE-1523-785FEABCD123...
    2022-01-24 17:55:43.683760+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.writeValue(0x0000000000000000143e0200, for: 00001532-1212-EFDE-1523-785FEABCD123, type: .withoutResponse)
    2022-01-24 17:55:43.737216+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Data written to 00001531-1212-EFDE-1523-785FEABCD123
    2022-01-24 17:55:43.738452+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Start DFU (Op Code = 1, Upload Mode = 4) request sent
    2022-01-24 17:55:43.797913+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Notification received from 00001531-1212-EFDE-1523-785FEABCD123, value (0x): 100104
    2022-01-24 17:55:43.799617+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Response (Op Code = 1, Status = 4) received
    2022-01-24 17:55:43.801428+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Error 4: Data size exceeds limit
    2022-01-24 17:55:43.802186+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...
    2022-01-24 17:55:43.803010+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: peripheral.writeValue(0x06, for: 00001531-1212-EFDE-1523-785FEABCD123, type: .withResponse)
    2022-01-24 17:55:44.575174+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: [Callback] Central Manager did disconnect peripheral
    2022-01-24 17:55:44.576917+0100 Calliope App[51583:22986336] FirmwareUpload:220 DFU Message: Disconnected by the remote device
    2022-01-24 17:55:44.578472+0100 Calliope App[51583:22986336] FirmwareUpload:229 DFU Error DFUError while uploading: Data size exceeds limit
Related