Firmware image (swicwe tools) - ADC channels read failed (bad values)

Hello Forum,

If I download my firmware created by swicwe tool, I can not read the ADC inputs (Bad values).

I try to create a test firmware using the following SWI files availables on source.sierrawireless.com/resources/legato/wpfirmwarerelease web site.

  • wpfw122/mcufw_001.005.cwe
  • wpfw122/boot-yocto_wp85.cwe
  • wpfw122/legato.cwe

root@swi-mdm9x15:~# cm adc read EXT_ADC0
EXT_ADC0:24758
root@swi-mdm9x15:~# cm adc read EXT_ADC1
EXT_ADC1:41509

If I use the following file “9999999_9904559_SWI9X15Y_07.11.11.00_00_GENERIC_001.026_000.spk” available on your site, There is no problem.
Correct values can be read:

root@swi-mdm9x15:~# cm adc read EXT_ADC1
EXT_ADC1:1654
root@swi-mdm9x15:~# cm adc read EXT_ADC0
EXT_ADC0:8

Can you explain the differences between the two firmwares and the elements that fix the problem of ADC reading ?

This is problematic when I download my final firmware in my factory (Production tests failed).
I am therefore obliged to go through an additional step which consists in loading the 9999999_9904559_SWI9X15Y_07.11.11.00_00_GENERIC_001.026_000.spk file before the final firmware.

When we received the WP85 modules from SWI, the release pre-installed is: 11.

Thanks very much for your help,

Presumably you used swicwe to build an spk file because you have customized either yocto or legato. Which components did you modify and which version did you use as a baseline?

Thanks for your reply,

As I explained in my previous post, I tested with the images files available in https://source.sierrawireless.com/resources/legato/wpfirmwarerelease/ without modifications.

Generated ipk firmware from Sierra’s cwe files:

  • MCU (001.005)
  • Yocto (SWI9X15Y_07.11.09.00)
  • Legato (16.07)

With my custom firmware, the problem is the same.
The reasons why I made a custom firmware:

  • Custom hardware (No dev kit Mangho),
  • Specifics drivers,
  • Add customs and additional Yocto recipes.

Thanks,

For info,

If I download my firwmare after a first download of the 9999999_9904559_SWI9X15Y_07.11.11.00_00_GENERIC_001.026_000.spk, ADC works.

Sorry for the confusion. My understanding is that you tried to build an SPK using the following:

  • mcufw_001.005.cwe
  • boot-yocto_wp85.cwe
  • legato.cwe

The created file will differ from WPx5xx_Release-12.2_GENERIC.spk in that your SPK will not include the Firmware-Generic component. This means that you will be running whatever modem firmware was installed in your module prior to installing your SPK. I think what you probably want to do is create an SPK that uses all 4 components:

  • 9999999_9904559_SWI9X15Y_07.11.11.00_00_GENERIC_001.026_000.spk
  • mcufw_001.005.cwe
  • boot-yocto_wp85.cwe
  • legato.cwe

Because of your customized board, you probably want to replace the boot-yocto_wp85.cwe with your own and possibly the legato.cwe as well if you are deploying custom apps.

Thank you for your answer.

If I summarize, in my custom SPK file:

  • 9999999_9904559_SWI9X15Y_07.11.11.00_00_GENERIC_001.026_000.spk (Provided by SWI),
  • mcufw_001.005.cwe (Provided by SWI),
  • My custom boot-yocto_wp85.cwe image,
  • My custom legato.cwe.

I did not include the 9999999_9904559_SWI9X15Y_07.11.11.00_00_GENERIC_001.026_000 file today.
Tomorrow morning, I try on new device with missing 9999999_9904559_SWI… file.

Thanks,