Hi
I am writing the bootloader for this part. I would appreciate if you can provide sample bootloader code and sample flash memory read, write and erase. Thank you
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
I am writing the bootloader for this part. I would appreciate if you can provide sample bootloader code and sample flash memory read, write and erase. Thank you
Hi LayEng,
You can refer below UART bootloader code:
And a CAN bootloader code is available at below location:
6.1. Project 0 — Hercules Safety MCUs Documentation
And Ethernet code bootloader code is available here:
Hercules_Ethernet_Bootloader « Application - hercules_examples/hercules_examples - Software Examples for Hercules Processors
And also, you can take a look at below FAQ:
This FAQ consists of some demo examples on related to FAPI routines (Erase, Read and write).
--
Thanks & regards,
Jagadish.
Hi Jagadish
Thank you for your reply. I find it hard to download the bootloader for CAN. It opens to a github that doesn't seem to have a download function. Can you help?
Thank you
Hi Jagadish
As I was looking at bl_main.c, I saw this address apiLoadStart which doesn't seem to be defined. Can you explain? Thank you
Hi LayEng,
Thank you for your reply. I find it hard to download the bootloader for CAN. It opens to a github that doesn't seem to have a download function.
You can't download, you have to clone it.
To clone it, first download following two applications:
Git - Downloading Package (git-scm.com)
Download – TortoiseGit – Windows Shell Interface to Git
Once you install these two then you can clone them like below.
1. Just right click and click on the
2. Now give the URL and directory where you want to clone it.
URL:
https://git.ti.com/git/hercules_examples/hercules_examples.git
3. Now click on "OK" button to start the clone process.
After clone process completed you can see the demos at destination directory.
--
Thanks & regards,
Jagadish.
Hi,
As I was looking at bl_main.c, I saw this address apiLoadStart which doesn't seem to be defined. Can you explain?
It is defined, it is extern from the bl_link.cmd.
So please clone the entire project and then do the build to avoid build errors.
--
Thanks & regards,
Jagadish.
Dear Jagadish
I have tortoise git installed on my PC and using it regularly but haven't used clone before. When I followed your instruction, I got error.
There is nothing in this folder that I am cloning to.
For the bootloader uart, I have downloaded the zip file and am able to compile without errors. I have seen that apiLoadStart is declared extern. But still an unknown value. It seems like you are trying to copy some binary content into that location. But what is that content and where is this location
Please use below link for clone:
https://git.ti.com/git/hercules_examples/hercules_examples.git
--
Thanks & regards,
Jagadish.