hybridfree/eevblog-posts huggingface dataset:
Veswin electronics any good to order from? - Page 1
Forum section: electronics / general

author: erinic
author_rank: Newbie
timestamp: February 03, 2023, 07:06:13 am
content: Have you heard about this brand and contact with them?Any comment？

author: woofy
author_rank: Frequent Contributor
timestamp: February 03, 2023, 09:44:48 am
content: No experience with them but they seem to be another sourcing company, stock nothing, get everything.Take care, a lot of these companies source from the grey market, you pays your money and you takes your chances.

author: Lindley
author_rank: Regular Contributor
timestamp: February 03, 2023, 10:25:08 am
content: No, never heard of them, but as they do not show any prices, get the impression they are more trade suppliers.Plenty of other UK good suppliers we have used for many years -Switch Electronics, Rapid Electronics, Hobby Components to name but a few aimed at the hobbyist.RS, Farnells, CPC the big names for the trade but also happy to deal with online hobbyists.

author: ethan
author_rank: Newbie
timestamp: February 06, 2023, 03:11:38 am
content: I know veswin, it is a famous Hongkong distributor of electronic component, not a brand. But they has many years of experience to distribute popular brands like TI, ST, NXP, etc. Good communition with them.
8051 projects  - Page 1
Forum section: electronics / general

author: eprom04
author_rank: Newbie
timestamp: February 05, 2023, 09:41:54 am
content: More then 30 original projects with the P89C51RD2HBA from NXP, an 8051 derivative.Please leave me a comment if you would like me to develop a new project for you.I would be happy to do it:www.while1.eu/arduone/arduone.html
STM32L05xxx/L06xxx device errata - Page 1
Forum section: electronics / general

author: girishv
author_rank: Regular Contributor
timestamp: February 03, 2023, 11:09:16 pm
content: I am designing a board based on STM32L063C8T6. This is my first attempt to design an STM32 based board for academic purpose. I have been reading the errata for STM32L05xxx/L06xxx devices. I am unable to understand the item "Protection level1 does not work"What does this mean?

author: ataradov
author_rank: Super Contributor
timestamp: February 03, 2023, 11:24:31 pm
content: This means your firmware is not fully secure if RDP1 is used. Attacker may attempt to erase the device, which would set RDP0 (full access), but the memories may not be fully erased, so full or partial firmware may be recovered.If you care about firmware security, you will have to use RDP2, but this is a one way process, once this level is set, it can't be reversed. So, you probably want to make a bootloader first.

author: georges80
author_rank: Frequent Contributor
timestamp: February 04, 2023, 02:07:43 am
content: And is only present in Rev A silicon. So, verify the rev you have before worrying too much about that particular errata.cheers,george.

author: hans
author_rank: Super Contributor
timestamp: February 04, 2023, 08:42:29 am
content: Sounds like they had a silicon bug or perhaps a glitchability of the chip, where issueing a mass erase while the chip is in protection level 1, does not erase all memory AND reset the protection level to 0.If any, the protection level reset should be done only when everything was erased, but maybe there is some voltage glitchability where the chip does not and only resets the protection level, thus exposing the program binary.Or maybe ST screwed up some statemachine and it was buggy in the first place.Anyhow, if this is for academia, I don't think you'll quickly need code protection, especially if you intend to open source and publish about your design and results.

author: girishv
author_rank: Regular Contributor
timestamp: February 04, 2023, 10:05:32 am
content: Quote from: hans on February 04, 2023, 08:42:29 amAs pointed out by @georges80, it affects only revision 'A' of silicon. I have revision 'Z'.I have about 200Nos in stock. At this moment, I am trying to build few development boards for in-house projects.
setting registers  bits in  KEIL ARM uvision problem! - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: February 01, 2023, 08:00:58 pm
content: Hello guysI'm using keil uvsion latest version and I came across this problem that is when I try to enable the clock for GPIOD on stm32f407 as following:Code:RCC->AHB1ENR |= (1<<RCC_AHB1ENR_GPIOAEN) | (1<<RCC_AHB1ENR_GPIOBEN) | (1<<RCC_AHB1ENR_GPIODEN);For some unknown reason, only GPIOD clock doesn't enable ( I get nothing on the GPIOD outputs nor inputs), but if I change the code to:Code:RCC->AHB1ENR |= (1<<RCC_AHB1ENR_GPIOAEN) | (1<<RCC_AHB1ENR_GPIOBEN) | (1<<3);//it does work! What's going on here, anybody has any idea please?

author: ataradov
author_rank: Super Contributor
timestamp: February 01, 2023, 08:17:11 pm
content: Those defines are already shifted bits, so the correct expression isQuoteAlso, bugs in compilers are exceedingly rare. Chances of you running one with a pin toggling code are nil. So, when something does not work as expected, look for issues in your code, not the compiler.

author: kgavionics
author_rank: Regular Contributor
timestamp: February 01, 2023, 08:31:15 pm
content: My bad😊😊😊 !
STM32 Timers channels questions? - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: February 02, 2023, 06:29:36 pm
content: Hello guysSorry if this is a stupid question!I want to generate a wave form using the output compare feature on Stm32F407 on timer3, but I'm a bit confused which pin do I have to choose, because if I look in the alternate function table, I find that TIM3_CH1 is assigned to the following pins:-PA6-PB4-PC6So, my question, can I use either one of them? Also, they don't mention if these channels are inputs or outputs! So, I guess I have to use the MODER register to set them there?Thank you in advance

author: wek
author_rank: Frequent Contributor
timestamp: February 02, 2023, 06:33:34 pm
content: > can I use either one of them?Yes.> Also, they don't mention if these channels are inputs or outputs!Once they are set to AF in GPIOx_MODER and assigned to timer in GPIOx_AFR[], it's the timer which determines the direction - through setting given channel to Input Capture or Output Compare (using TIMx_CCMRx.CCxS).JW

author: langwadt
author_rank: Super Contributor
timestamp: February 02, 2023, 06:48:47 pm
content: unless you want to make things more difficult than necessary, just start with cubemx and go from there

author: kgavionics
author_rank: Regular Contributor
timestamp: February 03, 2023, 12:36:47 am
content: Thank you for the heads up JW!

author: kgavionics
author_rank: Regular Contributor
timestamp: February 03, 2023, 12:38:26 am
content: Thank you ! I installed CubeMx and I’ll use it in conjunction with Keil Arm uvision!
ATSHA204 -> XplainedPro SAMD21 without  AT88CKSCKT - Page 1
Forum section: electronics / general

author: Franc
author_rank: Regular Contributor
timestamp: January 20, 2023, 11:39:37 pm
content: Hello everyone!I'm trying to connect one ATSHA204 to Xplained Pro SAMD21 . After some searching I found the 88CKSCKTSOIC_XPRO accessory for that.Also I found this Bloghttps://phillystutorials.blogspot.com/2019/07/atsha204a-full-tutorial.htmlUsing Atmel Studio 7 I did upload the Phill's firmware to Xplained Pro and it worked very well. (pictures attached)I would like to use the ACES CE of Microchip for checking out and understand some functios more of this device and I don't have the 88CKSCKTSOIC_XPRO, as I'm needing just for some tests, i don't want spend U$100.I tried to connect the the ATSHA204 directly to EXT1 tracking the PINs using this schematic below but no success, the ACES doesn't recognize the ATSHA204 (Picture attached)https://ww1.microchip.com/downloads/aemDocuments/documents/SCBU/ProductDocuments/BoardDesignFiles/AT88CKSCKTSOIC-XPRO-Design-Documentation.pdfMy question is, anyone got success for ACES using directly to ATSHA204 without AT88CKSCKTSOIC accessory?I'm in doubt about SW2 bottom and worried burn my xplained.Thankss!!!Paulo

author: Franc
author_rank: Regular Contributor
timestamp: January 22, 2023, 02:29:36 pm
content: Just updating.AT88CK accessory has one ATSHA204 for client validation in PCB , so, we can't connect ATSHA204 directly fo XplainedPro Ext1 and ACES. (picture attached)Thanks all!!

author: JoeyG
author_rank: Regular Contributor
timestamp: January 24, 2023, 02:44:35 am
content: if you have no luck create a support ticket atwww.microchip.com/support
MSP430FR2433 Code Protection? - Page 1
Forum section: electronics / general

author: hal9001
author_rank: Regular Contributor
timestamp: January 20, 2023, 02:56:06 am
content: Does MSP430FR2433 from TI offer code protection or fuses to burn so that others cant read back the firmware from the programming port? I read code protection for other MSP430s but dont see examples or information for MSP430FR2433. I'm using Code Composer and a launchpad board as programmer.Cheers!

author: hal9001
author_rank: Regular Contributor
timestamp: January 20, 2023, 09:26:36 am
content: In the slaa685 app report there are some hints but no example code.QuoteIs this code enough to lock the JTAG signature? Does this have to be set to persistent memory?Code:uint16_t *jtag=0xFF80;*jtag=0x1234;

author: bson
author_rank: Unknown
timestamp: January 21, 2023, 08:11:19 pm
content: Yes, except you probably want to write all 32 bits:Code:volatile uint32_t* jtag_lock = (volatile uint32_t*)0xff80;*jtag_lock = 0xc0ffee;

author: mon2
author_rank: Frequent Contributor
timestamp: January 23, 2023, 01:26:59 pm
content: If someone wants the code bad enough, it can be extracted with some effort:https://research.nccgroup.com/wp-content/uploads/2020/02/NCC-Group-Whitepaper-Microcontroller-Readback-Protection-1.pdf
Does anyone have a data sheet for the Wii Classic Controller? - Page 1
Forum section: electronics / general

author: VinnyViele
author_rank: Newbie
timestamp: January 18, 2023, 04:46:19 pm
content: Hello! I am making a device that connects to a Wii Nunchuck port that needs to emulate a Classic Controller. Does anyone know where the data sheet for the Classic controller is?I need it so I know what to send down the I2C bus for the Nunchuck port to think that a controller is connected. From there, I need to be able to emulate button presses. Thanks!

author: jm_araujo
author_rank: Regular Contributor
timestamp: January 18, 2023, 05:23:36 pm
content: I've collected these bookmarks some time ago:Arduino code for emulating wiimote extension:https://forum.arduino.cc/t/success-arduino-as-wiimote-extension/21013/3Documentation on the protocol:http://wiibrew.org/wiki/Wiimote/Extension_Controllers

author: bidrohini
author_rank: Regular Contributor
timestamp: January 20, 2023, 08:36:42 am
content: I just got this manual:https://www.nintendo.com/consumer/downloads/WiiOpMn_EN_setup.pdf
microcontroller content - Page 1
Forum section: electronics / general

author: lionelkjh
author_rank: Frequent Contributor
timestamp: January 18, 2023, 07:31:20 am
content: Hello everyone! I am looking for how to perform the means of reading the contents of the following microcontroller: EFM32ZG222F32 (box: QFP-48). I have the programmers: TL866 and RH809. but they are not in the list... Do you have to put another circuit there?? Thanks for your help!

author: Psi
author_rank: Super Contributor
timestamp: January 18, 2023, 07:43:02 am
content: The mcu appears to have a "Pre-Programmed UART Bootloader" so you can probably program it using any FTDI or usb to serial cable at the right voltage.https://www.silabs.com/documents/public/application-notes/an0042-efm32-usb-uart-bootloader.pdf

author: ataradov
author_rank: Super Contributor
timestamp: January 18, 2023, 07:50:17 am
content: Bootloader is in the flash, so chances are it was overwritten by the real firmware. And bootloader can't read the data out of the device.And if the device is locked, then there is no way to read the firmware out.But to try you can use any ARM programmer (ST-Link, J-Link, any generic) and Open-OCD. Or just vendor tools.

author: lionelkjh
author_rank: Frequent Contributor
timestamp: January 18, 2023, 11:59:19 am
content: Hello; and already thank you for this quick info .... Something troubles me: the TL866 and RH809 programmers are very complete, and do not seem to adapt to the reading of a microcontroller? No equivalence possible to read it?

author: pcprogrammer
author_rank: Super Contributor
timestamp: January 18, 2023, 01:00:42 pm
content: Like ataradov you can use ST-Link clones to do the job. They are not expensive and can be bought on Aliexpress.For instance this one, but you can search for the cheapest or a shop with more sales and feedback.https://nl.aliexpress.com/item/1005004428192100.html

author: ataradov
author_rank: Super Contributor
timestamp: January 18, 2023, 03:06:34 pm
content: Quote from: lionelkjh on January 18, 2023, 11:59:19 amFrom what I know those programmers are for reading standard ROM chips. All microcontrollers are unique, so it would be a lot of work to support them all.

author: Siwastaja
author_rank: Super Contributor
timestamp: January 18, 2023, 03:13:25 pm
content: Buying a cheap ST-LINK/V2 clone would cost you neither arm nor leg. Try to see if you find a configuration in OpenOCD for the EFM32 part in question. It could work out-of-the-box, maybe.If it is a commercial device, the MCU is likely locked, though, and you can't read it out using normal means. (All protection mechanisms can be broken of course, then it's just matter of time and resources available. For example, NSA can read it out for sure.)
DS323x timers only available in SMD packaging - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: January 17, 2023, 04:08:32 am
content: Is it just me or DS3231/2 can only be had in SMD packaging? I am not having much luck finding THT versions either on digikey, mouser, ebay, amazon or aliexpress.

author: I wanted a rude username
author_rank: Frequent Contributor
timestamp: January 17, 2023, 06:20:55 am
content: The DS323x series dates from the mid 2000s ... I don't think Maxim was doing new design DIPs any more by then.If you really must have it in THT, have you considered an adaptor board? There are off-the-shelf ones available.

author: newtekuser
author_rank: Frequent Contributor
timestamp: January 17, 2023, 06:54:13 am
content: Quote from: I wanted a rude username on January 17, 2023, 06:20:55 amGood idea, actually I already have a SOIC adapter I can use for my breadboard prototyping.
Series Resistor in MicroSD Card VCC on Dfplayer - Page 1
Forum section: electronics / general

author: embed4
author_rank: Newbie
timestamp: January 18, 2023, 09:41:10 am
content: Hi.I am decanting some of the Dfplayer design (YX5200 based) onto a PCB. The memory card interface has a 4R7 resistor in-line with the VCC power supply and a decoupling capacitor. I am confused as why this is there as it seems to be going against normal design principles of minimising the supply impedance to reduce voltage drop and current spikes. See attached circuit diagram. Any insights?thanks

author: SeanB
author_rank: Super Contributor
timestamp: January 18, 2023, 09:45:13 am
content: Capacitor provides the low impedance supply, and the resistor is there to prevent high frequency noise from the main supply reaching the card, plus also providing a current limited supply to the card in case the card shorts out, so the board does not get damaged. Resistor is a lot cheaper than a polyfuse, which would do both functions, and provide better current limiting, but costs 100 times more than the resistor.
Question Regarding Rise Times - Page 1
Forum section: electronics / general

author: jayalt
author_rank: Contributor
timestamp: January 13, 2023, 05:19:51 pm
content: I made some power architecture changes on my project and I seem to be getting a lot more issues.I have a microcontroller driving enables to two voltage rails that feed into an IC.I have a digital core voltage that rises in approximately 700us, and a IO/peripherals voltage that rises in approximately 2.5ms.Unfortunately I can’t find any information regarding the specified power sequence or rise time maximums of the IC I’m using.In general and in your experience, are these slow enough to cause power-on reset issues?Thanks in advance.

author: Siwastaja
author_rank: Super Contributor
timestamp: January 14, 2023, 12:41:04 pm
content: IC with multiple power domains and no specifications of power sequencing? Weird, one cannot work without the specs.Maybe show us the schematic, with part numbers?
Novice question regarding extracting and flashing MSP430 firmware - Page 1
Forum section: electronics / general

author: ollihd
author_rank: Regular Contributor
timestamp: January 12, 2023, 11:28:39 pm
content: Hi All,I have a device with a MSP430F156 on it and I was able to extract the memory from it with a MSP-FET430UIF via FET-Pro430.My question is: is the memory dump I got (saved as TI .txt and/or Intel .hex) a complete image of the memory? By this I mean, can I flash the device with the extracted dump (txt or hex) and nothing should go wrong? I really don't want to brick the device.In FET-Pro430 Read Address Range was set to "All memory".

author: planc
author_rank: Regular Contributor
timestamp: January 13, 2023, 03:04:43 am
content: Fet-Pro430 only save the INFO and MAIN memory. It doesn't save the BSL and RAM. Some board have BSL that is writable unlike some located in ROM.For that, I have to use MSP Flasher to load each of them and in Ti Txt and Intel Hex format for 8 files and with verify so it can compared the dump against the file saved. See Msp Flasher manual for the commands.But even with the above. It is possible the chip is connected to an external EEPROM where some other information is stored, and could be erased if the chip is altered. Is this possible guys?

author: ollihd
author_rank: Regular Contributor
timestamp: January 13, 2023, 04:57:38 pm
content: Thanks for the reply.I tried using MSP Flasher but I get the ERROR: "unknow device" every single time. I have tried swapping cables, self powering the unit, but nothing.The command lines are pretty straight forward, it just won't connect to the device.

author: planc
author_rank: Regular Contributor
timestamp: January 13, 2023, 06:35:15 pm
content: MSP430Flasher.exe -n MSP430F2618 -r [main.hex,MAIN] -v main.hexsave it with INFO, BSL and even RAM too to complete.above is a command that works for me everytime. It only shows unknown device error if the JTAG connection was wrong (Is the target self powered and did you connect its Vcc to the FET Vcc_Target (and Vcc_Tool unconnected)? Also not connecting both FEt and Target to same ground wire can produce the error).If the format is correct and it won't run yet will run in FET-Pro430, then I am clueless.Let others who know why help.
How to add 6 buttons to a PCF8574 I2C HD44780 LCD display - Page 1
Forum section: electronics / general

author: profdc9
author_rank: Frequent Contributor
timestamp: March 22, 2019, 04:39:02 am
content: A quick note on how to add 6 buttons to a PCF8574 I2C display, like the kind you commonly get on ebay/aliexpress, so you can get a convenient input interface to your project.If you are willing to forego controlling the backlight, you can easily add 6 buttons to a PCF8574 I2C LCD display. See the attached schematic.The modifications required are:1. Remove the transistor Q1 that controls the backlight (it is a small SOT-23 transistor).2. Connect the "K" of pin 16 of the backlight LED source to ground (pin 1) if you still want the backlight to be lit when powered on.3. There is a 4.7k 0805 SMD resistor between +5V/VDD and pin 7 of the PCF8574. Solder a small wire to the pad of the resistor connected to pin 7.4. Construct a keypad of six buttons, each button in series with a 1N4148 diode. The cathodes of the diodes (the terminal with the band) are all connected together and to the pad you soldered to for pin 3.5. The other terminal of each button is connected to the following 6 pins on the display: RS(4),R/W(5),DB4(11),DB5(12),DB6(13),DB7(14).As long as the backlight pin (P3 on the PCF8574) is high, the display behaves normally. To read the buttons, keep the P2/ENABLE(6) pin on the display low and pull the P3/backlight pin low, and all other pins (P0,P1,P4-P7) are high, so a I2C write is performed with the value 0xF3. Because the pins of the PCF8574 have weak pullups and strong current sinks, when P3 is low, each pin of the display is shorted to P3/low which registers the button press as a zero. A I2C read then reads the state of the pins in P0,P1,P4-P7 with a low state for a button press. To restore normal operation, put the P3/backlight pin high again, or I2C write 0xFB.I have a modified LiquidCrystal_I2C library that includes reading the buttons as well.Dan

author: ewqstar
author_rank: Newbie
timestamp: July 06, 2022, 06:47:00 am
content: Hello. Can you post the modified library?

author: blink_blink_blink
author_rank: Newbie
timestamp: January 15, 2023, 01:34:19 am
content: This is pretty cool. I came up with pretty much the same idea independently after a lot of messing around.You don't need to sacrifice the backlight pin though - just use the LCD enable pin as common for all the switches. It has to be low anyway when the LCD isn't being used.
Would you be able to pull it out? - Page 1
Forum section: electronics / general

author: wek
author_rank: Frequent Contributor
timestamp: January 11, 2023, 10:16:08 pm
content: CC decoding, data lookup in a 93xx EEPROM and the weird replacement algorithm, and then generating the overlaid captions. All in PIC16C622A - 2kW ROM, 128B RAM.Me not.JW
Software to access/recover MSP-FET430UIF via BSL - Page 1
Forum section: electronics / general

author: planc
author_rank: Regular Contributor
timestamp: January 11, 2023, 02:50:31 am
content: I read from this:https://www.mail-archive.com/mspgcc-users@lists.sourceforge.net/msg10539.html"> I've been trying to find any firmware I can to fix it, but I haven't been> able to find any. Do you know where can I find it? Or maybe> someone here has a copy?The MSP430.dll includes compatible firmware for allFETs this dll version supports.CCS adn IAR do so automatically if they get report fromtheir own msp430.dll that the attached FET is notsupported.There is a software that tells the MSP430.dll toupload a new firmware through BSL to the FETs MSP.It seems to work even if the FET doesn't respondanymore and the TUSB chip for the USB/Serialbridge does not enumerate itself as FET but as ageneric TUSB.The link is somewhere in the mentioned threads on theTi e2e forum.And I think I read that the new MSP430.dll V3 hasexternal firmware files. Which are provided asbinaries (while the MSP320.dll is available as source)But that's just a dim memory."Can someone clarify that dim memory? What is the software that tells the MSP430.dll to upload a new firmware through BSL to the MSP-FET430UIF?A few weeks back I nearly bricked my FET. Even if bought 2nd hand, the original MSP-FET430UIF is still expensive used at $70 or more at Ebay. Therefore I'd like to backup its firmware via BSL in case it happens any day or at least know the software that can recover it via BSL.Btw. Does MSP-FET430UIF BSL access have password (is there mass erase enabled)?What do you think?
Crank software HMI - PIC32MZ - Page 1
Forum section: electronics / general

author: matb
author_rank: Regular Contributor
timestamp: January 10, 2023, 10:56:00 am
content: Hi everyone,I have a project coming that requires a HMI touch-screen. Connect to a device with RS485 and display stuff. I was wondering around the internet and found these guyshttps://www.cranksoftware.com/Seems to have quite a lot of hardware compatibilitieshttps://www.cranksoftware.com/platforms/hardwareI'm wondering if any of you guys have any experience with this software, seems quite interesting, refresh rate doesn't looks bad (I have the PIC32MZ dev board).How about the compatibility between different µC ? Switching between ST, Microchip, NXP ... just header files ?Global script or on every pageCost ? Monthly license, annual ?Integration in MPLAB, just C files or lots of headaches to have something in the end ?
problem with IAR code - Page 1
Forum section: electronics / general

author: ُSTP.Asghari
author_rank: Newbie
timestamp: January 10, 2023, 07:47:56 am
content: HelloI wrote a program in IAR. The program has an error when executing the following line.UART1_SendData8("A");The complete program file is available below.I would be grateful if you could tell me the mistakes of my code.

author: ُSTP.Asghari
author_rank: Newbie
timestamp: January 10, 2023, 09:13:13 am
content: it is very short code and the error occurs in the last lineand microcontroller modell is STM8S003F3

author: ُSTP.Asghari
author_rank: Newbie
timestamp: January 10, 2023, 09:51:32 am
content: the code is here :Code:#include "stm8s.h"#include "stm8s_gpio.c"#include "stm8s_uart1.h"#include "stm8s_uart1.c"#include "stm8s_clk.h"#include "stm8s_gpio.h"#include "stm8s_conf.h"#include "stm8s_clk.c"void Clk_Config(void){CLK_DeInit();CLK_HSECmd(ENABLE);CLK_ClockSwitchConfig(CLK_SWITCHMODE_AUTO,CLK_SOURCE_HSE,DISABLE,CLK_CURRENTCLOCKSTATE_DISABLE);CLK_SYSCLKConfig(CLK_PRESCALER_CPUDIV1);CLK_ClockSecuritySystemEnable();CLK_PeripheralClockConfig(CLK_PERIPHERAL_UART1,ENABLE);}void UART1_setup(void){UART1_DeInit();UART1_Init(9600,UART1_WORDLENGTH_8D,UART1_STOPBITS_1,UART1_PARITY_NO,UART1_SYNCMODE_CLOCK_DISABLE,UART1_MODE_TXRX_ENABLE);UART1_Cmd(ENABLE);UART1_ITConfig(UART1_IT_RXNE_OR, ENABLE);}int main( void ){char var;Clk_Config();UART1_setup();GPIO_DeInit(GPIOD);GPIO_Init(GPIOD, GPIO_PIN_5, GPIO_MODE_OUT_PP_HIGH_FAST);GPIO_Init(GPIOD, GPIO_PIN_6, GPIO_MODE_IN_PU_NO_IT);enableInterrupts();UART1_SendData8("A");var = UART1_ReceiveData8();}the error is in line 52and the error message is :Error while running C/C++ Compiler

author: abyrvalg
author_rank: Frequent Contributor
timestamp: January 10, 2023, 10:12:37 am
content: Replace double quotes around A with singles.“A” produces a zero-terminated string and passes a pointer to it into the function call, but the SendData8 function expects a single character to be passed.
posible CubeIDE bug - Page 1
Forum section: electronics / general

author: strawberry
author_rank: Super Contributor
timestamp: January 02, 2023, 03:53:28 pm
content: nucleo F103 , parallel color displayclear display function works (something related to 0x0000 color?) 0x0821 solves it somewhat . 0x0001 doesnt work??when adding additional codeclear display function stop workingneed to delete all code and go clean to make it work again (for some time)broken nucleo board from mouser? , it came with ~3ports damagedbut it should be same as broken ILI9341 could only give static bugs

author: bidrohini
author_rank: Regular Contributor
timestamp: January 05, 2023, 10:24:50 am
content: Are you talking about the STMCube?
Re8500 - Page 1
Forum section: electronics / general

author: Pablos13
author_rank: Newbie
timestamp: January 02, 2023, 09:10:15 am
content: HelloDoes anyone have a bootloader for the RE 8500 stationThe c8051f340 chip has been damaged

author: abyrvalg
author_rank: Frequent Contributor
timestamp: January 02, 2023, 01:30:08 pm
content: Checkhttps://www.eevblog.com/forum/microcontrollers/c8051f340-usb-bootloader-jovy-systems-re8500/msg3075960/#msg3075960
A binary for the STM32F429 Disco - Page 1
Forum section: electronics / general

author: wek
author_rank: Frequent Contributor
timestamp: December 28, 2022, 03:30:37 am
content: Unzip, upload and enjoy!JW

author: darkspr1te
author_rank: Frequent Contributor
timestamp: December 28, 2022, 06:25:29 am
content: What is it? what does it do ? why should i install a random bin file in my disco board?just asking for a little more claritydarkspr1te

author: wek
author_rank: Frequent Contributor
timestamp: December 28, 2022, 10:26:45 am
content: It's a demo, kind of.> Why should I install a random bin file in my disco board?If you don't trust me, you shouldn't.JW

author: xlnx
author_rank: Contributor
timestamp: December 29, 2022, 10:18:44 am
content: I did it.

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 29, 2022, 01:34:03 pm
content: I would set Debug protection to 2 and then ask ST for money for the sudden boost in sales

author: wek
author_rank: Frequent Contributor
timestamp: December 29, 2022, 03:59:50 pm
content: > I did it.And did you make the stars? ;-)> boost in salesHardly so. ST sold hundreds of these last year to folks who unsoldered the mcu and just threw away the rest. Guess why the 2pcs limit at Mouser...JW

author: xlnx
author_rank: Contributor
timestamp: December 29, 2022, 04:29:36 pm
content: Quote from: wek on December 29, 2022, 03:59:50 pmI did! Pressing the touchscreen gives a star where you press it, pushing the user button gives a star at a random place ;-)Thanks for this nice demo

author: wek
author_rank: Frequent Contributor
timestamp: December 31, 2022, 04:11:01 pm
content: v1.1 - more stars! :-)JW

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 01, 2023, 10:49:33 pm
content: Would you mind to post the source too?

author: wek
author_rank: Frequent Contributor
timestamp: January 02, 2023, 06:35:30 am
content: Sorry, I don't want to, buthereis most of it with sources.JW
Unable to build basic PIC16 project in MPLAB X - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: December 30, 2022, 12:26:18 am
content: Hello All,I am trying to build the PIC16 template which I'm planning to use as a skeleton for my PIC16F887 project in MPLAB X (6.05) to no avail. When I hit build I get the following errors.However, if I comment out the offending code in attached interrupts.c, the project builds but I think that's wrong.Attached is a screenshot of my config. Am I doing something wrong here considering all source files came from mplab? Maybe I'm just using it wrong.Code:interrupts.c:23:6: error: variable has incomplete type 'void'void interrupt isr(void)^interrupts.c:23:15: error: expected ';' after top level declaratorvoid interrupt isr(void)Thanks!

