Electronics > Projects, Designs, and Technical Stuff

One crazy SAMD21G MCU – I2C/RESET issues (custom PCB design)

<< < (4/7) > >>

3dgeo:
What bootloader do you know/use?
I think eventually I will have to write my own, if I manage to beat that steep learning curve that is...

ataradov:
I write my own. There is no real learning curve. Bootloaders are easy unless you want to make them complicated.

Here is example of a USB HID bootloader https://github.com/ataradov/bootloaders

Attached is a simple UART bootloader for SAM D21.

3dgeo:
I'm very grateful, Alex, thank you for your help (this is not the first time you are helping).

I actually tried to find info on this topic, and your name came up, so I know you are THE MAN on these things, and I know it's easy for you but definitely not for me. Tho I'm getting there, slowly, maybe a bit frustrated at the time but I'm moving :)

What do you mean by "USB HID bootloader"? Why I should need HID on bootloader? As far as I understand HID should be enabled when main program runs, or I'm wrong?

My end goal is this:
"firmware" on MCU is running as normal, it gets serial command that there is a need for firmware update, "firmware" changes "firmware update is active" "fuse" and resets MCU.
Bootloader starts and stays in bootloader mode if "firmware update is active" (I still don't know how it should be done, I found other uses flash memory location to read/write this state, in my circuit there is external I2C EEPROM that can be used for this purpose as well).
Bootloader should be able to receive commands/data via USB (serial com) and update "firmware", deactivate "firmware update is active" and reset itself or reset itself if commend received to do so via serial com.
"Firmware" should be able to emulate HID keyboard and use serial port at the same time (same USB).

For me it's a huge goal to do this without Arduino existing libraries...

How much a bootloader like this could cost? 3-4-5 figures?

ataradov:
HID is the easiest way to make a device work 9n all OSes without drivers.

What you are describing is exactly what my HID bootloader is doing.

3dgeo:
But this will not work with Ardino IDE I'm guessing?
As I said – I don't know how to make HID keyboard without Arduino libraries, it's too big of a gap to jump, at least for now.

Tho I would like to know what is the best IDE for ARM developing in general? I have Atmel studio, but will it work with STM32?
When I migrate I want to have one IDE (industry standard) for all ARM chips.

Also, is there some sort of "starter code" generator for SAMD chips like STcube for STM chips?

Sorry if I'm asking stupid things, I'm in uncharted waters here :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod