hybridfree/eevblog-posts huggingface dataset:
Strange GDB Behavior on Cortex-M4 - Page 1
Forum section: electronics / general

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 31, 2016, 05:19:04 am
content: I was debugging some Cortex-M4 assembly code tonight when I noticed that my code would run fine when I single-stepped it using GDB, but crashed with a Usage Fault when I just let it run.I traced the usage faults down to some "BX r0" instructions. I had forgotten to set bit 0 (the Thumb bit) in r0, and the branch caused a usage fault for trying to change modes to "ARM" mode, which Cortex-M MCUs don't support. After I made sure all instances of "BX r0" followed code to set the Thumb bit, my code ran fine.The question is: why did it run at all when single-stepping? Why didn't the first "BX r0" it executed when r0 bit 0 was set to 0 cause a usage fault?

author: mubes
author_rank: Regular Contributor
timestamp: August 31, 2016, 03:26:38 pm
content: Running in RAM or Flash? GDB, by default, inserts soft breakpoints for RAM based code and may be giving you some special love when it finds a BX with bit 0 clear....that might be a red herring but in general there's nothing that says that GDB might not be processing the BX internally and setting bit0...I think it needs to perform _some_ processing of the BX destination to know where to put the next BKPT and it's quite possible it doesn't actually *perform* the BX, just updates LR etc; Its source code perusal time if that kind of thing keeps you awake at night :-) Let us know what you find though, 'cos that is the kind of knowledge its useful to keep in your back pocket.DAVE

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 31, 2016, 03:56:01 pm
content: Quote from: mubes on August 31, 2016, 03:26:38 pmCode is running from Flash. I don't know why GDB does this, but it's a bad thing because it can mask errors in code that it shouldn't mask. If code is incorrect and will generate a fault, then I want to know about it. I don't want GDB "fixing" it for me.

author: mubes
author_rank: Regular Contributor
timestamp: August 31, 2016, 05:55:04 pm
content: Yup. Not nessesarily defending it...but I suspect it's just updating LR rather than executing the BX. You have no idea how many times I've got burned by that bit0....
XC8 help - unexpected interaction of code + ADC - Page 1
Forum section: electronics / general

author: DTJ
author_rank: Super Contributor
timestamp: August 31, 2016, 07:34:40 am
content: p18f25k22 + XC8 on MPLABX + novice userI've got a situation where if I call a function it knobbles the operation of the ADC even though from what I can tell the function called has nothing to do with the ADC SFRs or port pin used by the ADC.It will read the ADC correctly first time through the loop. But the second (and subsequent) times through the loop the read ADC value will be zero.If I cut the code from the called function, LCD_char4(), and just stick it in-line the ADC read works ok and reads the ADC correctly each time through the loop. Why? Some depth of stack thing?The LCD functions work and correctly write to the LCD as intended.The called function is used to put 4 bits on PORTA twiddle some pins. The ADC pin read is on PORTBwhile (1) //do this forever{// read ADC & update LCDConvertADC(); // Start conversionwhile (BusyADC()); //wait while it converts...ReadADC(); //then read it - result will be in ADRESH & ADRESLADC_result = ADRESH*256 + ADRESL; //combine ADC result into one reg// LCD_char4("Z"); //write the character 'Z' to the LCD << FAILS ADC FAILS ON 2nd LOOP IF THIS FUNCTION IS CALLED//this is the code contained in LCD_char4() function<<WORKS OK IF THIS CODE IS COPIED FROM THE FUNTION AND PLACED INLINE AND FUNCTION NOT CALLEDRS_PIN = 1;RW_PIN = 0; //R/W=LOW : WriteLCD_Nibble(i >> 4); //Send upper 4 bitsLCD_Nibble(i); //Send lower 4 bits__delay_us(50); //must wait 50uS for slow LCD module//end of code in LCD_char4() function} // end of ADC read forever loop//this is the function calledvoid LCD_char4(char i) //write char data to lcd{RS_PIN = 1;RW_PIN = 0; //R/W=LOW : WriteLCD_Nibble(i >> 4); //Send upper 4 bits to LCDLCD_Nibble(i); //Send lower 4 bits to LCD__delay_us(50); //must wait 50uS for slow LCD}//and this is the nibble function called from the LCD_char4() function.void LCD_Nibble(unsigned char dat) {dat &= 0x0f; //clear top 4 bits of datLCD_DATA_PORT &= 0xf0; //clear lower 4 bits of port. interested only in DB7-DB4LCD_DATA_PORT |= dat; //or the two and store at portE_PIN = 1;Delay10TCYx(1); //enable pulse width >= 300nsE_PIN = 0; //Clock enable: falling edge}

author: leeatljs
author_rank: Contributor
timestamp: August 31, 2016, 07:45:38 am
content: What is LCD_DATA_PORT defined as?

author: DTJ
author_rank: Super Contributor
timestamp: August 31, 2016, 07:53:16 am
content: Hi leeatljs,LCD data port is defined as:#define LCD_DATA_PORT LATA //PORTAMy ADC init is:OpenADC( ADC_FOSC_4 & ADC_RIGHT_JUST & ADC_2_TAD, ADC_CH9 & ADC_REF_VDD_VSS & ADC_INT_OFF, 1 );
Register Tinkering or Vendor Library for products - Page 1
Forum section: electronics / general

