Поздравляем maik-vs с днём рождения!
- Если бы Эльбрус был военным процессором или, по меньшей мере,
космическим, то к нему и претензий бы не было - пусть бы вояки его
и кушали, если он им по зубам. Однано он позиционируется, как
процессор общего назначения, и навязывается гражданским
госструктурам под соусом импортозамещения. Тогда как он очень
сильно уступает зарубежным аналогам, как по качеству, так и по
цене. Вояки готовы дорого платить за надежность, но ее у Эльбруса
нет, да и ПО у него сырое. Kceния(446 знак., 06.05.2020 19:23 - 16.05.2020 10:31, Off, полностью)MBedder
- Быстрый старт для STM32. Можно на пальцах для деревянных основные
моменты?! Среда, где взять, программатор, где взять, ножками как
подрыгать, уарт как завести, таймер, spi!? Это уже все совсем
по-другому я так понимаю. Программист работает через некий
"слой")). Готовлю себя морально к "прыжку". С нового года займусь.
Спасибо! - Tpoeшник(14.05.2020 11:28, ARM, полностью)
- Linux + ChibiStudio. На крайний случай Винда+ChibiStudio.
ChibiStudio это готовый набор инструментов для работы с STM32 в IDE
Eclipse при использовании ChibiOS + HAL. И то и другое великолепно.
Масса примеров HAL для всех возможных Discovery и Nucleo. Две
версии RTOS - собственно сама ChibiOS c кучей сервисов, и более
легковесная NIL. Берешь тестовый пример для своего процессора и
используешь как "рыбу" для своего проекта - все необходимые
инициализации уже выполнены. Rainman62(260 знак., 18.05.2020 03:40)
- Давайте подведу итоги на которые мозг мой способен. Итак: ИАР или
Кейл не особо принципиально. Полюбому нужен мастер аля CubeMX.
Программатор типа ST-Link (J-Link?) RTOS вероятно неотъемлемый
атрибут современного эмбединга и не сцать!? - Tpoeшник(15.05.2020 20:55)
- Выводы на троечку... CubeMX много что не кроет, и сильно отвлечет,
так чисто поиграться, ставку на него делать нельзя. RTOS через год.
Программатор для ST лучше ST-link, на последних версиях Segger были
проблемы с ST. А главное вообще не в ARM как таковом, а в выборе
способа организации средних и больших проектов. - VLLV(16.05.2020 07:34)
- Способы организации интересно конечно, но как правило банальнее
вещи заставляют думать о переходах: Tpoeшник(279 знак., 16.05.2020 12:16)
- я в своей время ушел с Z8Encore только по причине отсутствия USB
Host и всего одного UARTа. Ну с УАРТами можно было разобраться
путем софтовых и проч. А вот USB flash disk читать никак нельзя
было. :-) Ну и конечно цены. 4 долл стоил Z8F1680 (20 МГц, 1 UART,
1 SPI, 1 I2C, 16K ROM, 2K RAM) и примерно столько же STM32L476
(80МГц, 256K ROM, 128K RAM, USB Host, 6 UART, 3 SPI, 3 I2C и проч).
Такая вот арифметика. - Лaгyнoв(16.05.2020 13:06)
- Современный ARM раз в пять сложнее, чем AVR(как было 10 лет назад),
поэтому вместе и портами и памятью получаешь кучу сущностей, с
которыми нужно что-то делать. - VLLV(16.05.2020 12:54)
- Для аллергичных на Ардуино :) - Eclipse со Sloeber и STM32duino -
адрдуино только для вида, как готовая сборка с компилятором и всеми
нужными инструментами. При всех недостатках - все даром и работает
и VLT(12 знак., 16.05.2020 12:52, , youtube, картинка)
- Смотри по ссылке - Ozelot(14.05.2020 15:40, ссылка)
- gcc+eclipse+stlink, куб работает везде винь/линь - RED_DRAGON(14.05.2020 14:48)
- Да! Если всё же Дискавери возьмешь, то дискаверным ST-Link-ом лучше
не пользоваться. Сразу надо нормальный, фирменный. Я столько нервов
себе попортил дискаверным . :-) - Лaгyнoв(14.05.2020 13:26)
- А что там, с дисковерным? - RxTx(17.05.2020 14:16)
- ну к примеру. Работает, работает. Один и тот же ST-link с одним и
тем же устройством (именно с тем же экземпляром) с одной и той же
версией проекта в той же версией Кейла. И вот с утра перестает
работать. Не видит камень. Начинаешь плясать. Добрые люди
посоветовали резистор последовательный 50 Ом в цепи SWCLK. Вроде
стало помогать. В другом устройстве стало хуже. Причем, что
забавно, всё это при работе с STM32F030. С ними все гадости. С
STM32L476 всё прекрасно. Все танцы Лaгyнoв(123 знак., 17.05.2020 14:54)
- Встретилось такое: RxTx(371 знак., 17.05.2020 17:10, ссылка)
- У меня ST-Link (см. ссылку) тоже иногда не запускает отладку.
Помогает передернуть ему USB. Попробую, конечно, фирменный. Хотя
неясно, тратиться на него или сразу купить изолированный. До этого
работал с фирменным J-Link EDU. Я НИ РАЗУ (!!!) за месяцы работы с
ним не видел какого-нибудь требования передёрнуть его или еще
что-то там. Может быть виновата atollic, не знаю. Последняя та еще
поделка. - RxTx(17.05.2020 17:01, ссылка)
- Не 50 ом. У ARM, ST на всех схемах 22 ом на всех сигналах у
процессора. Имеется в виду что это двунаправленные сигналы,
резисторы нужны для выходов. До них - 10К подтяжка к +Vdd. Ставятся
эти резисторы для компенсации импеданса линии и как следствие,
отражений. Импеданс драйвера должен совпадать с х-ким импедансом
линии, которое порядка 50 ом. RxTx(338 знак., 17.05.2020 16:57, ссылка)
- И не надо вести рядом в ленточном кабеле данные и клок. - Andreas(17.05.2020 15:08)
- Кабель от программатора самодельный? Он должен быть предельно
короткий, буквально 10 сантиметров. И последовательный резистор
нужно размещать прямо на контактах программатора, а не где-то
посередине или рядом с МК. - fk0(17.05.2020 15:05)
- У них есть полный JTAG, по крайней мере у некторых, поэтому если
где-то гуглится что для данного чипа есть поддержка openocd --
рекомендую делать коннектор а-ля байтбластер, программатор вида
байт-бластер (только на USB, Olimex например делает, копейки
стоит), на компе openocd и gdb. В качестве "среды": VSCode,
Eclipse, Vim... и clang/gcc. Есть наверное готовые сборки
(последнего), обычно в комплекте newlib. Волшебные фирменные
программаторы имеют недостаток, что привязывают fk0(403 знак., 14.05.2020 12:37)
- ИАР, даташит, RM, гитхаб, день спокойного чтения и легко заведутся
заводить светляки, уарт и таймер. Из железа BluePill и пара
STlink(гибнут они иногда) с али общей стоимостью в $5. Куб
использую только для назначения ног в жирных корпусах. - Andreas(14.05.2020 12:12)
- Я тоже прыгал с AVR на STM32. Давно уже. Помню, основное, что
осложняло переход - другая организация в документации. Для AVR
даташиты были по принципу "все в одном" - единый даташит на
контроллер с описанием, электрическими параметрами и пр. il-2(453 знак., 14.05.2020 12:11)
- Самое простое - CubeMX запустить и там в режиме "поставь галочку,
где нужно" выбрать тип МК, его рабочие частоты и используемую
периферию. А дальше он сам сгенерирует проект, в котором будет и
рабочий код. Но после AVR тот код шокирует, т.к. впечатление от
него таково, как будто под операционной системой код написан - ни
одного обращения к регистрам нет - все действия производятся через
функции или макросы, к которым придется привыкать. Таймер заведется
сам, если при Kceния(319 знак., 14.05.2020 12:10, ссылка)
- я взял плату Дискавери, скачал Кейл. Сначала без Куба, потом с
Кубом. Языка Си вообще никогда не знал. До этого - на Ассемблере
для 8-битника. Вот так и втянулся. :-) Сразу пришлось влезть в SPI,
I2C, USB OTG (с какой стороны USB - никогда до того не слышал).
Потом УАРТ. - Лaгyнoв(14.05.2020 11:43)
- Я специально выждал пару лет что страсти улеглись. Сейчас хочу
чужой опыт приватизировать. Кейл? а ИАР совсем не але!? А есть что
то же еще, компиляторы я имею в виду. Вообще для АРМ есть ИАР, Кейл
и GCC. К сож. я не погружаюсь глубоко в доки на компилер, все эти
особенности не изучаю. Хочу делать простые железки и зарабатывать
копеечку. - Tpoeшник(14.05.2020 11:51)
- IAR вполне годится (CubeMX позволяет выбирать, под какой компилятор
код генерить). А если вы раньше с AVR на нем работали, то IAR будет
лучшим выбором, т.к. всё в нем будет вам уже знакомо. А плату
Discovery покупать не рекомендую, т.к. хотя эта плата заведется без
проблем, но потом вам слезать с этой платы придется с большим
трудом, т.к. CubeMX, прознав про эту плату, переопределит все пины
МК в составе этой платы на идиотские имена и на этих же именах ее Kceния(24 знак., 14.05.2020 12:44)
- Улеглись? ARM был на волне хайпа в 2005, когда NXP выпустила свои
LPC-чего-то-там за пару долларов с космическими, на фоне пиков и
авр, возможностями. До некоторых почему-то дошло в последние
несколько лет только, года STM32 начал демпинговать. Слоупоки. - fk0(14.05.2020 12:43)
- Хм, а стартовая точка какая? - VLLV(14.05.2020 11:31)
- Вертикаль власти, говорите? Нет, так мы яблони на Марсе не посадим. SciFi(370 знак., 15.05.2020 15:25, Off, ссылка, полностью)
- Пашу Дурова таки демократизировали, свободный рынок как-никак - evgeniy1294(12.05.2020 20:52, Off, ссылка, полностью)
- Моя тетка с терминальной стадией ПГМ вещает о скором Апокалипсисе. 3 года не будет дождя. Argon(175 знак., 15.05.2020 20:48 - 16.05.2020 15:28, Off, полностью)MBedder
- Ну да. Только горячим головам должен сказать ничего такого, это
называется "продолжительная засуха". Когда год - очень плохо. Когда
несколько лет подряд, ну готовьтесь. Подолжительная засуха очень
вероятна на фоне всего остального. - RxTx(17.05.2020 16:13)
- "....Истинно вам говорю: 4 мая 1925 года Земля налетит... на
небесную ось!...." - =L.A.=(16.05.2020 09:21)
- По всяким предсказаниям уже где-то год назад должны были переселить
людей из соляных пустынь севера Крыма. - Этo_Я(15.05.2020 21:10)
- +1. Основная проблема борьбы на текущем этапе с конспирологией
любого сорта - реальность сильно превосходит любые фантазии
конспирологов. Evgeny_CD(213 знак., 15.05.2020 21:03 - 21:08)
- Я уже цитировал здесь - Собянинские указы это просто дословно куски
из Апокалипсиса, разве что печать зверя заменили на штрихкод, и
витиеватые обороты речи упростили. - Evgeny_CD(15.05.2020 21:07)
- Из этого в мире логики ничего не следует, но на фоне этого
какая-нибудь полоумная бабуля, вещающая о скором пришествии зверя,
не выглядит полным неадекватом. - Evgeny_CD(15.05.2020 21:10)
- Наоборот, ты не понял сути, а она очевидна. Вот эти каналы на ютубе
с безумными теориями, Рен-ТВ, веб-сайты аналогичного содержимого --
оно НАРОЧНО в топ выводится. Чтоб даже и мысли сомнения не было.
Теперь любая хоть немного отличающаяся от официальной версии
гипотеза -- априори бред сумасшедшего. Про ютуб особенно интересно
-- снимать такое количество видео и начитывать столько материала --
люди на зарплате сидеть должны. Обычному человеку некогда и
незачем. fk0(75 знак., 16.05.2020 00:57)
- Странно что вы не в курсе дохода с ютуб. Знакомая ведет канал
рукоделия, 40 тыс подписчиков, по 10-15 тыс просмотров на роликах,
в декабре сняла за рекламу на канале (чисто ютуб доход от гугла,
без product placement в кадре) - 600$. Для замкадного города вполне
себе доход, это помимо собственно трудовой деятельности по шитью.
Теперь представьте себе каналы с 500 тыс, 2 млн подписчиков?...
естественно им кровно нужны просмотры, поэтому любой треш который с
удовольствием Ralex(118 знак., 16.05.2020 16:11)
- 40 тысяч подписчиков у канала про эмбедерство будет если вы будете
делать опыты на уровне Креосана. "Ой у нас тут PIC16F877 давайте
попробуем стереть микросхему ренгеновскими лучами..." - Boвa(17.05.2020 19:26)
- Т.е. мы пришли к тому, что некто (гугл) платит за, пока условно,
любую чушь лишь бы зрителей набегало по 10 тысяч? Но ведь не всем
одинаково платят? Какая-то отдельная чушь, одобренная в
министерстве правды гугла, оказывается более оплачиваемая,
наверняка, чем другая. Вот именно то, что я и имею ввиду. А кто
даёт деньги по ту сторону гугла -- мы не знаем. И хуже того, сам же
гугл подсовывает что смотреть, и там сплошное Рен-ТВ -- а зачем
спрашивается? Тем более fk0(384 знак., 16.05.2020 16:29)
- Демон Кратий в чистом виде. - Evgeny_CD(16.05.2020 16:27)
- Сталкивался ли кто-то с визуализацией графов? Девайс получает
массив номеров вершин некоторого графа и, для каждой вершины,
массив номеров соседних вершин. Нужно показать этот граф на экране.
Программисты, пишущие для ПК и web халявят - оставляют расстановку
вершин на экране пользователю, пуста таскает мышкой как хочет. У
моего девайса ни мышки ни тача нет, нужно автоматически расставить
вершины по экрану с минимальным количеством пересечением ребер.
Полноценной операционной AlexG(652 знак., 16.05.2020 06:20, MCU, ссылка, полностью)
- Эксперт предлагает (по сути) нанять швейцарских гвардейцев вместо
ВС РФ.А че дешево и эффективно. - PlainUser(11.05.2020 13:35 - 13.05.2020 12:08, zen, полностью)MBedder
- Я полагаю, американцы ещё и доплатят - General(13.05.2020 12:36)
- Не так всё просто. Здесь, я думаю, ситуацию следует оценивать по
экономическому эффекту, сравнивая затраты на импортозамещение с
ценой произведенной продукции. Например, я сама пиццу пеку :), а
готовую не покупаю - так выходит не только в разы дешевле, но и
качественнее (вкуснее), т.к я больше грибов кладу :). Но это с
учетом того, если считать мой труд дармовым. Тем не менее, здесь
себестоимость "самоделки" с ценой покупного продукта одного
порядка. Другой пример: в Kceния(820 знак., 11.05.2020 17:31 - 17:35)
- Или около баблопотоков уважаемых людей из хороших семей поменять на
какое-нибудь быдло, что еще менее приемлимо. - s_h_e(11.05.2020 14:12)
- И да увековечится здесь обожаемый многими бедуинами крылатый лось
aka WaysToScrewUp! :)) MBedder(1 знак., 10.05.2020 22:56 - 16.05.2020 11:50, MCU, картинка, полностью)
- Специалисты в электрохимии есть? Проточный электролизер.
Концентрация (моль/литр) и поток (литр/сек) раствора на входе может
колебаться в широких пределах. Электролит на входе - какая-то соль
в воде. На выходе другая соль. Какая должна быть ВАХ источника
питания, для получения максимальной производительности. Нутром чую,
у ВАХ должно быть отрицательное сопротивление... - IBAH(16.05.2020 14:52 - 15:18, Tech, полностью)Evgeny_CD
- Никогда не знал, что "В СССР (по ГОСТ 6082—53) производились четыре
вида хлебного кваса: кислосладкий, кислый, московский и
окрошечный." кислый - это сухой что-ли? Когда дед хотел купить квас
для окрошки - посылам мну в частный сектор к бабуле-божий одуванчик
(баба-яга), где я и покупал за рупь биТон окрошечного кваса прямо
из бочки. Натуральной деревянной бочки. Пить при этом кваса можно
было до усрачки, но на месте. max(4 знак., 17.05.2020 04:40, Off, ссылка, полностью)
- в Сибири, ночью, в середине мая +21.... Это же не июль! Всё
перемешалось. Завтра днем опять +29. - Лaгyнoв(15.05.2020 20:01, Off, полностью)
- Недавно в командировке контроллер вперые выдал Warning по
температуре внутри корпуса +80°. Полупроводниковые лазеры, до этого
работавшие годами потухли лучами по перегреву. И это чтобы понимать
- аппаратура открыта, это не где-то там на солнцепёке в корпусе
было выставлено. Это рядом со мной :))))))) Я когда "прыгал" над
всем этим с паяльником в руках, с меня лил пот как в бане, боялся
платы потом залить, так что надел кепку. :) Воду привезли в
легковушке, все заднее RxTx(180 знак., 17.05.2020 12:15)
- не трави... +10 в лучшем случае... май... вторая половина...ска... - sav6622(16.05.2020 14:22)
- В метро появятся женщины-машинистки _nn(18 знак., 16.05.2020 09:57, , ссылка)
- "..В Якутии мечтают клонировать мамонта, заявил глава
республики..." - =L.A.=(16.05.2020 09:25, ссылка)
- А в моей деревне в 50 км от МКАД снег сегодня днем шел. Я на работе
был в Тушино - там было сухо и светило солнце - MBedder(15.05.2020 21:15)
- и нигавари, они там савсем охуели все. - LordN(15.05.2020 20:37)
- Ну и проблемы у вас. А тут картоху заморозком побило. - Boвa(15.05.2020 20:36)
- По моему мнению в экономике Сталин самый большой либерал, по
сравнению с остальными правителями. BlackMorda(2253 знак., 09.05.2020 18:24 - 19:12, zen, полностью)Cкpипaч
- "Внезапно: Россия снова пятая экономика Мира! Примерно как и РСФСР"
:-) Лaгyнoв(4 знак., 17.05.2020 10:07, Off, ссылка, ссылка, полностью)
- [Краткий экскурс в надежность SDRAM и не только от Micron] Хорошо разжевано. Evgeny_CD(11.05.2020 00:19, dao, ссылка, полностью)
- Фиревалл может быть чьих угодно рук, там логика несложная и тонкие
процессы не нужны. s_h_e(588 знак., 07.05.2020 20:15 - 13.05.2020 12:12, zen, полностью)MBedder
- Блин... Йа вас умоляйу... ;О) "написанный студентами за котлету на
обед"... Скажите, как художник художнику, чего вами написано
сравнимого по масштабу и воплощённого в кремнии? И сколько дыр вы
уже нашли в Эльбрусе? При том, что и на Солнце бывают пятна,
Спекктры и прочие Мелдоване. А ваш аппаратный фиревал или ВПН, он
что, гарантированно без дыр? Мамой клянётесь? А как с бэкдорами?
Как дети, чесслово. И про платы, в очередной раз, позабавило: да,
можно разработать и даже mse homjak(578 знак., 07.05.2020 22:17)
- Кстати, насчет закладок и безопасности. Интересно, чей тут у нас
контроллер сети? s_h_e(1 знак., 07.05.2020 23:15, картинка)
- я видимо отстал безнадежно, хотел спросить - нынче процы вообще
изначально впаивают все производители или это только эльбруса
касается из-за уникальности изделия ? - klown1(11.05.2020 17:21)
- А что вам сделает контроллер сети? Залезет на диск и скачает БД? Он
полноценного доступа в память не имеет. - mse homjak(08.05.2020 21:05)
- Получит команду и начнет транслировать принимаемые по сети секреты
прямо в пентагон. Или тупо отключится в нужный момент. s_h_e(348 знак., 08.05.2020 21:39)
- Чтобы в Омереге не было толку от секретов, обычно чувствительные
данные шифруют, прячут среди информацыонного мусора и всё такое.
Сам контроллер ничо не знает о данных, которые через него идут. mse homjak(396 знак., 08.05.2020 21:53 - 22:00)
- Когда он самоубьется, фпга ставить поздно будет, ракеты уже будут в
воздухе) s_h_e(138 знак., 08.05.2020 22:00)
- Да не блокируется это ничем. Контроллер сидит на физической среде,
над ним драйвер, над ним, где-то там, в облаках, ваш ВПН с
фиреваллами. А АРМ внутри I7 общается с контроллером напрямую. У
него своя операционка и доступ к физической памяти и устройствам. - mse homjak(08.05.2020 22:06)
- Ну и что он с этим доступом будет делать, если у него в виртуальной
сети видно 200 компов, и все этой же структуры? "VPN в облаках" Вы
вообще в курсе, о чем речь? - s_h_e(08.05.2020 22:11)
- "ОБлака", это значит, что даже уровень ядра ОС лежит ниже вашего
ВПН. У него уровень приложений, дай бог, с привилегиями админа. Под
его уровнем можно делать что хочешь. mse homjak(759 знак., 08.05.2020 22:35)
- Речь вообще изначально шла про внешний (полу)аппаратный VPN на этой
же плате, к интерфейсу управления которым комп/юзер в принципе не
имеет доступа. s_h_e(194 знак., 08.05.2020 22:50)
- Да какая разница, обо што речь шла изначально? Вы безапелляционно
задвигаете про дырявость Эльбруса. Я вам тычу пальцем в дыру,
которая лежит на поверхности и про которую все делают вид, что не
видят. Хренли толку в шифровании трафика, ВПН и прочей замысловатой
фигне, когда знающий человек может параллельно с вами шариться
везде, где захочет? Больше того, будет шариться там, где вам, как
юзеру, запрещено. Просто потому, что эта потенциальная возможность
есть. mse homjak(483 знак., 09.05.2020 14:40)
- А вы мне безапелляционно задвигаете про знающего человека, хотя эти
дыры легко закрываются даже на уровне предприятия толковым админом.
Просто выхода из корпоративной VPN, организованной внешними по
отношению к компу средствами, наружу не будет, и все. s_h_e(432 знак., 09.05.2020 14:56)
- Последний вопрос: "любой сетевой контроллер с шифрующей железкой"
будет чей? В нём может быть потенциальная дыра, про которую "тот,
чья надо, нога", знает? Вот вам принесли сетевую плату, роутер,
свичь или ещо какую сетевую %ню, вы готовы дать зуб, что там всё
чисто, с точки зрения бэкдора? Вот не знаю, как вы и "толковый
админ", а "знающий человек" такой гарантии дать не может.
Пичялька... - mse homjak(09.05.2020 15:08)
- Ну началося... "Сперва добейся", "да ты кто такой". s_h_e(818 знак., 07.05.2020 22:48)
- "Сперва добейся", это показатель того, что вы имеете понятие о
проектах такого уровня. Как оно делается, проистекает,
согласовывается и всё такое. А то "студенты написали" каг-то не
внушает. Да и студент студенту рознь, ваще-то. Что касается "двух
тысяч", то скажите пжлст, каким объёмом тот-же Интель/АМД выпускает
инженерники? Миллионами? Тоже, чобы баблишко потратить? Да, это
инженерники, которые стоят как чугунный мост, на них отлавливают
глюки и если нормально, делают mse homjak(828 знак., 08.05.2020 21:45)
- У интеля поле инженерников идут не-инженерники. В отличие от. - s_h_e(08.05.2020 22:15)
- У интеля 40+ лет непрерывного развития из которых 20 лет,
фактического монополизма. Не надо сравнивать член с пальцем. Тем
более, что даже в СССР электроника была одной из самых ублюдочных
отраслей. По сравнению с тем ляцтвом, то, что щас, это верх
инновацый и успешного развития. Не говоря об юзер-френдленности,
прости, Господи. - mse homjak(08.05.2020 22:41)
- Ну так с эльбрусами и через 40 лет так же будет, как сейчас. Всех
все устраивает. Вон как вы стойко держитесь за статус кво. - s_h_e(08.05.2020 22:52)
- Я не знаю, что там будет через 40 лет. Я не прецтавляю, что будет
через пять. Но я понимаю, почему с тем-же Эльбрусом происходит
именно так. Хуже того, если бы я рулил процессом, то поступал бы
точно так-же. У интеля было 40 лет, чтобы откатать свои поделия на
миллиардах бета-тестеров и то вон сколько всплыло. Потому пусть
МЦСТ откатывает свою статистику за сравнительно малые деньги так
как есть, без массовых разрушений, а потом будет видно, что из
этого получилось и что с mse homjak(12 знак., 09.05.2020 14:49)