author: newtekuser
author_rank: Frequent Contributor
timestamp: December 30, 2022, 12:44:19 am
content: Solved it by changing the function signature for interrupts in interrupts.c from this:Code:void interrupt isr(void)to this:Code:void __interrupt() isr(void)I still don't understand why this doesn't work out of the box.

author: westfw
author_rank: Super Contributor
timestamp: December 30, 2022, 02:14:05 am
content: You've probably been hit with "political correctness" in a newer versions of the compile than the template was originally written for. Using an all-lowercase keyword for an internal function (whether it's a compiler intrinsic or a vendor-provided macro) is "bad form." (and the double-underscores are one of the ways that you're supposed to signify "this identifier is provided by the compiler infrastructure.")

author: JPortici
author_rank: Super Contributor
timestamp: December 30, 2022, 06:27:41 am
content: Quote from: newtekuser on December 30, 2022, 12:44:19 ambecause RTFM the XC8 compiler manual, specifically the chapter about interrupts.Basically, first version is for the old compilers, or for the current compilers in C90 mode.The second version is for the compiler in C99 mode, which has been the default for a few years now

author: DavidAlfa
author_rank: Super Contributor
timestamp: December 30, 2022, 07:16:06 am
content: Do yourself a favour and checkXC8 User's guide.Hint: Section 5.9.1: "Writing an Interrupt Service Routine"

author: newtekuser
author_rank: Frequent Contributor
timestamp: December 30, 2022, 04:41:33 pm
content: Thanks! A bit of a learning curve coming from MikroC PRO
Programming PIC16F84 error with programmer TL866A - Page 1
Forum section: electronics / general

author: Jacopo1983
author_rank: Newbie
timestamp: December 15, 2022, 07:03:30 pm
content: Hello everybody!Thanks to have accepted my registration in this forum. This is my first blog here and first experience with PIC programming.I'm started to study PIC, using MPLAB to compile my first project with PIC 16F84A.I had try to flash this PIC with .HEX file generated from MPLAB, using programmer unit TL866A... but the programming software release this error during programming: ERROR! CODE ADDRESS:0x000000 BUF_VAL:0x2BE4 IC_VAL:0x0000.Do you know how solve this issue? I had attached error screen shot and .HEX file.Thank you very much.Bye

author: Lindley
author_rank: Regular Contributor
timestamp: December 16, 2022, 11:12:28 am
content: Hi,No one come in to answer you yet ?!Just got out our old Pickit2 programmer and tried your .hex code and it does program that one byte of data as you can see.Is that programmer a new , ready made unit that you know is good and working ? just that we know there are some diy kits for it.[ Specified attachment is not available ]

author: JPortici
author_rank: Super Contributor
timestamp: December 16, 2022, 11:54:18 am
content: You need to show us how you connected the device

author: Tnixsw
author_rank: Contributor
timestamp: December 21, 2022, 09:44:02 pm
content: Val 0x0000 means the programmer has not programmed the PIC properly and is usually what you see while reading a code protected chip.Have you used the programmer before and verify that it works? Chip placed in programmer socket properly?Do you have other PICs to try in case the one in question is faulty?Are the settings for the programmer correct? As it is a multi-device programmer, maybe it has a setting to erase the chip before programming.cheersTony

author: Jacopo1983
author_rank: Newbie
timestamp: December 28, 2022, 01:12:43 pm
content: Hi Everybody!I had solve this issue buy PicKit3. I had try and I can program now my 16F84 in the right way.Thank a lot!bye
Entering Bootloader on ATSAMD20 (Microchip AN2570) - Page 1
Forum section: electronics / general

author: Numax
author_rank: Newbie
timestamp: December 22, 2022, 12:39:46 pm
content: Hi everyone,I have a question about the AN2570 from Microchip. (I changed the example a bit to use it on an ATSAMD20J17)In the application note it is written that you can write data to the SRAM in the main application to start the bootloader after a reset.Code:{uint32_t *ram = (uint32_t *)HRAMC0_ADDR;__disable_irq();ram = 0x78656c41;ram = 0x78656c41;ram = 0x78656c41;ram = 0x78656c41;NVIC_SystemReset();}When the bootloader starts, it checks the SRAM:Code:if (BL_REQUEST == ram && BL_REQUEST == ram && BL_REQUEST == ram && BL_REQUEST == ram){ram = 0;return true;}Unfortunately, after the reset, all the values in the SRAM are 0, so the bootloader starts the main application directly.Is there any setting that prevents the SRAM from being reset, or did I miss something else?If I use a hardware pin to start the bootloader, everything works fine.Any suggestions?Thanks in advance.

author: semir-t
author_rank: Regular Contributor
timestamp: December 22, 2022, 12:43:45 pm
content: What example did you use ?Did you made the changes to linker script so that the RAM part where sequence is stored is not being rewritten ?

author: Numax
author_rank: Newbie
timestamp: December 22, 2022, 12:59:41 pm
content: Thank you for the quick reply.I used this example:https://ww1.microchip.com/downloads/en/Appnotes/00002570A.pdfIn the ...flash.ld file I just added the area for the key:Code:MEMORY{rom (rx) : ORIGIN = 0x00000000, LENGTH = 2048 - 256key (rx) : ORIGIN = 0x00000700, LENGTH = 256ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00004000}What changes need to be made for the RAM?

author: cv007
author_rank: Frequent Contributor
timestamp: December 22, 2022, 02:29:30 pm
content: The app note linker code-ram (rwx) : ORIGIN = 0x20000010, LENGTH = 4096 - 16This keeps the first 16 bytes of ram untouched except for communication between app/bootloader.edit- only the bootloader needs to have this ram region change as its the one that would otherwise overwrite the 'message' from the app via its startup code (init data/clear bss).fyi, decode 0x78656c41 into ascii and you have your bootloader author.

author: Numax
author_rank: Newbie
timestamp: December 22, 2022, 03:02:04 pm
content: Thanks, this works well.

author: ataradov
author_rank: Super Contributor
timestamp: December 22, 2022, 04:44:23 pm
content: Quote from: cv007 on December 22, 2022, 02:29:30 pmYeah, it is me. I use that constant everywhere
MCU JTAG Debugger communication - Page 1
Forum section: electronics / general

author: Hawaka
author_rank: Regular Contributor
timestamp: December 20, 2022, 09:06:29 pm
content: Hello Guys,I have been programming MCU for some time now, and I've been wondering why JTAG debugging is so cumbersome. What I mean is why isn't it hot pluggable? Why do you have to re-programm your target to start a debugging session? Why if you loose connection you can't regain it?I have been experiencing this with a Blackhawk XDS200, Blackhawk USB2000, an ST-Link or also with NXP toolchain (and I think also with an MPLAB ICD3). I do understand that every time you build your project the config change, but if you know exactly the build why can't you at anytime plug the debugger, read the PC and RAM and start debugging? I find this quite unpleasant, especially that you will loose your connection easily if you are in a very noisy environment or if you go in deep sleep mode.Am I missing something? Is there some way to change some settings, such as Timeout time or # of retry?

author: ataradov
author_rank: Super Contributor
timestamp: December 20, 2022, 11:49:35 pm
content: JTAG (and SWD) itself is hot pluggable. The rest depends on your target device and debugger software.All ARM devices can drop you into a debug session without programming.Furthermore, I routinely debug devices for which I have no project at all just a binary already programmed into the device. I do that with Atmel devices and use Atmel Studio. There this feature called "Attach to running target". In IAR and Keil there is an option to start a debug session without programming.

author: Hawaka
author_rank: Regular Contributor
timestamp: December 21, 2022, 09:06:48 am
content: Thank you very much Alex!"Attach to running target" were the keywords I was missing. Being able to connect without re-programming will surely make my life much easier.
IC (HFD48KP500) on RK61 keyboard - datasheet? - Page 1
Forum section: electronics / general

author: borealis
author_rank: Unknown
timestamp: February 15, 2019, 08:17:16 pm
content: HiI bought a cheap mechanical keyboard (Royal Kludge, RK61) and the IC on it is labeled "HFD48KP500". Google has only 6 hits on that term, and it looks like you need to register / convince the seller you will use the chip in a product to get access to details. Being able to reprogramme this board would be very useful to me - has anyone come across the IC before? Can one find a datasheet and/or tools for it?Thanks!

author: amyk
author_rank: Super Contributor
timestamp: February 16, 2019, 02:47:10 am
content: Given the production quantities of keyboards, I suspect it's mask ROM so you're unlikely to be able to do anything with it.

author: borealis
author_rank: Unknown
timestamp: February 16, 2019, 11:58:29 am
content: Quote from: borealis on February 15, 2019, 08:17:16 pmPaid €40 (including shipping) for it.

author: legacy
author_rank: Super Contributor
timestamp: February 19, 2019, 03:45:48 pm
content: I have a dreamcast keyboard, without the controller, so it's just the key matrix + keys and enclosure, for sale. It might be a nice idea for a homebrew keyboard10E + S/H, it's brand new

author: mklivoslov
author_rank: Newbie
timestamp: December 20, 2022, 01:34:49 pm
content: I've recently acquired one of the keyboard, second handed. Worked great, did took it apart, tho.The keyboard controller HFD48KP500 is apparently the ARM Cortex-M0 microcontroller from SONiX: SN32F268FProduct page with datasheet:https://www.sonix.com.tw/article-en-998-24753There are comprehensive guides and customisations made by the community, e.g.https://github.com/SonixQMKI used this configuration for accessing the memory:https://github.com/PaulGameDev/GMMK_RETL;DR: I bricked the keyboard, how to reprogram in the need-to-know basis...
ESP32 S3 custom layout, bringing to life - Page 1
Forum section: electronics / general

author: 88.viktor
author_rank: Newbie
timestamp: December 18, 2022, 02:03:01 pm
content: Hi everyone,I'm designing a custom board with ESP32 S3 at a compact form factor. I could not fit a module and anyways needed a strong SMA antenna and thus tried building from IC.I made a stable buck for 3V3. 3.32  with 80..100  Vpp close to the IC. Decoupling capacitors in place as requested in the reference manual. I have also added an additional 2u2 low ESR close to pins 55/56.I did the coding mostly on the devkits and this unit has UART programming option only through pads. EN is pulled high with 10K. BOOT low with 10K. I drive them through pads as well.After powering, with nothing connected, there is a 1.6  PWM on BOOT, 0.4  high, 880  Vpp. EN is stable 3V3. RXD0 has a 1.5  signal with a quick ramp-up to 1  and then discharging over 0.3 . TXD0 something similar with two ramp-ups all the way to 1.44 .After attaching the programmer, it drives RXD0 to 3V3 and I have a 1.6  square wave signal on TXD0 with 1.2  at 3V3, going down to 1.44 . Pulling EN low silences TXD0.I have tested and got the same behavior with 4 different ESP32-S3R2, one ESP32-S3 and one ESP32-S3R8. crystals tested: E1SB40E001202E, CX2016DB40000D0FLJCC. I have tried load capacitors from 8pF to 20pF in 2pF increments since I don't have a probe for XTAL40 lines. (est. ~12pF nominal). Same everywhere.When the crystal region is warm (after hot air), turning it on and off, I'm sometimes getting the boot message; waiting for upload.. and then square wave gibberish on TXD0 again.Bootstrapping pins set up as in manual. V_SPI is close to GND. I guess the internal LDO is SW controlled.Anyone any idea?Thanks

author: Acuario
author_rank: Newbie
timestamp: December 19, 2022, 06:31:25 am
content: Try adding a 1uF capacitor between EN and Gnd. I had reset problems and this solved my problem.It delays EN so the strapping pins are stable before the chip reboots.

author: bidrohini
author_rank: Regular Contributor
timestamp: December 19, 2022, 06:39:15 am
content: You can also post your question here:https://www.esp32.com/viewforum.php?f=2

author: 88.viktor
author_rank: Newbie
timestamp: December 19, 2022, 11:27:08 am
content: Hi All,Thanks for these answers.For future correspondence - might be helpful to someone..I was suspecting the crystal but it was brownout. I missed giving VDD3P3_CPU 3V3. There is probably an internal ~10K to this and so I saw VDD but it couldn't draw current. I guess heating opens temporarily some current path and the 100n holds it for some time.
R5F212 IDE (not a disk drive) interface - Page 1
Forum section: electronics / general

author: R-1125F
author_rank: Regular Contributor
timestamp: December 16, 2022, 04:32:46 pm
content: I am trying to find out how to use an IDE (not a disk drive) interface. I am guessing IDE means Integrated development environment. The schematic shows the port and the connections to the R5F212 MCU. Could someone explain how to use this interface?

author: pcprogrammer
author_rank: Super Contributor
timestamp: December 16, 2022, 04:49:38 pm
content: Did you look in the datasheet?I'm not familiar with this MCU and searched for a datasheet and found one for a R5F21206JFP, but by the looks of it the pinout is different.It might be a single wire debug interface or a way to program the device. Might need a dedicated interface plus the software to work with it.

author: R-1125F
author_rank: Regular Contributor
timestamp: December 16, 2022, 04:54:55 pm
content: Thank you for the reply. The datasheet is herehttps://www.renesas.com/us/en/document/dst/r8c2a-r8c2b-group-datasheetIt says it has a UART or serial I/O, but I don't have any idea how to talk to it.

author: pcprogrammer
author_rank: Super Contributor
timestamp: December 16, 2022, 05:05:04 pm
content: I found the datasheet herehttps://pdf1.alldatasheet.com/datasheet-pdf/view/196273/RENESAS/R5F212A8SNFP.htmlYou have to look at chapter 20.5 to find more about the mode pin. To run a program from the FLASH memory it has to be high.To check the ID code it has to be low, and then P6_6 and P6_7 are used for serial communication to read the ID.The mode pin is also used to program the FLASH. (See page 513) You need a programmer for this.

author: R-1125F
author_rank: Regular Contributor
timestamp: December 16, 2022, 07:37:56 pm
content: Thank you. This helps. I am trying to repair this equipment and I am somewhere below beginner when it comes to microcontrollers. I have worked on things with nicely labled UART ports, but nothing like this.
Infineon XMC7000 - Page 1
Forum section: electronics / general

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: December 13, 2022, 05:53:07 pm
content: I don't know if anyone noticed it (I didn't), but Infineon has announced new members of their XMC family of microcontrollers, the XMC7000 series.These have one or two ARM Cortex-M7 cores running at up to 350 MHz and a single Cortex-M0+ core. Up to 8MB of FLASH and 1 MB of SRAM. Lots of timers, CANFD, Ethernet, Flexray, LIN, 12-bit 96-channel 1 Msps ADC, etc.Seems to be geared towards motor control/power conversion. Not much info available yet except for a datasheet and listing of the registers. It's not even listed on the main XMC family page, but here's a link:https://www.infineon.com/cms/en/product/microcontroller/32-bit-industrial-microcontroller-based-on-arm-cortex-m/32-bit-xmc7000-industrial-microcontroller-arm-cortex-m7/xmc7200-e272k8384aa/

author: JPortici
author_rank: Super Contributor
timestamp: December 13, 2022, 06:12:05 pm
content: Flexray is still being used? I thought that is was being hastily abandoned in favor of automotive ethernet96 channel ADC?You didn't mention: it has 5V IOs!

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: December 13, 2022, 06:26:58 pm
content: Yes, I forgot to mention that the parts support a power input range of 2.7 V to 5.5 V and GPIOs support this same range.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: December 14, 2022, 01:48:47 am
content: Quote from: Sal Ammoniac on December 13, 2022, 06:26:58 pmWow, that's unusual for a 350MHz part. Usually they struggle to thermally manage core regulation on the very high end MCUs.ahh... found this in the data sheet : They use an external NPN, (TO-252-3 example quoted) or LDO or SMPS.To support worst-case loading, with both M7 CPUs and the M0+ CPU at their maximum clock frequency and allintegrated peripherals operating, a core external regulator is required, capable of load currents up to 600 mA.While the control and monitor circuits for the core external regulator are internal to XMC7200, the powerregulating element (NPN pass transistor, PMIC, or LDO) is external. This reduces the overall power dissipationwithin the XMC7200 package, while maintaining a well-regulated core supply.The core external regulator may be implemented with either an external NPN pass transistor, PMIC, or linearregulator (LDO). Each implementation requires different external components on the PCB, and differentconnections to XMC7200 for both regulation and control.

author: bidrohini
author_rank: Regular Contributor
timestamp: December 21, 2022, 01:16:42 pm
content: Hope it will be practically available soon.
How does this old ER1400 EAROM work? - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: December 16, 2022, 12:38:24 pm
content: I'm trying to understand how this old ER14OO EAROM in the attached schematic works. My aim is to be able to read its contents. Is anyone familiar with its operation? Thanks.David.PS Just found a General Instrument data book with Bulletin 1207 application note. Not had time to read the app note yet. It seems I'm gradually answering my own question. May be useful for those following along, though.http://www.bitsavers.org/components/gi/_dataBooks/1983_GI_Electrically_Alterable_Non-Volatile_Memory_Handbook_1983.pdfPPS Just found this (PIC1650_TO_ER1400EAROM_EXTRACT_ASM_LIST) application section from the PIC1650 datasheet (app note attached-datasheet too big). I need to extract the assembly listing and then convert to CCS C.PIC1650 Data sheet herehttp://www.bitsavers.org/components/gi/PIC/1983_PIC_Series_Microcomputer_Data_Manual.pdf