• AVR Freaks

Hot!build of python3 of MPLAB

Author
kibi
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2018/02/27 02:45:05
  • Location: 0
  • Status: offline
2018/10/18 21:41:23 (permalink)
0

build of python3 of MPLAB

Hi,

I am using Curiosity PIC32MZ EF Bundle and Java SE 10.0.2 and Python 3.7.0 (Homebrew macOS PMJ and Pyenv global 3.7.0) and MPLAB V5.05 and XC32 V2.10 on MacBook macOS edition:).

In Connect to AWS IoT - a:freeRTOS MQTT Hello World sample 1.4.1 of an AWS.
How should a build of python3 of MPLAB be done?
(Is /absolute path/python3 designation OK? Does Python code of a:freeRTOS OTA need a pem file of a certificate?)
How should a use xc32-objcopy of < makeCustomizationPostStep> of MPLAB be done?
(Is absolute path designation OK? /applications/microchip/xc32/v2.10/bin/xc32-objcopy -I ihex ${ImagePath} -O binary ${ImageDir}/mplab.${IMAGE_TYPE}.bin && python ../../../common/ota/bootloader/utility/ota_image_generator.py -b ${ImageDir}/mplab.${IMAGE_TYPE}.bin -p MCHP-Curiosity-PIC32MZEF)

Thanks.

Postscript.
pyOpenSSL was used.
Reinstallation of an attribute error of Python takes time and effort.(When the command of python is carried out from a terminal, it attribute error come out:-?)
It was seen using this certificate:).
VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem
a:freeRTOS V1.4.2
AmazonFreeRTOS/demos/microchip/curiosity_pic32_bl/aws_boot-loader.X/nbproject/configurations.xml#L217
<makeCustomizationPreStepEnabled>true</makeCustomizationPreStepEnabled>
<makeCustomizationPreStep>python ../../../common/ota/bootloader/utility/codesigner_cert_utility/codesigner_cert_utility.py ../../../common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem ../../../common/ota/bootloader/include/aws_boot_codesigner_public_key.h</makeCustomizationPreStep>

a:freeRTOS V1.4.2 was doing pass setting of xc32-objcopy by an environment variable.
AmazonFreeRTOS/demos/microchip/curiosity_pic32mzef/mplab/nbproject/configurations.xml#L1794
<makeCustomizationPostStepEnabled>true</makeCustomizationPostStepEnabled>
<makeCustomizationPostStep>${MP_CC_DIR}\xc32-objcopy -I ihex ${ImagePath} -O binary ${ImageDir}/mplab.${IMAGE_TYPE}.bin &amp;&amp; python ../../../common/ota/bootloader/utility/ota_image_generator.py -b ${ImageDir}/mplab.${IMAGE_TYPE}.bin -p MCHP-Curiosity-PIC32MZEF</makeCustomizationPostStep>

A pass passes?

List:
OTA is stopped.
<makeCustomizationPreStepEnabled>false
<makeCustomizationPostStepEnabled>false

Free balloon call!
post edited by kibi - 2018/11/17 10:52:43
#1

3 Replies Related Threads

    Aussie Susan
    Super Member
    • Total Posts : 3590
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: build of python3 of MPLAB 2018/10/21 18:12:32 (permalink)
    +1 (1)
    I'm not sure where Python fits into the picture here.
    As far as I know there is no Python runtime that runs on the bare metal PIC32 family of MCUs (or any PIC MCUs for that matter).
    MPLABx and XC32 should be all that you need.
    Susan
    #2
    kibi
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2018/02/27 02:45:05
    • Location: 0
    • Status: offline
    Re: build of python3 of MPLAB 2018/10/22 21:31:38 (permalink)
    -1 (1)
    Hi,

    This sample is difficult.
    It was PIC pickles.
    The translation is also difficult:).

    By a absolute path of my Python, build success!
    Free balloon!

    List:
    a:freeRTOS V1.4.2
    It was seen using this certificate.
    VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem to aws_ota_codesigner_certificate.pem
    The name Python code uses, it was changed.
    This aws_ota_codesigner_certificate.pem file was put in a lower folder.
    AmazonFreeRTOS/demos/common/ota/bootloader/utility/codesigner_cert_utility/

    <makeCustomizationPreStepEnabled>true
    <makeCustomizationPreStep>
    /Users/kibi/.pyenv/shims/python ../../../common/ota/bootloader/utility/codesigner_cert_utility/codesigner_cert_utility.py ../../../common/ota/bootloader/utility/codesigner_cert_utility/aws_ota_codesigner_certificate.pem ../../../common/ota/bootloader/include/aws_boot_codesigner_public_key.h

    <makeCustomizationPostStepEnabled>true
    <makeCustomizationPostStep>
    ${MP_CC_DIR}/xc32-objcopy -I ihex ${ImagePath} -O binary ${ImageDir}/mplab.${IMAGE_TYPE}.bin &amp;&amp; /Users/kibi/.pyenv/shims/python ../../../common/ota/bootloader/utility/ota_image_generator.py -b ${ImageDir}/mplab.${IMAGE_TYPE}.bin -p MCHP-Curiosity-PIC32MZEF

    I could do a terminal USB connection.
    ls -l /dev/tty.*
    cu -l /dev/tty.usbserial-A999OFI9
    screen /dev/tty.usbserial-A999OFI9 115200

    But new error information.
    WiFi can't be connected:-.

    Thanks,
    kibi

    Postscript.
    A channel of WiFi was an error of a race condition.
    It was settled by channel change in the WiFi router.
    Thanks all:)!
    post edited by kibi - 2018/11/09 02:45:47
    #3
    qhb
    Superb Member
    • Total Posts : 9998
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: build of python3 of MPLAB 2018/10/22 21:34:50 (permalink)
    +1 (1)
    kibi
    After a sample is difficult.
    It was PIC pickles.

    Translation failure.
     

    Nearly there...
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5