[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

ARM Microprocessor IDEs?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 34
Thread images: 4

File: en.mainstream_nucleo-32.jpg (140KB, 500x375px) Image search: [Google]
en.mainstream_nucleo-32.jpg
140KB, 500x375px
I decided to say 'Fuck you Arduino" and and picked up a couple Neutrino ARM microcontrollers.

What's /g/'s IDE of choice for development on these?
>>
>>56361731
Fuck, I meant Nucleo, not Neutrino
>>
>>56361731
And for what are you going to use it?

I use an embedded system depending of what I am going to do
>>
File: al5d.jpg (26KB, 640x480px) Image search: [Google]
al5d.jpg
26KB, 640x480px
>>56361788
I'm going to be using it to control a microspectrometer which I'll be mounting on various platforms.

Assuming I end up liking ARM and whichever IDE I land on, I'll be using them in various robotics projects, starting with something like pic related
>>
>>56362146
I took a course which used MSP430 with TI's IDE, but I decided to use the GCC clone/spinoff that had been released for the MSP430. It was a really good experience using makefiles instead of the IDE. Much faster to compile and flash. I didn't need to load up an old re-skinned version of eclipse every time I wanted to flash an executable. It felt really good. Maybe there's a GCC spin that targets the ARM chip you're using.
>>
>>56362146
Also, FYI, I've heard that arm development is hard. Having an oscilloscope handy will make your life a lot easier. Print off a copy of the manual and keep it in a binder next to your machine. You'll want to pay very special attention to configuring and calibrating the timers on the microcontroller, since if those are off, you won't be able to set up a reliable serial connection with your PC, meaning that you won't be able to safely control the actuators on your robot. Have patience. It took me a *very* long time to master the MSP430 (which has a much simpler architecture than the ARM Cortex chips). Maybe 100 hours before I felt comfortable programming a robot with it. Anyway, if you can make it work, you'll have an **extremely** valuable skill. Embedded C is the door to all kinds of "intelligent" consumer products.
>>
File: PhysRevLett.103.png (772KB, 1200x1200px) Image search: [Google]
PhysRevLett.103.png
772KB, 1200x1200px
>>56362408
>>56362577
Thanks for the info, it's more helpful than you know. I've done quite a bit of C programming, but this is my first foray into microcontrollers and I'm definitely not an EE, so checking clock timing with oscilliscopes and stuff is pretty far outside my wheelhouse (though I'm a physicist by trade, so I do understand what you're saying).

I'll definitely need to use an ARM chip with my spectrometer since the clock speed and subsequent A/D conversion rate on my Arduino Zero a shit... Luckily I have a homie with the same ARM microcontroller and an oscilliscope who can characterize it for me (unless timing varies from chip to chip?).

But if ARM stuff is as hard as you say, I think it may be a good idea to use Arduino for the rest of the robotics in my project in the interest of rapid prototyping. Would you do the same?
>>
>>56363281
I can't really advise you further without more information. I haven't played around with Arduino too much so I don't know what the capabilities are, but I have a hunch that ATMEL's chips are not as full-featured as what you can get from ARM (in evidence: the abundance of ARM-based smartphones and the non-existence of ATMEL-based ones).

Obviously, as with any engineering project, there will be tradeoffs. I don't want to talk you out of learning a useful skill because it might be hard. Even if you give up, you'll learn something at least.

I stand by my recommendation to print out the manual and use a scope to help debug the machine though. On a microcontroller, you can easily forget to set a port to to "out mode" and not be able to blink your LED or send a message over the serial port or whatever.

I also have a physics background. Could you tell me more about your project? I'm not sure how to securely exchange contact information on 4chan.
>>
>>56363534
It's just a hobby project, really - essentially what I want to achieve is to have a robotic platform that allows me adjust the view angle of my spectrometer. Like pic related.

You're probably right that ARM is the way to go - I'll look into it and see what kind of proficiency I need to gain before I really get into it.

I'll also check out some oscilliscopes; didn't realize handheld ones could be had for less than $100. Are the cheap ones garbage?
>>
>>56363898
If you're gonna get a scope, make sure that the scope has a (nominal) read frequency at least twice that of the highest frequency signal you could reasonably expect to measure. For example, if your microcontroller has a clock frequency of 25MHz, go for a scope with 50MHz nominal read. This is just a rule of thumb that I use. Manufacturer's specs may or may not be accurate or correct.

Handheld 'scopes often have poor specs, but it's been two years since I looked at what's available. Another thing to look for is whether it will export your data to CSV or not. I worked on a project with a group of MEs once and they took pictures of oscilloscopes instead of exporting data. Fucking weird. Don't force yourself to do that.

One place I look for measurement tools is dx.com. Most things are cheap and reasonably good, but take around a month to ship.

Yeah, learn ARM. If you can hack it, you'll be happy you learned how.

So it's a spectrometer attached to the end of a rotating arm? I would use a stepper motor for that. Stepper motors enable you to control the rotation angle very precisely without using sensors. There are other options, but if your spectrometer weighs anything more than a few grams, those options are totally out the window.

There are stepper drivers out there, but you could totally write your own and run it on the microcontroller. You'd learn a lot that way, both about microcontrollers and about stepper motor math.

Is this some kind of gas or particle flowmeter project you're working on?
>>
>>56361731
>IDE
Just write your software in C

There isn't a processor on this planet that doesn't have a working C compiler
>>
>>56363281

How many samples per second do you need?
>>
>>56362577
>Embedded C is the door to all kinds of "intelligent" consumer products.
Don't they just throw a JVM on it these days?
>>
>>56361731
GCC
>>
>>56363534
>I'm not sure how to securely exchange contact information on 4chan.
You could try using text-based Diffie-Helman to establish a shared key
(appended to a post that's detailed enough to make sure you're talking to the
right person), then encrypt your contact info using the shared key generated
from it.
>>
>>56364240
I'll figure out how to do this and post detailed instructions on /g/ at some point in the future. DH isn't very complicated.
>>
>>56361731
A text editor.
>>
>using an ide
>>
>>56364150
Cool, I'll make sure I overshoot on the oscilliscope specs.

I was thinking a stepper motor may be the way to go, seems like they have good repeatability without having to dick around too much. Thanks for confirming that.

Nothing as hardcore as a flow meter, the pic was just for illustrating the angular aspect. I'm just going to be looking at how light scatters anisotropically off different natural surfaces based on sun angle and look angle; like for a patch of dirt or a short plant canopy.
>>
>>56364198
It's not really how many samples I need, it's more about reducing the integration time as low as possible so I can avoid saturating the signal in all possible cases.
>>
>>56362146
lad, share some of your pwm timer routines. also, which stepper motor?
>>
>>56364216
true, they can translate java bytecode on the fly
>>
>>56364466
I have none, friend. I haven't decided on a stepper motor yet. Any suggestions?
>>
>>56361731
Try >>>/diy/
>>
>>56364285
I gave it a shot

import System.Random

dh_e = 0x30820...spam...20102

dh_new = randomRIO (0, 2^2048 :: Integer)

modExp _ 0 _ = 1
modExp b 1 m = b `rem` m
modExp b e m = case quotRem e 2 of
(e', 0) -> modExp (b*b `rem` m) e' m
(e', 1) -> modExp b (e-1) m * b `rem` m


λ privA <- dh_new
λ privB <- dh_new
λ let pubA = modExp 2 privA dh_e
λ let pubB = modExp 2 privB dh_e
λ modExp pubA privB dh_e == modExp pubB privA dh_e
True
>>
>>56364634
But having written this I also realized that it would be easier to just re-use GnuPG for this job

I'm sure you could figure out some easy way to coax GnuPG into generating a temporary public/private keypair in a shell script, using that, then throwing it away.
>>
>>56361731

vim and a c compiler
>>
>>56364607

>asks technology question
>go to /diy/
>/g/ is only for graphics cards and cell phones

I hate you
>>
>>56364684
You misspelled emacs.
>>
>>56364757

emacs is confirmed malware that will inject a bloated lisp interpreter and utilities into your lightweight C code you edit with it
>>
>>56364785
god I love this meme
>>
>>56361731
Personally, I use:
tmux for environment management
vim for editing
make for automating everything below this line
gcc (arm-none-eabi) for compiling
gdb for debugging
openocd for deploying/creating debug server

Now, I recognize I'm weird and fringe.

If you want an IDE that's a step up from Arduino-tier but isn't jumping in the deep end immediately, you might try mbed. They even just released an RTOS platform.

https://developer.mbed.org/platforms/
>>
>>56366777
Nice trips, and thanks buddy. I'll give mbed a look.
>>
>>56367075
sorry, should also mention
screen /dev/ttyACM0 115200

for interacting with the serial terminal.
Thread posts: 34
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.