author: BlackwhIsp
author_rank: Newbie
timestamp: August 30, 2016, 07:19:53 am
content: Hey GuysI've not done much in micrcontroller development for the past five years, but have just decided to develope a prototype of a potential product.I've aquired one of those arm m0 development boards and looked at the (stm) HAL library which is at a very high abstraction level.So my question is, have any of you guys ever used any of these High level libraries for any products, beyound the proof of concept stage?When i did microcontroller work previously, it was register tinkering and our own libraries for each chip, so I'm not sure whether or not these vendor supplied libraries are just for Proof of concept type stuff?

author: AndyC_772
author_rank: Super Contributor
timestamp: August 30, 2016, 07:34:38 am
content: ST's HAL isn't useful, at all, IMHO.A genuinely useful vendor library provides at least one of two things:- compatibility between related (but different) components, to ease code portabilityand/or- a level of abstraction which allows useful objectives to be specified without having to delve into the underlying register mapST doesn't achieve this. Code written for one processor doesn't run without substantial modification on other parts. Worse still is that the parameters which have to be supplied to the HAL functions closely mirror the register map, so it's really just obfuscating the underlying hardware accesses. I'm afraid I don't agree with you that the HAL library is at a high abstraction level.Some parts can be useful. You'll need the per-device header files which define the register map, and you can extract these from the projects created by STM32 CubeMX. The auto-generated code to set up the CPU's clock source and PLLs might be useful, though I still elect to replace it with my own code.

author: amyk
author_rank: Super Contributor
timestamp: August 30, 2016, 10:39:41 am
content: I think the ST HAL is certainly at a high abstraction level because of all the indirections alone. Making everything an "object" is part of that. It just isn't ausefullevel of abstraction.

author: dannyf
author_rank: Super Contributor
timestamp: August 30, 2016, 10:54:33 am
content: This topic has been discussed extensively and opinions on it vary greatly.My solution is tobuse vendor libraries but only through s middle layer.This allows you to swap out vendor libraries for your own for example.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 30, 2016, 08:13:32 pm
content: Vendor libraries only if you need to deliver something next week. Otherwise write your own from scratch.
TI CC2541 no GATT communication - Page 1
Forum section: electronics / general

author: victus
author_rank: Newbie
timestamp: August 25, 2016, 02:04:13 am
content: I am working on a project with TI CC2541 MCU and I am having major issues with BLE communication with Android. I was wondering what Android app or Windows software can I use to read and write to GATT of CC2541 (I don't have CC dongle)? I have been trying with BLE SensorTag, Sensortag and BlueExplorer on Google Play. The first two seems to be capable of only reading it, while BlueExplorer outputs error each time I try to change any value.Would it be possible that the cause is any hardware error?Please kindly check the screenshots attached in zip archive here: dropboxusercontent.com/u/18516025/ble%20screeshots.zip

author: batteksystem
author_rank: Regular Contributor
timestamp: August 25, 2016, 03:37:42 am
content: This total depends on what firmware of Z-stack you had loaded into the MCU. Each GATT has a unique message number assigned ( I remember it is something like 4 hex, for example FFFE) only matched number will have proper response. The number from the android side and the number in the firmware must be consistent for a proper communication. I think there are lots more information if you read the Z-stack documentations.

author: victus
author_rank: Newbie
timestamp: August 28, 2016, 09:43:44 pm
content: But I am using Bluetooth, not Z-Stack...

author: victus
author_rank: Newbie
timestamp: August 30, 2016, 09:33:32 am
content: No one?

author: batteksystem
author_rank: Regular Contributor
timestamp: August 30, 2016, 11:00:58 am
content: Quote from: victus on August 28, 2016, 09:43:44 pmIt is called BLE-Stack, the look and feel is exactly the same, except the protocol of course.
Any experts with BLE protocols? - Page 1
Forum section: electronics / general

author: richardman
author_rank: Frequent Contributor
timestamp: September 03, 2016, 07:10:13 pm
content: Any experts with BLE protocols hanging around here? If so,please PM me?Thanks

author: alexanderbrevig
author_rank: Frequent Contributor
timestamp: September 03, 2016, 08:57:32 pm
content: Why not ask your question publicly so answers may benefit us all? I'm no expert but I've played around with Nordic nRF51 and 52 and the ble enabled psoc from cypress.The specification is actually quite good when you over the first somewhat steep learning curve.

author: richardman
author_rank: Frequent Contributor
timestamp: September 04, 2016, 07:03:33 am
content: The question is very specific but you are right, I can cast it to a form that may benefit other people. What I want is to send multiple set of data between a smartphone and an embedded system using BLE - currently using the ST BlueNRG but that detail does not matter.The data is bidirectional and varying in length. I know there's a bandwidth limitation with BLE and that each transaction is limited to just tens of bytes so I will have to break up the data into multiple chunks if necessary.What I want to confirm is that once I get the phone and the embedded device handshaking and bounded, then I can just use a set of UUID that the phone app and the embedded code agree on, and then send the data between them, using my own protocol.

author: janekm
author_rank: Unknown
timestamp: September 04, 2016, 07:24:51 am
content: Quote from: richardman on September 04, 2016, 07:03:33 amIf I understand what you mean, then yes... BLE uses a system of Services & Characteristics to give structure to the data exchanged (to a point), but if you want you can just define a single service & characteristic and exchange the data over that, with your own internal format. BLE doesn't care what you actually transmit in each write to / notification from a characteristic. You can have a look at this "UART" service for an example:https://developer.mbed.org/teams/Bluetooth-Low-Energy/wiki/UART-access-over-BLE

author: richardman
author_rank: Frequent Contributor
timestamp: September 04, 2016, 07:31:44 am
content: Quote from: janekm on September 04, 2016, 07:24:51 amExactly what I hope to hear. THANKS
Suggestions/Guidance to learn to program SoCs(ZYNQ7 on a Zedboard) - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: August 22, 2016, 11:04:35 pm
content: Hi,I'm familiar with FPGAs and pretty good with Microcontrollers although I've never used an ARM processor before. I'm experimenting around with a Zedboard that has a zynq7 device and I'm looking for some help/guidance on how to go about learning the structure or design flow to making a program.I have been doing my own research and I understand how to configure the PS and PL and how to interconnect them through some existing IPs but I'm more so looking for some help on how to form an interconnect between the PS and PL when I make my own hardware circuitry in the PL.Any help on suggested readings that would explain SoCs would be great!Thanks

author: tggzzz
author_rank: Super Contributor
timestamp: August 22, 2016, 11:12:21 pm
content: You should be able to adapt the content ofhttps://forums.xilinx.com/t5/Xcell-Daily-Blog/Adam-Taylor-s-MicroZed-Chronicles-Part-144-Cracking-open-High/ba-p/716979http://svenand.blogdrive.com/archive/160.html

author: gauravmp
author_rank: Regular Contributor
timestamp: August 23, 2016, 11:19:17 pm
content: Thank you!

author: Kremmen
author_rank: Super Contributor
timestamp: September 01, 2016, 12:21:02 pm
content: Also this can help:http://www.zynqbook.com/
Latte Panda Windows 10~ Arduino board... anyone here experimenting with it ? - Page 1
Forum section: electronics / general

author: peteb2
author_rank: Regular Contributor
timestamp: July 02, 2016, 04:26:45 pm
content: I tripped over these (2G/32GB & 4G/64GB) Cheery Trail Quad-core units a week ago as I was looking for stuff on Arduino because programming is my biggest challenge. I suppose that's because I grew up within the era of machine language and then assembler and it just never seemed to gell...Here I need to add I have absolutely nothing to do with Latte Panda but when I saw for not too many USD$s I understand Latte Panda was a Kickstarter launch and is totally Chinese product. Because I could have a stand alone PC pre loaded (with Win 10) with a stand alone Arduino I thought why not, especially since the board is small enough it fits in your hand ... 88mm x 70mm and I won't be tying up my laptop...I also sprung for their 7" LCD and touch panel...So the board has Ethernet, 3 USBs, Bluetooth, WiFi and a HDMI plus the i/o for Arduino and the 7" LCD plus touch panel on flat flexi cable low profile lock connects...So far I have my 2G/32GB running and the Arduino Leonardo working but to make the thing practical I need to build a frame around it to let me plug stuff in and out and not wreck the LCD connects.I did a search here and see no mention of Latte Panda so I hope I am not filling up Dave's Server with useless twaddle on the thing when somewhere else there's a much more serious discussion being done. I must say though I am impressed with what little cost it was and all I need is some minutes to build a frame round mine and start teaching myself Arduino programming...www.lattepanda.com

author: Cliff Matthews
author_rank: Unknown
timestamp: August 19, 2016, 02:55:42 am
content: There's a bunch of video reviews on the this. Has an Arduino built-in.

author: KE5FX
author_rank: Super Contributor
timestamp: August 27, 2016, 02:49:39 am
content: I like the idea, conceptually, but how am I supposed to build any sort of networkable application with Windows 10, when Microsoft gets to dictatewhen it will reboot itself, and/orbreak perfectly-functional peripherals?Presumably there's still an embedded or CE version of Windows 10, but it doesn't sound like that's what these guys are shipping.

author: mikerj
author_rank: Super Contributor
timestamp: August 27, 2016, 08:12:03 pm
content: Quote from: Cliff Matthews on August 19, 2016, 02:55:42 am"Ardreeno", the embedded development system formerly known as Arduino.
Can't find my part in Altium/Microchip library - Page 1
Forum section: electronics / general

author: aurmer
author_rank: Regular Contributor
timestamp: August 26, 2016, 03:29:01 pm
content: I am new to PCB design, and I have been finding good beginner Altium resources online, but I am having trouble identifying my selected PIC24 out of the Microchip parts library.Here is where I am.-https://techdocs.altium.com/display/ADOH/Download+Libraries- Download "Microchip.zip"- Add "Microchip Microcontroller 16-Bit PIC24F.IntLib" library into AltiumThis is my chosen PIC24F (http://www.microchip.com/wwwproducts/en/PIC24FJ128GA204). This particular PIC24F is not listed in the library. I also tried going through Microchip.-http://www.microchip.com/wwwproducts/en/PIC24FJ128GA204- Documentation -> Schematics -> "PIC24F CAD/CAE Schematic Symbols"- Unzip the download. This has a BXL file for many PIC24F's. But there is no BXL for PIC24FJ128GA204Where should I go from here? Please let me know if I need to clarify anything.

author: hans
author_rank: Super Contributor
timestamp: August 26, 2016, 03:32:20 pm
content: GA200 series is quite new, so I'm not surprised it isn't in the more outdated libraries on the Altium website.Maybe the GB200 series is in it? I believe the only difference between GA200 and GB200 is addition of USB.If not, I personally would stop searching at this point and just create a simplistic symbol with just the port/pin numbers and look-up pin definitions in the datasheet instead. The PIC24 is quite suited for this, because most if not almost all pins are remappable anyway.

author: aurmer
author_rank: Regular Contributor
timestamp: August 26, 2016, 03:38:34 pm
content: Thanks, yes it makes sense if the device is new. I wasn't even aware of that fact. I was feeling scared to look into custom parts, but it isn't like I am setting up rules for pins, just need to make connections and then design a board layout.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: August 26, 2016, 04:54:03 pm
content: I see GA and GB, 110 and 310, in the Altium Vault, but no 2xx.The library parts are usually ugly anyway; you're better off copying a similar one, then editing it for better quality. Ditto the footprint, which never looks good.Tim

author: JPortici
author_rank: Super Contributor
timestamp: August 26, 2016, 05:01:22 pm
content: pic24 are usually pin-to-pin compatible, at least to some extent. (Core pins, Analog pins)also the 128kb (the 128 in the name) might not be present, but the base version (64, 64kb) might be

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 26, 2016, 05:08:25 pm
content: I never trust vendor-supplied (either the PCB tools vendor or the chip vendor) schematic symbols and PCB footprints and prefer to create my own from scratch.
Why is SAML22 I2C with DMA not transmitting more than 1 byte? - Page 1
Forum section: electronics / general

author: m4l490n
author_rank: Contributor
timestamp: August 25, 2016, 05:00:27 pm
content: Hello everybodyI'm starting withAtmel SAML microcontrollerand I'm implementing the code example "Quick Start Guide for Using DMA with SERCOM I2C Master"http://asf.atmel.com/docs/3.21.0/samd21/html/asfdoc_sam0_sercom_i2c_master_dma_use_case.htmland I'm having problems with it. I hooked up a logic analyzer to the bus and I'm observing that the peripheral just sends 1 byte, actually I can just see the address of the chip being sent and no bytes of the data I need to send.Has anyone implemented I2C communications using DMA? I need advice here because I just implemented the example exactly as found in the quick start guide and is not working. It is supposed to be sending 10 bytes.Thanks!!

author: KL27x
author_rank: Super Contributor
timestamp: August 25, 2016, 08:36:33 pm
content: Logic analyzer shows1. Start bit2. Slave address ending with 0 (if 7 bit address, MSBs are the address, LSB is the R/W bit, which is zero for write)And then..3. ??ACK or NACK? If NACK, that's as far as you will get. Double check the address is correct and the circuit is ok.If you got an ACK, circuit is ok. Software/peripheral problem. Does this module trigger ISR? Did you set up your ISR?QuoteI hope you at least modified the slave address... What are you communicating with? It is up to the slave to ACK after the address has been sent. You can't "dry run" it without an actual working slave.
pic24f spi1buf undeclared - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: August 25, 2016, 01:47:29 pm
content: Hi,I just got back to my pic microcontrollers and I got this new device: pic24fj128gb202. I'm using it for a basic read from a "thermocouple reader" through SPI and displaying it on UART. I tried the same code on a pic24fj64ga002 and it works. However, I wanted to migrate to this new device. I've made all the necessary changes to the configuration bits and the different registers for the new device for spi, uart, analog/digital and so on.But, when I build it, it says SPI1BUF undeclared which has really stumped me because SPI1BUF exists on the datasheet and I've checked to see that I've selected the right device on MPLabX. I'm using the XC16 C compiler version 1.26. Does anyone have any idea what the problem might be?Thanks!

author: andersm
author_rank: Super Contributor
timestamp: August 25, 2016, 01:49:05 pm
content: Open the device header file and see what you can find?

author: voltsandjolts
author_rank: Unknown
timestamp: August 25, 2016, 01:54:46 pm
content: Isn't it:SPI1BUFLSPI1BUFH

author: gauravmp
author_rank: Regular Contributor
timestamp: August 25, 2016, 01:57:15 pm
content: Ahhhhh!!!!!!!!!!!!!! There's the problem!!!!!!!!!!!! Thank you so much!!!!!!!
ESP8266 unofficial bare metal SDK? - Page 1
Forum section: electronics / general

author: MT
author_rank: Super Contributor
timestamp: August 19, 2016, 10:01:09 pm
content: Anyone tried it?http://www.nefastor.com/esp8266-bare-metal-programming/http://programs74.ru/get.php?file=EspressifESP8266DevKithttp://programs74.ru/get.php?file=EspressifESP8266DevKitAddonBtw,How is RFI certification these days, if the WIFI module is certified can the certification be transferred to finished product it's included in or is a re-certification needed?

author: matkar
author_rank: Regular Contributor
timestamp: August 21, 2016, 09:07:23 am
content: Recertification is always needed. But it will cost much less than with a noncertified WiFi module.

author: jas
author_rank: Newbie
timestamp: August 24, 2016, 07:14:27 am
content: I have been using the unofficial SDK and it works fine.
Info on Sanyo/ONSemi LC87 in-circuit programming - Page 1
Forum section: electronics / general

author: scanlime
author_rank: Newbie
timestamp: August 26, 2016, 03:25:55 am
content: Hey folks!Working on some research on a Wacom tablet, which uses the Sanyo LC871 8-bit USB microcontroller which I hadn't heard of before this project. I've gleaned some info from the public datasheets I can find, but I'm wondering if anyone here has tips on where I may find the in-circuit programming/debug protocol documented.The actual ICP tool is referred to as a "TCB87 Type C" in several of the LC87-series chip datasheets, and some distributors seem to have ghost inventory records for a TCB87-TYPEC programmer, but no data sheets or anything.I'm about to try some black-box reverse engineering, but I figured I'd ask in case it's obvious to some hacker here who's spent some time around these micros that are so unfamiliar to meThanks!

author: amyk
author_rank: Super Contributor
timestamp: August 27, 2016, 03:35:44 pm
content: They're not Sanyo anymore, On apparently bought it from them. Search "LC87" on On's site and you'll find a bunch of documentation.
Hitachi HMCS400 series - Page 1
Forum section: electronics / general

author: CJay
author_rank: Super Contributor
timestamp: August 26, 2016, 09:15:57 am
content: I have a need to replace an ancient, long obsolete Hitachi microcontroller in a Uniden radio, it's one of the HMCS400 series, specifically the HD4074016 variant.I believe these are a pretty simple EPROM based device, hold a couple of lines low in an adapter and it functions like a simple 27Cxxx EPROM for a programmer (I'd assume the algorithm would be similar to Hitachi EPROM algorithms but I'll research that more later)The main problem I think I am likely to face would be sourcing a blank chip to program, there are lots of them listed on Ali etc. but none of the listings are very clear if they are new and blank or if they're just new and I assume the vendors will have no idea how to check anyway.So, is anyone aware of a source of these chips that can guarantee they're new and unprogrammed? Is there a later, code and pin compatible version or an eraseable version?

author: amyk
author_rank: Super Contributor
timestamp: August 26, 2016, 10:53:04 am
content: There are almost no references to an HD4074016 I can find on the Internet, but the HD4074019. You can find some information on programming the HD4074008starting on page 324 of this:http://en.wikichip.org/wiki/File:HMCS400_Series_Manual_(1988).pdfI'm pretty sure you are not going to find new ICs, but Hitachi does still make 4-bit MCUs. You could try looking into whether any are pin-compatible.

author: CJay
author_rank: Super Contributor
timestamp: August 26, 2016, 11:48:39 am
content: My mistake, it is the HD4074008.And there is a windowed version of the chip available but I imagine it's rare to the point of being impossible to find.I might order a couple of plastic ones from Ali Express just to see if they're programmed.I have a programmer that lists the chip as supported so I can read them at least.

author: danadak
author_rank: Super Contributor
timestamp: August 26, 2016, 12:24:50 pm
content: If you can't find a simple replacement seems like a standard "todays" microcould be quickly adapted on a adapter board to accomplish the task.A Cypress PSOC might make sense as its pins are routable, and it has a fabricthat can be used with GUI drag and drop functions, everything from simple gatesto counters/pwm/LUTs.....Just a thought.Attached the "standard" GUI components you can choose from, and itpermits programming in Verilog for specialized functions.Regards, Dana.
Atmega32u4 - Page 1
Forum section: electronics / general

author: stj
author_rank: Super Contributor
timestamp: August 23, 2016, 09:38:32 pm
content: can somebody upload the factory bootloader and fusebyte settings please?i got a bunch cheap from china, but it seems they are intended for repairing arduino boards and the bootloader has been changed!

author: wraper
author_rank: Unknown
timestamp: August 23, 2016, 10:03:05 pm
content: Buy cheap programmer for a few bucks. Additional clock crystal might be needed on OSC pins depending on the fuses programmed.

author: dannyf
author_rank: Super Contributor
timestamp: August 23, 2016, 10:28:40 pm
content: The fuse settings are in the data sheet. Not sure why they would have a factory bootloader.

author: stj
author_rank: Super Contributor
timestamp: August 23, 2016, 10:32:33 pm
content: i knew those things would be said.i have a programmer,they have a factory bootloader because they have hardware usb, and can be programmed using the usb port with the DFU protocol.or atleast they can if they have not been crippled for arduino use!i need the factory "flip" bootloader on them so customers can upgrade the device over the cable with the existing software.

author: sleemanj
author_rank: Super Contributor
timestamp: August 23, 2016, 10:34:37 pm
content: http://www.atmel.com/devices/atmega32u4.aspx?tab=documents3rd doc, link to dl is under it

author: stj
author_rank: Super Contributor
timestamp: August 23, 2016, 11:02:23 pm
content: thanks - i was on that page yesterday, but didnt notice the download link!
LVP-only Pickit2 (clone) - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: August 20, 2016, 06:59:09 pm
content: I was looking at some of the PICs I am using and most of them are LVP-capable - the exceptions are 12f675 and 16f684 (to me). Going forward, we will likely see more and more LVP-capable chips - the AVRs are all LVP-programmable and so by default.So I was wondering why no one has made a LVP-only Pickit2? It would greatly simplify the external circuitry, by eliminating Vpp generation etc. I took a quick look at the Pickit2 schematic and you can probably shrink it down to the chip, crystal, a few resistors for protection and then maybe a few gates / transistors to reverse polarity.When I get some time, I will see how / if that can be done.

author: Ian.M
author_rank: Super Contributor
timestamp: August 20, 2016, 07:05:44 pm
content: Its been done:http://dangerousprototypes.com/forum/viewtopic.php?f=60&t=5395However, (IIRC) you cant debug any PIC that uses HV programming with LVP enabled.
Embedded-market-study 2014  - For your reading pleasure - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: August 18, 2016, 11:40:15 pm
content: Embedded-market-study(posted earlier under Beginners)http://bd.eduweb.hhs.nl/es/2014-embedded-market-study-then-now-whats-next.pdfThe way I read it is TI is number one but ST is the one that most want

author: dannyf
author_rank: Super Contributor
timestamp: August 19, 2016, 02:16:28 pm
content: a few things jumped out for me:1. code reusability / portability is key. to me, it is less about porting code to a different system but more about being confident that your code is time tested and bug free.2. 8-bit is dying fast. 32-bit has taken over.3. TI leading the ecosystem is no surprise to me. CCS is a better system than other Eclipse-based solutions (like LPCxpresso), and Stellaris/Tivaware helps get people up and running.4. People pick quality tools vs. quality chips. No surprise there and I suspect that trend will continue.5. the disparity, both positive and negative, between P61 and P62 shows you who the winners are and who the losers are, in a few years.6. Happy to see that PIC24 is doing well in its segment. Except that segment is shrinking.

author: thm_w
author_rank: Super Contributor
timestamp: August 19, 2016, 09:28:35 pm
content: Here is an incomplete version for 2015:http://webpages.uncc.edu/~jmconrad/ECGR4101-2015-08/Notes/UBM%20Tech%202015%20Presentation%20of%20Embedded%20Markets%20Study%20World%20Day1.pdf- Less proprietary comm and more bluetooth, thats good.- The usage of C hasn't really changed during this study, and in 2015 it actually went up (but could be from demographic change). So will be interested to see if these stats show up in 2016:http://www.electronics-lab.com/end-c-know/- "What percentage of your time is spent on documentation: 1%"

author: nctnico
author_rank: Super Contributor
timestamp: August 19, 2016, 09:37:34 pm
content: Quote from: thm_w on August 19, 2016, 09:28:35 pmThat isn't funny. It is rather worrying!

author: chicken
author_rank: Frequent Contributor
timestamp: August 20, 2016, 12:17:22 am
content: QuoteRead: you age 1.9 years for every year working on an embedded project.
SiLab 8051F410 programmer - Page 1
Forum section: electronics / general

author: blueagle91
author_rank: Newbie
timestamp: August 15, 2016, 08:06:50 pm
content: So hello eevryone,I received an 8051F410 from SiLabs, and all is fine but im new with 8051, and my problem is how to make a cheap programmer for this guys.Any idea, i tried to find something on net but either i typed the wrong search quote or it is hard to find.So simply is there any simple programmer for these 8051, something you could build easily. Im ok with SMD work.Thanks all the best.

author: Jeroen3
author_rank: Super Contributor
timestamp: August 15, 2016, 08:16:22 pm
content: Their debugger programmer is one of the cheapest. Why spend hours when you can simply buy one for 30$?http://nl.farnell.com/silicon-labs/debugadptr1-usb/adaptor-usb-debug-for-c8051fxxx/dp/1186943

author: ebclr
author_rank: Super Contributor
timestamp: August 15, 2016, 08:25:12 pm
content: http://pt.aliexpress.com/item/C8051F-MCU-emulator-downloader-U-EC6-EC5-Range-of-ratios/570730120.html?spm=2114.02020208.3.2.zVTA7H&ws_ab_test=searchweb201556_10,searchweb201602_3_10057_10056_10055_10037_10049_301_10033_10059_10032_10058_10017_10060_10061_10062_10064,searchweb201603_3&btsid=fd11a8ab-2832-48b6-9cf4-11e89623e865

author: amyk
author_rank: Super Contributor
timestamp: August 16, 2016, 02:09:54 am
content: https://www.silabs.com/Support%20Documents/TechnicalDocs/an127.pdfThat and the last 5 pages of the C8051F410 datasheet should be enough.

author: blueagle91
author_rank: Newbie
timestamp: August 21, 2016, 01:02:35 pm
content: Sry for not responding too hastly, thanks guys. Yeah i found all of those, i thought maybe there is something to build fast and to try it. Cause i want it nowBut hey ill have to wait for the postThanks guys all the best
Anyone had experiance with the XMC Series from Infineon? - Page 1
Forum section: electronics / general

author: CM800
author_rank: Frequent Contributor
timestamp: August 15, 2016, 11:14:12 am
content: Out of curiosity, has anyone tried out the XMC Series of Microcontrollers from Infineon?http://www.infineon.com/cms/en/product/microcontroller/32-bit-industrial-microcontroller-based-on-arm-registered-cortex-registered-m/channel.html?channel=db3a30433c1a8752013c3e221b9d004fThey seem rather nice... expecially considering there is a Chip under £10 with EtherCAT in 1pcs quantities...

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 15, 2016, 04:23:03 pm
content: Yes, we use them here. What would you like to know about them?

author: CM800
author_rank: Frequent Contributor
timestamp: August 16, 2016, 07:01:51 am
content: Quote from: Sal Ammoniac on August 15, 2016, 04:23:03 pmI'm curious about the ease of use / setup, how well they are supported, learning curve..... have you used the EtherCAT functionality too?I'm thinking of getting ahold of one for a motion control project.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: August 16, 2016, 07:53:08 am
content: I have been playing with the XMC4300 eval board, I got the Ethercat example running with not much trouble. I was pleasantly surprised with the DAVE environment and documentation.The onboard Ethercat seems to be a unique feature in this type of MCU, which is what interested me.

author: CM800
author_rank: Frequent Contributor
timestamp: August 16, 2016, 08:11:03 am
content: Quote from: donotdespisethesnake on August 16, 2016, 07:53:08 amIndeed, the actual chip is lower cost then the EtherCAT SoC from Beckoff.Is the EtherCAT soley Slave or can it even master?I've ordered a 4300 demo like yourself.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: August 16, 2016, 10:08:53 pm
content: Quote from: TCWilliamson on August 16, 2016, 08:11:03 amI believe it is slave only, but I wouldn't swear to that.It would be nice if it could run as a master, that is something I want to look at. But maybe you can use an ethernet port as a master, with a suitable stack. I've only just started looking into EtherCAT.

author: CM800
author_rank: Frequent Contributor
timestamp: August 18, 2016, 09:51:43 pm
content: Quote from: donotdespisethesnake on August 16, 2016, 10:08:53 pmThat sounds about right. EtherCAT is a really great performance protocol. I'm quite intrigued with this chip, the price makes EtherCAT possibly as inviting as CANOpen...Know any good pointers for getting familier with the Infineon XMC series?
video output processing (FPGA) - Page 1
Forum section: electronics / general

author: bbsfoo
author_rank: Newbie
timestamp: August 26, 2016, 01:13:50 am
content: One systems output 320x240 RGB signal, and displayed on the LCD(320x240). Now requires the output to 480x320 LCD, centered image, do not stretch.how?

author: obiwanjacobi
author_rank: Super Contributor
timestamp: August 26, 2016, 08:42:11 am
content: Count...

author: Scrts
author_rank: Frequent Contributor
timestamp: August 26, 2016, 02:57:52 pm
content: Generate black video of 480x320 and overlay your original video on top. For Altera it's like 5 minutes job: Add color pattern generator, uniform background: RGB 0,0,0. Then add Alpha blending mixer, connect ch0 to the pattern generator and ch1 to your video. Alpha <= '1' on both. Done.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: August 26, 2016, 03:08:04 pm
content: Well, if it's real VGA (analog) you need some ADCs in there too, I think....Also, you may need to resample to correct for timing differences in the video signals..?
Looking for a project volt and amp meter on LCD - Page 1
Forum section: electronics / general

author: Kakashi
author_rank: Contributor
timestamp: August 18, 2016, 09:08:41 pm
content: If anyone came across an volt and amp meter on 16x2/1 lcd project please share it. I need something that measures up to 100V and 50A for electronic(dummy) load.The only project I found is this one, but it seems its buy only available:http://electronics-diy.com/voltmeter-ammeter.phpOr I'm too blind to find the hex file...
How to access the ZYNQ Tab - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: August 16, 2016, 08:46:41 pm
content: Hello,I'm using a Zedboard with a ZYNQ 7000 chip. While going through some online references on Xilinx's website, I saw a few pages like these:http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_4/platform_studio/ps_r_gui_zynq_tab.htmhttp://www.xilinx.com/support/documentation/sw_manuals/xilinx14_4/platform_studio/ps_c_gui_mio_configuration.htmCould someone tell me how I could get those Tabs? Are they on Vivado? I'm using a free student license. Do I have to purchase those?Thanks

author: andersm
author_rank: Super Contributor
timestamp: August 17, 2016, 04:48:52 am
content: The "Platform Studio" in the url and on the top of the page is probably a hint.

author: hamster_nz
author_rank: Super Contributor
timestamp: August 17, 2016, 08:56:00 am
content: Hi gauravmp,To add the processing core to your design add a "Zynq7 Processing System" Ip block into your design (from the Window/IP Catalog window)You will then get to to the ZYNQ7 window where you can find the configuration dialog boxes you are looking for.Once you have customized your IP and generated your output, you can always change the options by double-clicking on the the IP block in your design hierarchy and/or block diagram (depending on how you use it).The low end Zynq parts (Zynq 7010 & 7020) are fully supported in the Webpack.http://www.xilinx.com/support/documentation/sw_manuals/xilinx2013_1/ug940-vivado-tutorial-embedded-design.pdfis a good walkthough on how to use Zynq and VivadoMike

author: Kremmen
author_rank: Super Contributor
timestamp: August 17, 2016, 12:30:22 pm
content: That is the PS7 block design IP in Vivado.When you create a new (RTL) project and select your board (Zeboard) you get the initial project view. Somewhere you will find the operation "create a block design" - usually in the flow manager on the left sidebar. So create a block design and then select "add IP", and add a Zynq 7 processing system. Now you have the IP block in the design. Run "process automation" to implement the static I/O and memory interfaces. After that it is up to you what you want to have. Double clicking on the PS7 block will open it and lets you specify the use of various built-in peripherals as well as the I/O lines they will use (should match your hardware though).Don't forget to create a HDL wrapper after you are done and then export the bitstream. After that you can start the SDK to create the rest of the project using one or both of the on board ARM cores.

author: gauravmp
author_rank: Regular Contributor
timestamp: August 17, 2016, 05:45:10 pm
content: Thanks a lot guys!!!!!
STM32 documentation - where can I find details ?  - Page 1
Forum section: electronics / general

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 15, 2016, 10:59:06 am
content: Hi,I want to start with STM32 but most documentation and datasheets look just like overview without any detailsFor example when I want to configure ADC where is pin schematics and registers description with all config bite explained as used to be in for example Atmels datasheets ?

author: dannyf
author_rank: Super Contributor
timestamp: August 15, 2016, 11:09:01 am
content: Try the user manual, reference manual or family manual, or some such. All from St website.

author: Kilrah
author_rank: Unknown
timestamp: August 15, 2016, 11:16:41 am
content: Download the "Reference manual" for the particular family you're going to use.

author: Miyuki
author_rank: Frequent Contributor
timestamp: August 15, 2016, 11:46:24 am
content: Quote from: Kilrah on August 15, 2016, 11:16:41 amThank you, its exactly what I'm looking for, just didn't know how they call it
Use Beetle DFR0282 to power the circuit - Page 1
Forum section: electronics / general

author: milad1234
author_rank: Newbie
timestamp: August 12, 2016, 05:59:48 am
content: Hello all,I am trying to use Beetle DFR0282 to power a Bluetooth module and bunch of leds in my circuit.Now I want to make sure it can output enough current.The module operates at 5 V.I am planning to use a 5 V voltage regulator between Beetle board and rest of my circuit.I connected Vout and GND of Beetle DFR0282 to the bluetooth module Vin and GND to test but Beetle overheated and stopped working! OR In other word: BURNED!!Now question is what circuit should i use in between to prevent this and supply enough current to the module.I am assuming a diode might help?I appreciate any help!Thanks!
FPGA timing requirements - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: August 10, 2016, 02:40:08 pm
content: Hi,I keep getting a few errors stating that the timing requirements were not met. I'm using Vivado and an Artix-7 device. Could someone please let me know what sources I have to refer to to get acquainted with timing specifications and how I could meet them.Thanks

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: August 10, 2016, 04:26:14 pm
content: Vivado Design Suite User Guide - Design Analysis and Closure Techniques

author: gauravmp
author_rank: Regular Contributor
timestamp: August 11, 2016, 03:00:26 pm
content: Thanks a lot for the help man!
Gnu Arm Eclipse OpenOCD: Building project without trace/semihosting - Page 1
Forum section: electronics / general

author: BurnedResistor
author_rank: Regular Contributor
timestamp: August 08, 2016, 10:06:54 pm
content: After successfully following this book:https://leanpub.com/mastering-stm32(really good resource btw), I was able to get an stm32f4 disco devboard up and running with the gnu arm eclipse toolchain. I also successfully ran the blinky program with tracing and semihosting. However, as excpected this firmware willl only run properly if a debugger is connected, which makes sense!However I would like to know if there is a simple software switch or other option to compile the program without this functionality to allow for it to run freestanding and at full speed without the overhead of the extra tracing functionality, however was not able to find a solution for this. Does anybody know how this could be achieved?

author: HackedFridgeMagnet
author_rank: Super Contributor
timestamp: August 08, 2016, 10:24:15 pm
content: This thread tells you how to turn it on. so if you work backwards.http://www.openstm32.org/forumthread1530

author: BurnedResistor
author_rank: Regular Contributor
timestamp: August 08, 2016, 10:44:27 pm
content: Quote from: HackedFridgeMagnet on August 08, 2016, 10:24:15 pmIt seems that the tread focuses on enabling the trace in openOCD which i already have working. However by the time openOCD gets its hands on the program it is already compiled and therefor to late to enable or disable the tracing code. I was looking to see if there was a step in the ide/the compiler/the headers which enabled me to disable or exclude the tracing code. Maybe even as a seperate run configuration? That would be great as it would allow me to switch really quickly!Thank you for your help in any case!

author: mac.6
author_rank: Regular Contributor
timestamp: August 10, 2016, 07:11:06 am
content: As far as I remember just link with nosys instead of rdimon library, it's just a -specs=rdimon.specs to change to -specs=nosys.specs in the linker parameters.
Arduino - Multiple PORTs - Page 1
Forum section: electronics / general

author: Leopoldo
author_rank: Contributor
timestamp: August 08, 2016, 02:23:39 pm
content: Hi there!I'm working on a project that involves writing 16bit on two ports of an arduino Mega, but since it's an 8bit microcontroller, the two ports need to be written separately, one after the other. I was wondering, is there a way to write them at the exact same time? I mean, with the same clock cycle?I don't mind if it still has to take the same number of clock cycles, as long as it can write them simultaneously.It should run pretty fast, hence writing the two ports in different clock cycles would be a problem. Thank you in advance!!

author: retrolefty
author_rank: Super Contributor
timestamp: August 08, 2016, 02:30:38 pm
content: Quote from: Leopoldo on August 08, 2016, 02:23:39 pmOnly a single 8 bit port can be changed in a single clock instruction cycle. Are you sure this is a hard requirement. How is the receiving end to know when there has been an update to the 16 parallel bits?

author: Ian.M
author_rank: Super Contributor
timestamp: August 08, 2016, 02:32:47 pm
content: No. That's what an 8 bit MCU does. If you could transfer 16 bit of data in one instruction cycle it would be a 16 bit MCU.In practice, if you throw out the Arduino port/pin libraries and code the output in AVR assembler, you should be able to get the timing skew down to a few clock cycles. You cant do better without an external 16 bit latch with a separate pin strobing it.

author: dannyf
author_rank: Super Contributor
timestamp: August 08, 2016, 03:42:51 pm
content: "wondering, is there a way to write them at the exact same time? I mean, with the same clock cycle? "Not direct.But yes, through some port expanders or shift registers.

author: rrinker
author_rank: Super Contributor
timestamp: August 08, 2016, 07:59:39 pm
content: Or latches, like many early CPUs. Instead of using up to 24 pins for a 16 bit address bus plus an 8 bit data bus, that stuff was multiplexed with a timing signal to drive latches, Instead of using 16 lines to get 16 bits, you can use a latch, 8 lines, plus one additional as the timing signal. Latch the upper or lower 8 bits, then apply the second 8 bits to the port, timed to the destination by the signal line, when it goes high (or low, depending on the latch used, etc), you now have 16 bits present on a bus in a valid state for the receiving device to utilize.

author: Leopoldo
author_rank: Contributor
timestamp: August 08, 2016, 09:44:22 pm
content: Thank you all; I think I'll stick with arduino built-in hardware, so I'll write 2 ports one after the other;I found that the phase lag is actually quite unnoticeable.Now...How do I mark this post as solved?