Electronics > Beginners

How far up the code stack should I start it

(1/1)

nissanvietnamvn:
Looking to write a microcontroller application, I'm building a rowing computer so first version is usb, accelerometer, display, sd card. The general concept is read sensor data do some math and store it to memory & display it on screen. At some later time offload the data via usb. The SD card was a shortcut idea to avoid the usb data part on the initial go around. I'm planning to use an STM32F0 to start with. I have a SW background so I'm kinda struggling with the whole 'roll your own' approach for everything.

I'm pretty certain I need a bootloader as I want to flash firmware updates via usb. What are my options here? I found OpenBootloader but that was about it, is there anything else worth looking at?

I looked around for some kinda OS and came across the concept of RTOS, i think this is probably a bit to much for my needs but is there other maybe less heavy loop/scheduler type frameworks? (i'm hopefully searching for the wrong terms which is why i can't find much)
juck

cur8xgo:

--- Quote from: nissanvietnamvn on June 14, 2019, 08:28:11 am ---Looking to write a microcontroller application, I'm building a rowing computer so first version is usb, accelerometer, display, sd card. The general concept is read sensor data do some math and store it to memory & display it on screen. At some later time offload the data via usb. The SD card was a shortcut idea to avoid the usb data part on the initial go around. I'm planning to use an STM32F0 to start with. I have a SW background so I'm kinda struggling with the whole 'roll your own' approach for everything.

I'm pretty certain I need a bootloader as I want to flash firmware updates via usb. What are my options here? I found OpenBootloader but that was about it, is there anything else worth looking at?

I looked around for some kinda OS and came across the concept of RTOS, i think this is probably a bit to much for my needs but is there other maybe less heavy loop/scheduler type frameworks? (i'm hopefully searching for the wrong terms which is why i can't find much)
juck

--- End quote ---

You have a vast....VAST...selection of microcontrollers out there to choose from. I would suggest picking one that is as easy for you to get your head around as possible (development environment and internal complexity), especially if you are already struggling with the roll your own aspect. How did you justify the STM32F0? Is that really needed or could you use a much simpler MCU that you could get off the ground with much faster?

If you are thinking RTOS and you have a SW background, just make your own state machine and go from there.

Navigation

[0] Message Index

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