Skip to content

Conversation

@cmetz
Copy link

@cmetz cmetz commented Feb 15, 2018

added a new way to check whether a new firmware needs to programmed into the sam3

  • sam3s_rpi_sysfs_check.cfg does a flash verify_bank against ch.bin
  • sam3-program.bash greps the result of the verify after 'contents differ'
  • reduced the retry counter from 30 to 5, if the program fails
  • added a short sleep of 1 sec at the end of try_program to be sure everything is fine (not sure if it's needed)

…into the sam3

- sam3s_rpi_sysfs_check.cfg does a flash verify_bank against ch.bin
- sam3-program.bash greps the result of the verify after 'contents differ'
- reduced the retry counter from 30 to 5, if the program fails
- added a short sleep of 1 sec at the end of try_program to be sure everything is fine (not sure if it's needed)
@cmetz cmetz changed the title sam3 programm firmware check improved sam3 program firmware check improved Feb 15, 2018
@cmetz
Copy link
Author

cmetz commented Feb 16, 2018

i just recognized, that the sam3s_rpi_sysfs_check.cfg is always performing a "at91sam3 gpnvm set 1" to set the bootloader mode. this is maybe bad, i don't know if the internal flash gets damaged by this, but i will remove this from the code and implement a solution that it is checking if the bit needs to be set, or not.

@cmetz cmetz closed this Feb 16, 2018
@cmetz cmetz deleted the sam3_version_check branch February 16, 2018 18:46
@cmetz cmetz restored the sam3_version_check branch February 16, 2018 18:47
@cmetz
Copy link
Author

cmetz commented Feb 16, 2018

sorry, i could have fixed it in this pullrequest, but i started a new one: #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant