hybridfree/eevblog-posts huggingface dataset:
MPLAB/Harmony3: instantiating plib_wdt.[ch]? - Page 1
Forum section: electronics / general

author: fearless
author_rank: Contributor
timestamp: March 07, 2023, 02:15:09 am
content: There's an MPLAB/Harmony WDT example for the SAME54. Relative to the Harmony directory, it is{HarmonyDir}/csp_apps_sam_d5x_e5x/apps/wdt/wdt_timeout/When you build the example project, it creates (relative to your project directory):{ProjectDir}/firmware/src/config/sam_e54_xpro/peripheral/plib_wdt.c{ProjectDir}/firmware/src/config/sam_e54_xpro/peripheral/plib_wdt.cI want the same thing. BUT: when I build a project using MPLAB/Harmony3, I can't figure out how to cajole MHC into creating plib_wdt.*. It's not listed as an available peripheral. I tried enabling the WDT system fuse (under the System module), but that didn't result in plib_wdt files. I even tried looking in the python and .ftl files to see what would generate the files, but couldn't quite decipher it.Suggestions? (Please resist making "drop MPLAB" comments. It's already been a rough day...) Thanks!

author: ataradov
author_rank: Super Contributor
timestamp: March 07, 2023, 02:47:31 am
content: It should be listed as a peripheral that you can add just like any other peripheral.If it does not appear, double check that all your components (csp, dev_packs) are up to date and then look in the MHC logs to see if there are any errors related to enumeration of the WDT peripheral.

author: fearless
author_rank: Contributor
timestamp: March 07, 2023, 02:53:14 am
content: QuoteTurns out that's not the case, at least not for WDT. The trick is under System => WDT => Use WDT? needs to be checked. I missed that because I was looking at the fuse settings instead.
Freetronics: etherten and ethermega victims of the global chip shortage - Page 1
Forum section: electronics / general

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: August 20, 2022, 11:28:54 pm
content: https://www.freetronics.com.au/blogs/news/etherten-and-ethermega-victims-of-the-global-chip-shortageQuotePreviously posted in the chipageddon thread to incredible discussional un-success. So I thought I'd lodge it here.My take is Jon is if considering going to a 3.3v board. All my stuff is 5v. By the time I get around to moving everything to 3.3v, will the majority of boards be perhaps 2.3141592653v ?My other take is I'm wondering if this a golden opportunity for Jon to bridge the (wide IMO) gap between 'druinos and proper embedded gear.What do you think?

author: Nominal Animal
author_rank: Super Contributor
timestamp: August 21, 2022, 10:39:57 am
content: Quote from: Ed.Kloonk on August 20, 2022, 11:28:54 pmNo, the next move will likely be 1.8V or 1.2V, but thus far I've only seen full-sized processors and FPGAs use those. (I have an Odroid HC-1 SBC, which has a 1.8V UART, directly connected to the Samsung Exynos5422 octa-core A15/A7 big.LITTLE CPU. I was using 74LVC1T45s, but will shift to TXU0202s for level shifting to that UART. Darn thing isn't even 3.3V-tolerant!)(Besides, 3.3V×3.3V/5V = 2.178V, not approximately π - 1V.)Quote from: Ed.Kloonk on August 20, 2022, 11:28:54 pmOuch. Better start stocking up on level shifters, or 5V tolerant transceivers.For unidirectional stuff with direction selection, I can warmly recommend 74LVC1T45/74LVC2T45/74LVC8T245. For fixed-direction unidirectional stuff like UARTs, SPI, and so on, TXU0n0m. TXB series is very widely used for I2C. For inter-board communications – like when I'm driving stepper driver controller boards – I do love using isolators instead, because that lets me use a separate grounds for the digital logic and motors; especially the Si86xx chips, as they only need 0.1µF supply bypass caps and optional series resistors for noise immunity, so even an uncle bumblefuck hobbyist like myself can work with them easily.
x86 MotherBoard Bring up - Page 1
Forum section: electronics / general

author: firasgany7
author_rank: Newbie
timestamp: June 04, 2022, 05:05:08 pm
content: For those who has experience with Intel x86 motherboard design and bring up.I'm in the middle of motherboard bring-up that has Intel Tiger Lake UP3 CPU.Seems like I had a good run so far at power-up sequence.please check my reddit post that to see the images since I couldn't upload them here:https://www.dropbox.com/s/va7odkfqnmdyyqx/SBC-TI22_1_0.pdf?dl=0as you see, I still can't get SLP_S5# = High, which means I'm still at the sleep state.Note 1: power-up sequence is controlled by an FPGA.Note 2: SLP_S0# is connected to 100K PU according to INTEL Platform Design Guide, as opposed to INTEL Validation board that has 100K pull down.I pulled SLP_S0# low from FPGA (now it’s on ~500mv voltage). This change Still didn’t get me to SLP_S5# = HIGH.Note 3: I flashed BIOS Binary to BIOS-SPI FLASH AND seems like the SoC is trying to communicate with the SPI Flash but the SoC is not proceeding to higher states.here is a schematic for my motherboard for those who have Dropbox account:https://www.dropbox.com/s/va7odkfqnmdyyqx/SBC-TI22_1_0.pdf?dl=0I would like to get some debug ideas that could help checking the source of the problem
ESP32 - Arduino framework vs ESP32-IDF? - Page 1
Forum section: electronics / general

author: aneevuser
author_rank: Frequent Contributor
timestamp: May 29, 2022, 06:48:15 pm
content: I'm intending to develop a small project on an ESP32 board, and am planning to use VSCode+PlatformIO, with FreeRTOS.I seem to have the option of choosing to create a project using the Arduino framework or ESP32-IDF, but it's not clear to me what the pros and cons are here.For example, if I were to choose the Arduino framework, can I still freely make calls to the underlying ESP32-IDF code base, or are there strange and ill-documented problems that can arise were I to do that?One point that strikes me: it seems that there are many more online resources for Arduino development (e.g. how does one assign an int. handler, configure an IO pin etc) and more people familiar with it, but I'm worried about being trapped in an Arduino environment when I suddenly find that I need access to ESP32-native features that haven't been translated into Arduino-speak.Anyone with any useful experience to share?

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 02, 2022, 10:01:43 am
content: Try starting a DMA memory transfer? Setting up the LCD peripheral? Bluetooth? Nope, not in Arduino.Else than some basic SPI, UART and few other peripherals, Arduino framework lacks a lot of hardware functionality, which IDF has.Arduino allows basic working in very few steps, which is fine for starting, but you won't get far.See how, for example, LCDs are usually painfully slow.Zero hardware-optimized libraries, everything is pretty much generic, software-based, no DMA, no hardware acceleration...

author: globoy
author_rank: Frequent Contributor
timestamp: June 02, 2022, 04:48:09 pm
content: You can make IDF calls from within the Arduino environment. You can use both cores, create FreeRTOS tasks and use the various native libraries. You do have to worry on occasion if you use both the Arduino compatible calls and a native API for the same peripheral. I would highly encourage you to look through the Arduino compatibility layer Espressif wrote. It's fairly straightforward and reasonably done. You can find it if you drill down into your Arduino installation or just search github for ESP32 Arduino. Knowing it or at least knowing where to look in it is the best way to answer questions about it and look for interoperability issues.I've written a fair bit of code using both environments. Depending on your needs the Arduino environment may be just fine. Very nice to be able to do things like create a web server with just a few lines of code. On the other hand you might find you need the native (and more complex) API for higher performance or for some things that aren't implemented in the Arduino API. If you are planning to share your project with others then using Arduino will make that much easier for them. I've found that relatively few people who aren't already familiar with the IDF are willing to use it just to compile someone else's project.
Putting MPLAB / Harmony 3 project .text section on a diet... - Page 1
Forum section: electronics / general

author: fearless
author_rank: Contributor
timestamp: March 03, 2022, 09:49:53 pm
content: (This is largely cross-posted fromhttps://www.microchip.com/forums/m1200895.aspx,but folks over here appear more attuned to this sort of thing...)I've written and debugged a project using MPLAB.X V6.0.0 + Microchip Harmony 3. The resulting .text section seemed somewhat large, so I looked at the .map file and noticed a bunch of unexpected library functions -- notably _printf_float -- were included. (As far as I can tell, _printf_float drags in a boatload of other functions, like __pow5mult, _Balloc, _Bfree, etc).I don't see any place in my code that I'm actually printing floating point number. Nor did I see any options in the Project => Properties => Conf => XC32 => xc32-ld or other places that would give me a trimmed-down version of printf(). (This was something that Microchip Studio offered...)So: is there a way to either:find what code I've written that triggers the loading of _printf_float, orset some options that forces a trimmed-down library?

author: westfw
author_rank: Super Contributor
timestamp: March 04, 2022, 03:22:00 am
content: FWIW, The example project here:https://microchipdeveloper.com/harmony3:same54-getting-started-training-modulealso ends up including the float printf functions, and I don't see it using them either. (I checked through the whole disassembly for calls to printf-like functions. There weren't any.)XC32 for MIPS PIC32 has a "-msmart-io" option that is supposed to intelligently choose appropriate printf() libraries, but it doesn't seem to have any effect on ARM chips.I don't see any options for specifying which system libraries are used. There is an option in the XC32 "general" panel to "exclude floating point code", but it only lists "not applicable" for SAME54.It's sucking in .../pic32c/lib/thumb/v7e-m+fp/hard/libc_nano.a - perhaps the assumption is that any CPU with hardware floating point would always use the floating point printf... (not that single precision floating point HW helps much when C wants everything to be "double"...)

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 02, 2022, 02:31:33 am
content: Late, but try using iprintf instead printf, might remove the extra float support.
Alternative to VxWorks - Page 1
Forum section: electronics / general

author: KSP
author_rank: Regular Contributor
timestamp: May 13, 2022, 07:40:19 am
content: Hi All,I'm looking for a free (preferably open source) alternative for Wind River VxWorks RTOS. I have a handful of devices with available VxWorks drivers, so ideally something with a compatibility layer would be perfect. I found Xenomai, which has mentions of 'VxWorks Emulator' in the documentation, but info seems sparsehttps://xenomai.org/documentation/xenomai-3/html/xeno3prm/group__vxworks.html#detailsDoes anyone have any experience with Xenomai or any alternatives?

author: TomS_
author_rank: Frequent Contributor
timestamp: May 25, 2022, 05:06:00 pm
content: If the drivers arent too much effort to recreate, Im quite fond of FreeRTOS and have been using it in recent projects. Its simple and light weight, and available for many different architectures.I doubt it has any kind of VxWorks compatability though.

author: mblinov
author_rank: Contributor
timestamp: May 25, 2022, 11:54:39 pm
content: For some reason, I always had the impression that VxWorks' direct competitor/counterpart in the open source space was RTEMS. It seems to be used by the same type of sectors too (Robotics, space stuff, etc.)A lot of Zynq FPGA users judging from the mailing list, plus SPARC.

author: DiTBho
author_rank: Super Contributor
timestamp: May 26, 2022, 10:15:43 am
content: RTEMS is more complex compared to FreeRTOSPersonally, I like uc/OS v2 or the new v3.

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 26, 2022, 07:02:13 pm
content: Quote from: DiTBho on May 26, 2022, 10:15:43 amUh yeah, of course. But the OP mentioned VxWorks. FreeRTOS as an alternative to VxWorks? Really? Sure that would all depend on what you do with VxWorks. But it's a bit like apples and oranges.

author: DiTBho
author_rank: Super Contributor
timestamp: May 26, 2022, 11:10:21 pm
content: Quote from: SiliconWizard on May 26, 2022, 07:02:13 pmThe point behind my answer was: you can reconsider what you are doing and switch from VxWorks, which has no OpenSource alternative, to something simpler, with inexpensive documentation, released as OpenSource and with public forums.I think this was the point behind FreeRTOS's suggestion.

author: DiTBho
author_rank: Super Contributor
timestamp: May 26, 2022, 11:27:24 pm
content: I mean, I don't consider RTems an alternative to VxWorks and I find it quite a mess.
USB OTG/gadget on Atomic Pi - Page 1
Forum section: electronics / general

author: NiHaoMike
author_rank: Super Contributor
timestamp: May 23, 2022, 02:37:56 am
content: Has anyone figured out how to get the USB 3.0 port on the Atomic Pi to operate in gadget/device mode?I see the xDCI controller in lspci and that the dwc3_pci module is already connected to it.I tried the directions on this page:https://unix.stackexchange.com/questions/638148/use-dwc3-module-to-put-usb-c-port-in-host-modeBut dwc3 already appears to be in device mode.The Atomic Pi schematic shows that the USB 3.0 port is port 0 on the chip which is the one that's supposed to be USB OTG according to the datasheet. My guess is because the OTG ID pin is grounded on the board, it has an internal mux switched to the xHCI controller. I'm not sure if it would be practical to rewire the ID pin, but shouldn't it be possible to override that from software and not have to modify the board to switch it to device mode? I'm using Xubuntu 22.04.The use case is the board is going inside a smart 7.1 audio amplifier and the USB is one way to connect it to a PC or other device that supports audio over USB. I initially thought about using a Raspberry Pi Zero for that purpose but it would be nice having it all done by the Atomic Pi to keep things simple. (The HDMI connects to a DSP board that converts the HDMI audio into signals to drive several TI amplifier modules.)
What is the difference between build and compile - Page 1
Forum section: electronics / general

author: BlogRahul
author_rank: Regular Contributor
timestamp: August 11, 2022, 10:14:35 am
content: As I know compiler convert source code into executable codeWhat is the difference between build and compile in context of this pagehttps://www.raspberrypi.com/documentation/computers/linux_kernel.html?

author: tggzzz
author_rank: Super Contributor
timestamp: August 11, 2022, 10:27:54 am
content: Gurgle is your friend.Do you have a more specific question?

author: PeterG
author_rank: Frequent Contributor
timestamp: August 11, 2022, 10:37:08 am
content: This is the best explanation i have found."Compiling is the act of turning source code into object code.Linking is the act of combining object code with libraries into a raw executable.Building is the sequence composed of compiling and linking, with possibly other tasks such as installer creation."Source:-https://stackoverflow.com/questions/2650168/building-vs-compiling-java#:~:text=Build%20is%20a%20compiled%20version,the%20program%20can%20be%20executed.

author: gnif
author_rank: Unknown
timestamp: August 11, 2022, 10:37:54 am
content: Quote from: BlogRahul on August 11, 2022, 10:14:35 amWhile the RPi is a Microcontroller, you're asking a general operating system/programming question that is not microcontroller specific.Locking thread, if you still want to ask this, please open it under an appropriate topic inhttps://www.eevblog.com/forum/general-computing/
Any way to temporarily suppress all radio on Pi Zero (to lower interference)? - Page 1
Forum section: electronics / general

author: Tamiore
author_rank: Contributor
timestamp: September 12, 2022, 12:38:59 am
content: Hi everyone,Long story short: Raspberry Pi Zero is being used to run a secondary camera on a drone.After boot-up I SSH into the board (via wi-fi the board itself generates), do some setup and checkup, and get the camera running (recording video).At this point I want tocompletely suppressall radio signals from the board, as they create noticeable interference for the drone uplink (hardly surprising, as there isn't any space onboard to separate the two boards by more than a few centimeters).Any ideas what command (or script) would be best to temporarily suppress all radio (namely wifi and Bluetooth) until the next boot-up?

author: eutectique
author_rank: Frequent Contributor
timestamp: September 14, 2022, 12:30:03 pm
content: Say something likeCode:ip link set dev wlan0 downorCode:ifconfig wlan0 down

author: alm
author_rank: Super Contributor
timestamp: September 14, 2022, 01:18:43 pm
content: Try rfkill as described here:https://pimylifeup.com/raspberry-pi-disable-wifi/
any *cheap* miniPCIe-quad-serial? - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: March 17, 2022, 01:48:20 pm
content: For a crazy project I need two miniPCIe-quad-serial modules with- RS232 interface- FIFO >=64 byte- >= 200Kbit/s per line- asynchronous full duplex- Linux kernel compatibility with UART { 16C450, 16C550, 16C650, ... }- not too long form factor, say with the same form factor of a miniPCIe wifi moduleIsn't there anything cheaper? say 30 Euro/module?edit:yup, I am going to play with eight serial lines. Too long story, crazy project, I know, I know

author: spostma
author_rank: Regular Contributor
timestamp: March 18, 2022, 06:03:01 pm
content: maybe you can use a networked 8x serial port server like this one:https://hackaday.com/2022/03/16/eight-rs232-ports-one-ethernet-port/

author: DiTBho
author_rank: Super Contributor
timestamp: March 18, 2022, 06:53:50 pm
content: Quote from: spostma on March 18, 2022, 06:03:01 pmIt's interesting, but I need the two miniPCIe cards connected to SBC.

author: KaneTW
author_rank: Frequent Contributor
timestamp: March 18, 2022, 07:20:20 pm
content: 60EUR/module seems very reasonable for something that needs an FPGA.

author: DiTBho
author_rank: Super Contributor
timestamp: March 19, 2022, 05:11:55 am
content: Quote from: KaneTW on March 18, 2022, 07:20:20 pmWhich FPGA? maybe, you mean those modules have an FPGA on the B side of the PCB ... I haven't checked what they use. I know the PCI-e one chip solution OXFORD OXPCIe954 uses a big ASIC chip and provides four 4 inexpedient serial 16C950 channels. It's is more expensive, 76.85 UKP + 10.92 UKP postage from United Kingdom.Years ago I bought a couple of "miniPCI" (parallel bus) modules because they were 60% off. They work fine on an embedded MIPS router, but they have some quirks.

author: DiTBho
author_rank: Super Contributor
timestamp: March 19, 2022, 05:38:51 pm
content: Never mind, 5 minutes ago I found a lot of second hand stuff, which includes two miniPCIe quad serial for 70 euro shipped and I bought it.I am going to sell my old equipment to increase the budget for this project
creating a datalogger with a rasperry pi - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: March 09, 2022, 08:22:11 am
content: We have an application where we will receive data on a serial port and want to put it on screen as a graph. We also want to store the data to be outputted as a PDF file that includes data about the log being taken that has already been entered. What is the best approach to this? The PDF requirement rather takes it away from embedded and into computer land.We don't mind using commercial software as it is pointless spending more time learning the quirks of a particular system/ide that actually creating the GUI and functionality.

author: bli22ard
author_rank: Newbie
timestamp: March 09, 2022, 08:30:57 am
content: First generate an html file from the data, adjust it to a satisfactory appearance, and use python pdfkit to convert html to pdf

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: March 09, 2022, 08:43:29 am
content: gnuplot can take your logs and draw a graph as an image file.World is your oyster.

author: Simon
author_rank: Unknown
timestamp: March 09, 2022, 09:14:14 am
content: It's showing a live plot. Data is received and plotted live. It is also saved and exported when asked as a PDF. I suppose you update the log file then redraw the file on screen.

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: March 09, 2022, 10:28:48 am
content: Quote from: Simon on March 09, 2022, 09:14:14 amOne use case I have is my solar controller (Victron) that spews out serial data every second and I can, if I want, prod the plotter to update every 20s. The image viewer picks up that the file has changed and displays the latest version.Absolutely horrible solution on the solid state media, I had intended on coming back to it and inserting a memory buffer but here were are 3 years later.And it's not a Pi, it's a cheap NUC. But misery loves company!
does anyone still use Yaboot? - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: March 11, 2022, 12:46:02 pm
content: it's broken on PowerPC-embedded (instead of u-boot), IBM POWER{8,9,10}, and PowerPC-ieee1275.Grub/Grub2 seems the alternative. Umm, but not for PowerPC-embedded.Does anyone still use Yaboot?if so, drop me a line. Thanks
Help Identifying ARM SOC? - Page 1
Forum section: electronics / general

author: lavachemist
author_rank: Newbie
timestamp: August 03, 2021, 04:51:05 pm
content: Long time EEVblog forum lurker, but new user here...I'm working on some hardware hacking projects with DJI FPV hardware. We are poking at the DJI/Caddx air units. The common perception is that DJI developed their own proprietary SOC for these devices. According to uname, it is an A7L, which corresponds to an Ambarella chip family, but the ballout looks different to anything I can find online. I'm curious if anyone can ID what this SOC might be, based on the BGA arrangement.It's probably a shot in the dark, but I figured if anyone might be able to they would be on here.

author: biot
author_rank: Regular Contributor
timestamp: August 12, 2021, 09:24:00 pm
content: Quote from: lavachemist on August 03, 2021, 04:51:05 pmThat implies it's running Linux, and you have a shell on it? If so, please post the boot log.

author: tmbinc
author_rank: Frequent Contributor
timestamp: March 03, 2022, 12:06:55 am
content: FYI (I know this is an old thread but I can't leave it un-answered),the DJI P1 is indeed a custom DJI SoC. It's basically a "clone" of the LC1860 DSP architecture (2x CEVA XC4500 + 1x CEVA-X1643), with two independent Cortex-A7 CPUs, one running the RF stack and one running Linux, with added video capture, encoding, decoding and output capabilities.root@pigeon_wm150_tiny:/ # uname -aLinux localhost 4.9.130-645274-g4a83e11 #1 SMP PREEMPT Tue Jun 23 04:23:20 CST 2020 armv7lroot@pigeon_wm150_tiny:/ # cat /proc/cpuinfoprocessor : 0model name : ARMv7 Processor rev 5 (v7l)BogoMIPS : 8.00Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrmCPU implementer : 0x41CPU architecture: 7CPU variant : 0x0CPU part : 0xc07CPU revision : 5Hardware : PIGEONRevision : 0000Serial : 0000000000000000Bootlog (dmesg) attached.
Thecus N4520 round 2, getting something modern to boot.... - Page 1
Forum section: electronics / general

author: Lockon Stratos
author_rank: Regular Contributor
timestamp: April 08, 2021, 08:58:11 am
content: Hi all!Continuing the struggle, got into this darn thing. Turns out the connector is really just a serial connection, all i needed is a pin-header -> db9 connector cable. Here is the bootlog with the original FW:https://www.dropbox.com/s/osy83zoof326ovn/factory-fw.txt?dl=0So the cpu as i mentioned is intel atom, 32 bit. I thought lets start with something simple and lightweight so debian it is. But it fails right after the board switches to the boot loader (no option to boot from usb):https://www.dropbox.com/s/0qh0uilr64vcybl/debian-i386-iso-on-ssd.txt?dl=0Code:Unhandled real mode interrupt!Vector: 0x18CS:IP = 0000:074bSS:ESP = 0000:00007be8EAX = 00000e0a EBX = 00000007 ECX = 00000004 EDX = 00000000ESI = 00000739 EDI = 00000800 EBP = 00000000 FLG = 00000246DS = 0000 ES = 0000 FS = 0000 GS = 0000Stack:00007be8: 00000000 00000001 00000001 0000000000007bf8: 00000000 00000000 00085245 9090000000007c08: 00000000 00000000 00000000 0000000000007c18: 00000000 00000000 8efaed33 7c00bcd5Could someone help me decode the error at the end? I wasnt able to find anything useful with google.....Thanks in advance!/EDIT2nd link fixed, sorry about that...

author: A_I
author_rank: Newbie
timestamp: November 26, 2022, 05:11:42 pm
content: Greetings.I understand that you dealt with this problem for a long time, I have similar problems. Maybe you were able to move forward in a solution?
How to change icons size in Pi File Explorer - Page 1
Forum section: electronics / general

author: Bud
author_rank: Super Contributor
timestamp: March 01, 2022, 04:51:09 am
content: Anyone knows how to make smaller the icons in the menu bar in Ras Pi file explorer ? I am running it at 2560x1440 resolution and even with the resolution that high the icons are ridiculously large. Settings in "Edit -> Preferences -> Display" menu were of no help.
Yocto questions: Custom Cyclone V Board with HPS - Page 1
Forum section: electronics / general

author: betocool
author_rank: Regular Contributor
timestamp: March 03, 2022, 02:58:40 pm
content: Hi all,I've been looking into Yocto for the last few weeks, that's the extent of my knowledge. I've been reading about bitbake and recipes and device tree sources. I managed to set up a CROPS system (WSL2) where I was able to compile through the core-minimal project. I also cloned the meta-intel-fpga repository with recipes for some of their boards.The thing is this, I have a custom made board on which for the time being I'd like to just interface the UART and the SD interfaces. I know the board works correctly, as the developer provided us with a buildroot image. Unfortunately our previous project was based on Yocto and the colleague managing that left.I'm stuck as to where to go from here. I can generate a new .dts file, using some of the other boards as a base, editing out what I don't need. I just don't know how to tell bitbake that this is a new DTS to create a new DTB.Other question, once the image is generated, how does the system know which hardware is the correct one, if when the Cyclone-V image is generated the config file has a bunch of DTS's which are all different?Any pointers in the right direction are welcome. Happy to clarify things if I'm a bit vague.Cheers,Alberto
MMBasic on RPI Zero W - alone or needs OS? - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: December 31, 2021, 03:55:19 am
content: Just now I read that there is a version of MMBasic for RPI Zero W. Does this run on Raspbian or similar Linux or is there a version that runs directly on the hardware like the original versions? I had Raspbian running but it is just so slow and so completely overkill. I just want something that boots in a few moments and runs MMBasic and nothing else. Is there a version of MMBasic for RPI Zero W that runs on bare metal, so to speak?

author: hli
author_rank: Frequent Contributor
timestamp: December 31, 2021, 02:23:34 pm
content: According tohttps://www.thebackshed.com/forum/ViewTopic.php?TID=9487(which seems to be the main page for now) its just an executable that you run on the Pi. So it still needs an OS. Which also makes a lot of sense since otherwise quite a lof of interesting / required parts would need top be re-developed (e.g. display driver and networking).
NetBSD/PPC for emebedded, anyone? - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: November 29, 2021, 03:47:24 pm
content: I have been playing and - somewhat "supported" - a PPC card for 21 years, but with the 5.8 kernel they have dropped everything, so I am looking for alternatives and it looks like NetBSD v10 will support the PPC / 4xx branch.I have never played with NetBSD on an embedded SBC, I only installed it years ago in a old PowerMac (PPC604) but nothing serious.Now I'd like to checkout out a kernel, a rootfs, and a crosstools to build my own stuff.I will probably recycle things from my GNU/Linux tools and knowledge, but literately with NetBSD I am a beginner .Advice are welcome

author: x86guru
author_rank: Regular Contributor
timestamp: December 08, 2021, 01:26:21 am
content: Are you saying they dropped PowerPC 40x/44x in Linux kernel 5.8? It's definitely still there in 5.8..Edit: Nevermind, sorry, I see it's been partially removed but 4xx platform support is still there. They removed the 4xx MMU/TLB support.

author: uridium
author_rank: Newbie
timestamp: December 22, 2021, 01:56:27 am
content: Yep. This has been the problem for the Amiga people that have any of the SAM systems (SAM440/460/variants). Linux stopped supporting the Book-E gear. NetBSD 'moooostly' has a fair bit of it. Have a talk to Fank Wiley.Some chatter here:https://mail-index.netbsd.org/port-powerpc/2017/03/14/msg003544.htmlI have a sam460ex sitting in the corner for a few years so I'm a little curious to see it be usable again.

author: DiTBho
author_rank: Super Contributor
timestamp: December 22, 2021, 01:30:56 pm
content: Quote from: uridium on December 22, 2021, 01:56:27 amI am developing a 4xx based x11 terminal.Kernels 4.11 to 5.7.19 are ok and work fine.Will it be a problem in the future when rootfs is glibc based? it will require features offered only by future kernels and not by 5.7.19.This problem can be somehow *workarounded* with uclibc-based rootfs, but X11 doesn't work well with uclibc and requires functionalities offered by glibc-based or MUSL-based rootfs.Compromises ...Anyway, I am new with NetBSD development, I am learning how to manage the kernel, and its toolchain. I hope I will integrate it into my builder for the new year.
Raspberry Pi: Supply chain, shortages, and our first-ever price increase - Page 1
Forum section: electronics / general

author: Karel
author_rank: Super Contributor
timestamp: October 20, 2021, 01:34:57 pm
content: 2GB Raspberry Pi 4 temporarily moves back to $451GB Raspberry Pi 4 makes a comebackThis is all temporaryhttps://www.raspberrypi.com/news/supply-chain-shortages-and-our-first-ever-price-increase/

author: Doctorandus_P
author_rank: Super Contributor
timestamp: December 11, 2021, 11:39:25 am
content: What do you mean with "first ever price increase"?I thought they already did that twice before the first was ever sold.

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: December 11, 2021, 12:31:52 pm
content: Quote from: Doctorandus_P on December 11, 2021, 11:39:25 amI was wondering that also. In my part of the world on a few previous occasions the Pi has not been available to me for that famous low price + exchange rate. Always suspected the pricing was a little bit of
Sipeed Lichee RV - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 15, 2022, 06:35:04 pm
content: Available there:https://www.seeedstudio.com/lichee-RV-Nezha-CM-Allwinner-D1-SoC-1-14-Inch-SPI-LCD-p-5254.htmlCan be found on Aliexpress, along with a small base board, for about $30.https://linux-sunxi.org/D1Not as powerful as the RPi Zero 2, for instance, and more expensive. But if you wanna play with a RV64 SoC running Linux, this would look like a fun alternative to the pretty expensive (which admittedly, is a whole other territory) SiFive boards. I do not know of any other, easily available RV64-based board able to run Linux, apart from this and the SiFive ones. If anyone does...
Comparing the Heterogeneous/Asymmetric MPU options - Page 1
Forum section: electronics / general

author: tmadness
author_rank: Regular Contributor
timestamp: December 17, 2021, 07:09:04 pm
content: I have been scoping the market for Heterogeneous/Asymmetric MPUs. My workload is real-time enough to justify a pretty fast separate MCU, however due to large amounts of data, and interfacing reasons I need a high level OS. The "traditional" option is to put a FPGA and a standard MPU, however, my expertise lies more in the MCU side of stuff and the real time aspects of my project don't need anything specially from the FPGA.My solution, therefore, is to go for a integrated, "low development cost" alternative in the form of a MPU with a Heterogeneous/Asymmetric architecture (cortex A + cortex M typically). There seem to be various options available from all the big players, but two seem to really peek my interest: the TI Sitara AM572X (AKA beagle bone AI) and NXP IMX 8 Plus. There are advantages on both sides, eg TI has more real-time cores, NXP has more recent powerful cortex A cores etc.But I'd like to know how quality the development ecosystem for these processors are.How is the documentation? I have worked on the NXP RT MCUs and the documentation is decent, although some of their peripherals get really complicated.How similar or dissimilar are the peripherals on the NXP IMX 8's cortex M7 compared to the IMX RT series?How well have the data sharing / communications interfaces been implemented between the cores? I plan on using RPMsg and shared memory how has your experience been with these use cases?Anything else I should know or care about?
Anyone have any of the old BSLs from spectrum digital - Page 1
Forum section: electronics / general

author: nicklinn
author_rank: Contributor
timestamp: October 28, 2021, 01:34:48 am
content: Early this year they closed down and while leaving their data sheets up took down everything else.So anyway was looking to build an Archive of the BSLs CLPD files and everything else that might now be available.But in particular if you have EVMC6474_BSL_RevB.zip I will owe you a beer/coffee.-Nick
Delock 91660 (sATA-to-CF) has quirks and issue - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: October 17, 2021, 05:15:18 pm
content: Two weeks ago I bought four Delock91660units from a local store by they arrived yesterday.Today I found they all have quirks and issue with sATA controllers- with VIA: doesn't work- with SIL: doesn't work- with Manathan USB-to-sATA: doesn't work- with some ARM built-in sATA link: it works perfectlyWhat do I mean with "it doesn't work"?I mean this:Code:Buffer I/O error on dev sdc, logical block 0, async page readsd 7:0:0:0:  tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSEsd 7:0:0:0:  tag#0 Sense Key : Illegal Request sd 7:0:0:0:  tag#0 Add. Sense: Logical block address out of rangesd 7:0:0:0:  tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00blk_update_request: critical target error, dev sdc, sector 0Buffer I/O error on dev sdc, logical block 0, async page readsd 7:0:0:0:  tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSEsd 7:0:0:0:  tag#0 Sense Key : Illegal Request sd 7:0:0:0:  tag#0 Add. Sense: Logical block address out of rangesd 7:0:0:0:  tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00blk_update_request: critical target error, dev sdc, sector 0Buffer I/O error on dev sdc, logical block 0, async page readsd 7:0:0:0:  tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSEsd 7:0:0:0:  tag#0 Sense Key : Illegal Request sd 7:0:0:0:  tag#0 Add. Sense: Logical block address out of rangesd 7:0:0:0:  tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00blk_update_request: critical target error, dev sdc, sector 0Buffer I/O error on dev sdc, logical block 0, async page readThere is no particular note in the manual, the item is described as a "transparent" adapterQuote... but it seems it has quirks with some sATA controllers, not yet clear what and why.I don't think I'll be returning my four drives, I'll investigate why they don't work with PC-sATA controllers, luckily I need to adapt compact flash cards from digital cameras to built-in ARM cards and for this task it just works, however I don't recommend this drive for no future purchases.

author: DiTBho
author_rank: Super Contributor
timestamp: October 17, 2021, 05:16:46 pm
content: Tested with Linux k4.4.*, k5.15.*

author: Nominal Animal
author_rank: Super Contributor
timestamp: October 17, 2021, 11:00:10 pm
content: Which JMicron JM203xx series chip does it use?CompactFlash is based on old parallel ATA (IDE) interface, so the chip is basically a SATA-PATA bridge chip. If it is JM20330, it only supports SATA 1.0a, which could explain the problems... Most PC SATA chipsets are SATA 3.x, and although SATA is supposed to be downwards compatible, I don't think any of them have actually tested to be.Looking at theCompactFlash Wikipedia page, NCQ (Native Command Queuing) is likely the issue. Could you check if settinglibata.force=noncqin the kernel command line (in your bootloader) fixes the issue?
Blank upload from PIC16F15376 Curiosity Nano - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: October 06, 2021, 01:45:22 pm
content: I have tried to upload the memory from the nano board and get only zeros for all SFRs; config bits upload ok. So does the prog memory, I think - it's all in hex!Any ideas why this would be?Thanks.[using Win8.1Pro (32bit), MPLAB X IDE v5.25]

author: JPortici
author_rank: Super Contributor
timestamp: October 06, 2021, 04:52:27 pm
content: mm.. what do you want to do exactly? I don't think you can read the ram content from the device, as you can read the program memory once it's programmed

author: PerranOak
author_rank: Frequent Contributor
timestamp: October 08, 2021, 04:52:56 pm
content: I just wanted to see if TRIS, ANSEL and so on were as I'd expected.I thought I could just read them back into MPLAB from the running MCU but apparently you need to be in debug mode.

author: JPortici
author_rank: Super Contributor
timestamp: October 09, 2021, 03:38:14 pm
content: Yup, or you can dump the content over UART or something like that
Use ST-Link to programm GD32 - Page 1
Forum section: electronics / general

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 16, 2021, 09:21:27 am
content: HiDoes anybody know if there is any difference between the ST-Link of STM and the GD-Link of GigaDevice?Do you think I can use my ST-Link to program a GD32e230x for example?Thank youSimon

author: AndrewBCN
author_rank: Frequent Contributor
timestamp: September 18, 2021, 06:08:37 am
content: Wrong section, try under "Microcontrollers".

author: Saimoun
author_rank: Frequent Contributor
timestamp: September 18, 2021, 08:37:56 am
content: Oooh I did not see it - thanks!
Having trouble getting your mitts on that Raspberry Pi? You aren't alone - Page 1
Forum section: electronics / general

author: Karel
author_rank: Super Contributor
timestamp: August 20, 2021, 11:42:10 am
content: The Register talks to Eben Upton about supply, demand, and hand-to-hand combat until 2023https://www.theregister.com/2021/08/20/raspberry_pi_supply_eben_upton_interview/

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 20, 2021, 06:21:35 pm
content: Currently, the Pi Hut has the RPi 4 in 4GB and 8GB, the Pi Pico, the RPi 400...The CM4 is completely sold out though in all configurations.

author: cfbsoftware
author_rank: Regular Contributor
timestamp: August 20, 2021, 11:33:18 pm
content: Toyota also: "the semiconductor shortage finally strikes the world’s biggest car maker"https://www.drive.com.au/news/toyota-hits-the-panic-button-delays-expected-as-semiconductor-shortage-strikes/

author: Smokey
author_rank: Super Contributor
timestamp: October 02, 2021, 03:26:48 am
content: What's the closest mainstream (not sketchy alibaba only) equivalent to the CM4 module?

author: tmadness
author_rank: Regular Contributor
timestamp: October 06, 2021, 07:38:45 pm
content: I've seen SOMs for NXP's IMX 8/6 line also TI 's Sitara 3x, 5x and 6x lines. low cost options using the rockchip stuff eg rock pi.Here are a few options from "big" MPU makers:https://www.mouser.com/Embedded-Solutions/Computing/System-On-Modules-SOM/_/N-aez5pZ1yzvvqx?P=1yvp4qwZ1y9hq6oZ1yvp3tbZ1yvp4jv
Using this "CJMCU FT232H USB to JTAG UART FIFO SPI I2C" dev board  - Page 1
Forum section: electronics / general

author: cdev
author_rank: Super Contributor
timestamp: September 01, 2021, 01:23:53 pm
content: I recently picked up this cute purple "CJMCU FT232H USB to JTAG UART FIFO SPI I2C High Speed Multifunction FT232HSerial Port Module" from aliexpress, which looks interesting and I am just starting out with it. In addition to high speed USB-to UART it can also speak i2c, SPI and there seems to also be a slightly cheaper version of it that I can ses as also being useful. For example it offers the possibility of making USB more useful for GPS timing.Anyway I am putting here the links that Ive have found on the board and I'd like to get a thread going so I can learn how to best use it.I plan to use it as a means of testing misc. embedded i2c and SPI compatible components and speaking to small boards.An earlier thread here seems to have had some info on it from @IanMI don't want to destroy it by making some stupid mistake.I like how it has its own regulated power to run a small external device with.Here is a starting point.https://ftdichip.com/products/ft232hq/(the FT232-HQ datasheet)Github has a design for an add on board for it. There is also a collection of other links on the FT232H and this board for it. (which I will copy and paste below)https://github.com/linker3000/shukran(collection of data and add on board for it)Name Supplier RefFT232H breakout board Adafruithttps://learn.adafruit.com/adafruit-ft232h-breakout/overviewThe Shikra Xipiterhttps://int3.cc/products/the-shikraFoccacia Luca Bongiorni (WHID Injector)https://github.com/whid-injector/Focaccia-BoardFT2232H USB 2.0 Hi-Speed breakout board Seeed Studioshttps://www.seeedstudio.com/FT2232H-USB-2-0-Hi-Speed-breakout-board-p-737.htmlFTDI UM232H-B breakout board FTDIhttps://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UM232H-B.pdfFT232H breakout board CJMCUVarious suppliers including Aliexpress, ebay, etc.

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 01, 2021, 05:40:57 pm
content: I have used a few FT232H breakout boards, and the best one IMO is the Adafruit one. The new one has a USB-C connector too, which is handy.
Code::Blocks Autocomplete - Page 1
Forum section: electronics / general

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 15, 2021, 04:00:24 pm
content: I updated from CB 17 to 20.03 and now autocomplete DOES NOT SHOW doc comments. I must be daft because I can't see any setting to control this, and no one's talking about it. Help?Tim

author: HwAoRrDk
author_rank: Super Contributor
timestamp: September 16, 2021, 05:07:07 pm
content: I see a 'Parse documentation' setting in Settings -> Editor -> Code completion section -> Documentation tab.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: September 16, 2021, 09:33:23 pm
content: That one's on (and I tried toggling it too).Tim
This is an armclang bug, isn't it? [It wasn't] - Page 1
Forum section: electronics / general

author: emece67
author_rank: Frequent Contributor
timestamp: August 27, 2021, 01:59:51 pm
content: .

author: ataradov
author_rank: Super Contributor
timestamp: August 27, 2021, 04:39:38 pm
content: I'd say this is a bug. I see nothing wrong with this code.Does it do the same if instead of a literal parameter you create a structure on the stack and pass that?

author: emece67
author_rank: Frequent Contributor
timestamp: August 27, 2021, 07:13:19 pm
content: .

author: ataradov
author_rank: Super Contributor
timestamp: August 27, 2021, 08:19:14 pm
content: What MCU/core you are targeting?According to thishttps://www.keil.com/support/man/docs/armclang_ref/armclang_ref_sam1444138667173.htm:QuoteSo if you are targeting Cortex-M4/M7, then it will default to unaligned access, so it has to be enabled in the core. Or pass -mno-unaligned-access flag.

author: emece67
author_rank: Frequent Contributor
timestamp: August 27, 2021, 10:32:45 pm
content: .
u-boot 2017: can you get rid of fdt? - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: August 25, 2021, 10:40:48 pm
content: u-boot 2017 has a serious problem with fdt, and has dependencies with a host library, specifically it conflicts with/usr/include/fdt.h/usr/include/libfdt_env.h/usr/include/libfdt.hit "worked" until 2018 with u-boot 2017, but as soon as you update the "dtc" package (1) host files conflict with local definitions. U-boot is written this way, and it's not exactly easy to solve it.Some improvements come with recent releases, but to make things ever worse, Denx has discontinued support for all the PowerPC chips I need, and I cannot move to anything more updated: I have to stay with u-boot 2017, it's the last stop.I have already moved to u-boot-2021/ARM for new projects, but I have to support some old PPC projects. I have a backup of what I did 5 years ago, and I still have a VM ready to run, but I'd like to move things to a current 2021 development baseline, if it doesn't take too much time.I wonder: can I entirely remove the fdt support? For sure I don't need to *pass* any DTB to the kernel since I have already added special to include a copy of of the device tree blob.The kernel is already OK, and happy with that, so literally all the files related to the "flat device tree" are a waste of time and space for the little flash that I have, that's why I'd like to rid off. Unfortunately there is no option in the .config to avoid to compile them.You have to massively hack the code. Which is not unusual with u-boot, but getting rid of fdt looks more challenging.Anyone has already tried to rid off fdt? In case, let me know(1) "dtc" is a tool required to build device tree blobs; the package description is "Open Firmware device tree compiler", seehereandhere
Canonical and DFI launch the first Ubuntu certified AMD-based "Industrial Pi" - Page 1
Forum section: electronics / general

author: Karel
author_rank: Super Contributor
timestamp: August 19, 2021, 03:41:27 pm
content: Canonical and DFI announce that the GHF51 and EC90A-GH,have been certified, based on the latest AMD-based platform. Both offer improved performance, a smaller footprint,and full access to open-source software with Ubuntu and Ubuntu Core. These are part of the first wave of productsthat passed the Ubuntu IoT hardware certification.https://ubuntu.com//blog/canonical-and-dfi-launch-the-first-ubuntu-certified-amd-based-industrial-pihttps://www.dfi.com/product/index/1455

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 19, 2021, 05:41:11 pm
content: What does "Ubuntu-certified" entail though?