Hi, is there any example of how to use KBOOT v1.2 in i2c master mode? The idea is to read the new binary program from an i2c EEPROM.
Thanks,
Alex.
Solved! Go to Solution.
Hello Alexander Agudelo:
Unfortunately there is no example of using KBOOT in I2C master mode. Only I2C device mode is supported using blhost tool together with another MCU as bus translator (BusPal).
Actually if using I2C in master mode by reading from an EEPROM then it should be easier to implement your own bootloader instead of reusing KBOOT, which is a very complex firmware due to the support of all the interfaces and configurations.
You do not mention the Kinetis part you have but basically you need 2 things:
1) EEPROM I2C low level driver. Some references:
Driver for Microchip 24xx Serial EEPROM | MCU on Eclipse
2) Flash erase/write routines. You can use standalone C90TFS or the same driver but integrated with KSDK.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello Alexander Agudelo:
Unfortunately there is no example of using KBOOT in I2C master mode. Only I2C device mode is supported using blhost tool together with another MCU as bus translator (BusPal).
Actually if using I2C in master mode by reading from an EEPROM then it should be easier to implement your own bootloader instead of reusing KBOOT, which is a very complex firmware due to the support of all the interfaces and configurations.
You do not mention the Kinetis part you have but basically you need 2 things:
1) EEPROM I2C low level driver. Some references:
Driver for Microchip 24xx Serial EEPROM | MCU on Eclipse
2) Flash erase/write routines. You can use standalone C90TFS or the same driver but integrated with KSDK.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Jorge,
I see your point about using my own bootloader.