Author Topic: SAMD09 supports for boot over I2C ?  (Read 1351 times)

0 Members and 1 Guest are viewing this topic.

Offline muthukural001Topic starter

  • Regular Contributor
  • *
  • Posts: 211
  • Country: in
SAMD09 supports for boot over I2C ?
« on: November 06, 2017, 10:10:53 am »
Hello All,

I am going to start a project with SAMD09 microcontroller.Before going for fabrication, I want to know whether it supports Boot from external EEPROM which is connected on I2C or not. Please let me know....


Regards,
Muthu
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: SAMD09 supports for boot over I2C ?
« Reply #1 on: November 06, 2017, 10:33:50 am »
There is no built in bootloader, but it does offer support for a custom bootloader.  If you need this functionality you would have to write the code and locate it in the memory area defined for bootloader operation, and set the configuration fuses to protect your bootloader.
 

Offline muthukural001Topic starter

  • Regular Contributor
  • *
  • Posts: 211
  • Country: in
Re: SAMD09 supports for boot over I2C ?
« Reply #2 on: November 06, 2017, 11:18:48 am »
Hi mikerj,

Understood. But, I don't know that how to load external EEPROM with our application .hex?. Is they are using any PC software to write .hex file to External EEPROM?.Once this has done , I can read that .hex from External EEPROM in Bootlaoder mode and write it to the program memory of the Microcontroller.


Regards,
Muthu
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11261
  • Country: us
    • Personal site
Re: SAMD09 supports for boot over I2C ?
« Reply #3 on: November 06, 2017, 05:21:15 pm »
I'm not aware of any bootloader that will do exactly this. But there are examples of bootloaders out there, you just need to adopt them to your needs.

Start from writing a code that reads external EEPROM. Samples of that code and bootlaoders are available on my GitHub.

You may want to switch from hex to just plain binary, this will make your life simpler.
Alex
 

Offline WillHuang

  • Contributor
  • Posts: 47
Re: SAMD09 supports for boot over I2C ?
« Reply #4 on: November 07, 2017, 03:59:35 am »
I don't think there is a way to DIRECTLY boot from the external eeprom as the uC needs to know a valid starting address of the reset vector. However, what you can do is have the bootloader copy the image from the EEPROM to the uC's memory space and then run the image from there.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf