Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process to create OTA file doesn't work #412

Closed
yann-l opened this issue Dec 7, 2024 · 2 comments
Closed

Process to create OTA file doesn't work #412

yann-l opened this issue Dec 7, 2024 · 2 comments
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project

Comments

@yann-l
Copy link

yann-l commented Dec 7, 2024

The mentioned process to create OTA file doesn't work:

  1. Get the generated bin file.
  2. Run the following command:
    lzss.py : ./lzss.py --encode Blink.ino.bin Blink.ino.lzss
    
  3. Modify the bin2ota that still doesn't support C33 by adding its magic number:
    elif board == "PORTENTA_C33":
      magic_number = 0x23410068.to_bytes(4,byteorder='little')
    
  4. Run the following command to generate the OTA file:
    ./bin2ota.py PORTENTA_C33 Blink.ino.lzss Blink.ino.ota
    

But the OTA file doesn't work.

The one that is in the "UpdateFromFile" example sketch (update.h converted to an OTA file) works correctly. How was it generated?

Additional context

When I test the Blink example it works.


I am using Arduino IDE 2.3.4 and Arduino Renesas Portenta Boards 1.3.1.

@per1234 per1234 changed the title Create OTA file Process to create OTA file doesn't work Dec 8, 2024
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Dec 8, 2024
@pennam
Copy link
Contributor

pennam commented Dec 9, 2024

Hi @yann-l I've tried to rebuild the OTAUsage.ino example with the new core and following your steps. In my case UpdateFromFile example is working as expected.

I attach the xxd dump ehre for reference

update.h.zip

Also opened this PR arduino-libraries/ArduinoIoTCloud#519 to add C33 to bin2ota.py

@yann-l
Copy link
Author

yann-l commented Dec 9, 2024

Ok I found what I was doing wrong: I neede to include "SFU.h" to make my sketch "otable".
Thanks for your comment and the bin2ota PR

@yann-l yann-l closed this as completed Dec 9, 2024
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants