hybridfree/eevblog-posts huggingface dataset:
(TL866II+ Programmer) Issues writing to ATMEL 28C16 EEPROM - Page 1
Forum section: electronics / general

author: Shyy
author_rank: Newbie
timestamp: November 08, 2019, 09:10:37 am
content: Hello!I am stumped. After weeks of trying to sort this out I am totally stuck.I have a legitimate TL866II+ EEPROM programmer running the latest firmware (04.2.109) and I am unable to successfully write to any ATMEL 28C16 EEPROM. I have tried the official software and the hex I am trying to write is:04 01 40 00 00 00 00 0004 01 44 81 20 00 00 000E E0 40 14 48 10 02 0000 00 40 14 48 10 02 0000 00 84 04 01 44 82 1000 00 00 04 01 40 A0 00However using the official software from autoelectric.cn I get an error that write verification failed for byte 2 and that it read FF when it expected 01.If I then READ the chip I see that the programmer wrote the following:04 FF FF FF FF 00 FF FFFF FF 44 FF FF FF FF 00FF FF FF FF 48 FF FF FFFF 00 FF FF FF FF 02 FFFF FF FF 04 FF FF FF FF00 FF FF FF FF 40 FF FFWhere it seems to be skipping every 8 bytes. I have also tried to program it using linux and the open source EEPROM magiPro software fromhttps://gitlab.com/DavidGriffith/minipro/but again I have the same issue. I have tried different ATMEL 28C16's and have even tried one I was able to successfully program manually but the issue persists making me think it is something to do with the EEPROM.Has anyone had any experience with an issue like this?

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: November 10, 2019, 06:39:20 am
content: It appears to be only writing every 5th location. The AT28C16 has a self-timed write cycle, so perhaps the programmer is not waiting until the write is finished and attempts to write to subsequent locations during the write cycle.How long does your programmer take to write the entire EEPROM? (my TL866CS reports 2140ms, or ~1.04ms per byte).According to the datasheet the byte write time for a AT28C16 is 1ms, but the AT28C16Eoffers a byte write time of 200us. 1ms is 5 times 200us, which is suspicious. Are you sure you didn't select AT28C16E by mistake?

author: jdinmk
author_rank: Newbie
timestamp: December 23, 2019, 06:43:23 pm
content: Hello Shyy,Did you have any luck with this. Like you, I tried all the different AT28C16 variants as well as David Griffith's CLI tool and have the same problem. I also have a few AT28C256s which program with no trouble at all, so I know the hardware is okay.

author: bobhillier
author_rank: Newbie
timestamp: January 17, 2020, 03:04:36 pm
content: I had this same problem. I got around it by selecting chip type CAT28C16A.Thanks for the timing explanation.
RT-Thread IoT OS offers STM32F4 BSP  - Page 1
Forum section: electronics / general

author: Peter9090
author_rank: Contributor
timestamp: January 13, 2020, 06:29:03 am
content: This BSP was created by RT-Thread Community contributor.Here’s the status of this BSP supports peripherals is as follows:On-chip peripherals Status RemarkGPIO Support PA0, PA1... PH1 ---> PIN: 0, 1...144UART Support UART1SPI Support SPI1I2C Support Software I2CEasy to Master:This BSP provides MDK4, MDK5, and IAR engineering for developers and it supports GCC development environment. Here's an example based on MDK5 development environment,it introduced how to run the system.Hardware Connection:Use a data cable to connect the development board to the PC and turn on the power switch.Compilation Download:Double-click the project.uvprojx file, open MDK5 project, compile and download the program to the board.The project default configuration uses the ST-LINK to download the program, after ST-LINK connect to the board, then click the download button.Run results:Once successfully download the program, the system will start to run automatically, check how the LEDs work on the board, red lights of LD1 and LD2 will always be on, and red LD5 will flash periodically.Connect the corresponding serial port of board to the PC, and open the corresponding serial port (115200-8-1-N) in the terminal tool, after the device is reset, you can see the output information of RT-Thread, as follow:Code:\ | /- RT - Thread Operating System/ | \ 3.1.1 build Nov 19 20182006 - 2018 Copyright by rt-thread teammsh >Advanced use:This BSP defaults the function of turning on GPIO and serial 1, for more advanced functions that require the Use of ENV tools to configure the BSP, the process is as follows:1. Open env tool under bsp.2. Enter menuconfig command configuration project, configure it and save and exit.3. Enter pkgs --update command to update the package.4. Enter scons --target-mdk4/mdk5/iar command to rebuild the project.If you have any questions, you can leave the comments, or find RT-Thread at Twitter.RT-Thread Github:https://github.com/RT-ThreadRT-Thread BSP Github Address:https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f407-st-discoveryFollow RT-Thread at Twitter:https://twitter.com/rt_thread

author: Peter9090
author_rank: Contributor
timestamp: January 13, 2020, 06:35:20 am
content: FYI: RT-Thread is an open source embedded real-time operating system.

author: ZX
author_rank: Newbie
timestamp: January 14, 2020, 06:19:29 am
content: Hello, do you have BSP for ST Micro STM32F7 Discovery?

author: bingo600
author_rank: Super Contributor
timestamp: January 14, 2020, 07:04:13 pm
content: Quote from: ZX on January 14, 2020, 06:19:29 amHave a lookhttps://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/Bingo

author: ZX
author_rank: Newbie
timestamp: January 15, 2020, 01:18:26 am
content: Oh OKK, will check, thanks!!!!

author: Peter9090
author_rank: Contributor
timestamp: January 17, 2020, 03:13:09 am
content: Yes, You can find more BSP on their Github, but you need to use google translation cuz BSP part is with Chinese character.
Help needed to program MC68HC908GP32  - Page 1
Forum section: electronics / general

author: james101
author_rank: Contributor
timestamp: January 15, 2020, 02:50:28 am
content: Hi im trying to program a new chip with the bin file i got from a know good one.i have read the bin file into the programmer.but when i go to write the information to the chip it comes up write error (0000)the programmer im using is a orange 5any information on how to program this chip would be greatand advice on how to do it.im i missing something like a boot etcthank you
LPC43XX DMA timer triggered transfers - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: September 03, 2018, 01:11:24 pm
content: Hi,I have written this simple code, the Memory to memory DMA would work fine, but when I try to use a timer match to trigeer DMA transfers it would fail with this flag in DMA callbackQuoteHere is my sample code, Do you have any Idea what I'm missing?Code:void mySPI_callback(uint32_t event){switch (event){case GPDMA_EVENT_TERMINAL_COUNT_REQUEST:/* Success: Wakeup Thread */__breakpoint(0); /* Error: Call debugger or replace with custom error handling */break;case GPDMA_EVENT_ERROR:/* Occurs in slave mode when data is requested/sent by masterbut send/receive/transfer operation has not been startedand indicates that data is lost. Occurs also in master modewhen driver cannot transfer data fast enough. */__breakpoint(0); /* Error: Call debugger or replace with custom error handling */break;}}int main(void){GPDMA_Initialize();uint16_t TXDummi={0x1234,2,3,4,5,6};uint16_t RXDummi;//reset on match 0LPC_TIMER3->MCR=0x00000002;//Toggle on match 0(initial states are hi)LPC_TIMER3->EMR=0x00000031;//Match about 500ms since CPU clock is 180MHzLPC_TIMER3->MR0=90000000;//Clear timer interruptsLPC_TIMER3->IR=0xFF;//enable timerLPC_TIMER3->TCR=0x00000001;//Select TImer3 MR0 as DMA RequestGPDMA_PeripheralSelect (7, 0);//Configure Channel 1 of DMAGPDMA_ChannelConfigure (0,(uint32_t)LPC_TIMER3->TC,(uint32_t)RXDummi,256,//800 bytesGPDMA_CH_CONTROL_SBSIZE(GPDMA_BSIZE_8) |GPDMA_CH_CONTROL_DBSIZE(GPDMA_BSIZE_1) |GPDMA_CH_CONTROL_SWIDTH(GPDMA_WIDTH_HALFWORD) |GPDMA_CH_CONTROL_DWIDTH(GPDMA_WIDTH_HALFWORD) |GPDMA_CH_CONTROL_S |GPDMA_CH_CONTROL_D |//GPDMA_CH_CONTROL_DI |GPDMA_CH_CONTROL_I,GPDMA_CH_CONFIG_SRC_PERI(7)|GPDMA_CH_CONFIG_FLOWCNTRL(GPDMA_TRANSFER_P2M_CTRL_PERI) |GPDMA_CH_CONFIG_IE |GPDMA_CH_CONFIG_ITC |GPDMA_CH_CONFIG_E,mySPI_callback);while(1){}}

author: moffy
author_rank: Super Contributor
timestamp: January 23, 2020, 07:52:42 am
content: For a transfer from a peripheral you have to specify AHB1. AHB0 cannot access peripherals.
Mplabx support for PicKit4 - do all versions of Mplabx support it? - Page 1
Forum section: electronics / general

author: DTJ
author_rank: Super Contributor
timestamp: January 07, 2020, 01:31:58 am
content: I'm temporarily using a PicKit4 for a customer on my own pc.I run Mplabx 3.35 and it's not recognising the PicKit4. Does anyone know off hand if Mplabx 3.35 supports the PK4?I can't find any info on if there was a point at which Mplabx doesn't support / supports the PK4. The PK4 does not show up as a programmer option and I cannot find a specific installation tool or driver for it.I'm happy with Mplabx3.35 and don't want to update if not necessary.Cheers.

author: MarkF
author_rank: Super Contributor
timestamp: January 07, 2020, 02:05:43 am
content: Very confusing...Quotes from the Microchip web site:https://www.microchip.com/developmenttools/ProductDetails/PG164140#additional-summary"The MPLAB PICkit 4 now has Programmer-to-Go functionality for 8-bit, 16-bit and 32-bit PIC MCUs and dsPICs and also SAM MCU devices.The firmware update comes withMPLAB X IDE v5.30. AVR is expected soon!""System Requirements.MPLAB X IDE version 4.15or later (version 5.30 or later for programmer-to-go functionality, except for AVR devices)"Note.I have a old Win XP machine and I believe MPLAB X 3.35 is the last supported version for XP.

author: DTJ
author_rank: Super Contributor
timestamp: January 07, 2020, 04:05:29 am
content: Many thanks for your response Mark, I don't seem to be able to find info like that as easily as I used to!Looks like I need to update MPLABX.cheers and thanks again for your help.

author: westfw
author_rank: Super Contributor
timestamp: January 07, 2020, 07:24:40 am
content: It's the "programmer to go" feature that requires 5.3. Basic PIC programming requires 4.15 (I guess - I haven't used it with PICs yet.)Using PICKit4 with an AVR or ARM pretty much requires the very latest (5.3), or perhaps "the next release" :-(

author: DTJ
author_rank: Super Contributor
timestamp: January 07, 2020, 07:50:41 am
content: Thanks West, I'm going to update and see how it goes.
Arduino MEGA 2560 can't reach max SPI SCK frequency - Page 1
Forum section: electronics / general

author: raff5184
author_rank: Regular Contributor
timestamp: December 20, 2019, 03:41:17 pm
content: Hi all,I have a simple SPI master code that I run on a MEGA 2560, but I can't get the 16MHz SCK. I only get 8MHz max. I use the functionCode:SPI.beginTransaction(SPISettings(16000000, MSBFIRST, SPI_MODE3));to set the clkCode:static const long spiClk = 16000000;#include <SPI.h>void setup() {pinMode(SS_pin, OUTPUT);digitalWrite(SS_pin, HIGH);Serial.begin(115200);SPI.begin();}long result;byte result1;byte result2;byte dataToSend =01;//0xFF;void loop() {// Send a 2 btes on the MOSI and save MISO bytes in 'result1 & 2' variablesSPI.beginTransaction(SPISettings(spiClk , MSBFIRST, SPI_MODE3));digitalWrite(SS_pin, LOW);result1 = SPI.transfer(dataToSend);result2 = SPI.transfer(dataToSend);digitalWrite(SS_pin, HIGH);SPI.endTransaction();what am I missing?Also between transactions there is a delay of 15us, is it possible to reduce it?Thank you

author: T3sl4co1l
author_rank: Super Contributor
timestamp: December 20, 2019, 06:05:28 pm
content: What's the CPU clock frequency?You'll have to look into the libraries to see what they're waiting on, if it's spinning the CPU or setting up a buffer or interrupt or what.In general, Arduino is made for the absolute opposite of speed, and if you want speed, you can just use avr-libc directly.Tim

author: raff5184
author_rank: Regular Contributor
timestamp: December 20, 2019, 07:39:24 pm
content: it's 16MHz, apparently the SPI can only do 1/2 of it

author: hussamaldean
author_rank: Unknown
timestamp: January 21, 2020, 02:36:30 pm
content: according to the block diagram of SPI in atmega2560, the clock signal is taken from the external crystal. since arduino mega is using 16MHz crystal, the maximum clock signal will be 8 MHz since the clock divider can be selected as following, 2,4,8,16,32,64,128so, if you need a faster spi, either change the mcu and go for stm32 or any other arm cpu or try to optimize the code.
Double functionality on Micro - Page 1
Forum section: electronics / general

author: Skylimit
author_rank: Newbie
timestamp: January 06, 2020, 07:11:29 am
content: I have a issue where due to lack of i/o lines i need to double up on one i/o line. As an A/D to read light sensor and output to drive the LED.The light sensor output should go from 0 to 2.7V. However, it is being clamped to around 2V (forward volt drop of LED) i think it may be due to the 220R and leakage current of the LED.My possible solution was to use an Zener instead of the 220R or a diode instead of the 220R. I have no other i/o lines available.Any help would be appreciated.Thanks in advance.

author: Berni
author_rank: Super Contributor
timestamp: January 06, 2020, 07:47:18 am
content: Well many ways to skin a cat. Often its a better idea to dual purpose digital pins rather than analogBut you can do things like change resistor values around your light sensor to make it produce a smaller voltage. Or you can even use LEDs as light sensors. They work like solar cells and produce a small voltage when light shines in them so you might be able to use the ADC to read the voltage the LED is producing.

author: woofy
author_rank: Frequent Contributor
timestamp: January 06, 2020, 09:39:45 am
content: Drive the LED via a MOSFET.Then high gate impedance should not affect the A/D.

author: Kleinstein
author_rank: Super Contributor
timestamp: January 06, 2020, 10:03:24 am
content: One could get a little more voltage with a diode in series to the LED. Still the LED will be some loading to the analog signal, so it is a compromise on accuracy.

author: Whales
author_rank: Super Contributor
timestamp: January 06, 2020, 10:13:19 am
content: N.B. if your other pins are driving lots of LEDs:https://en.wikipedia.org/wiki/Charlieplexing
This book on STM32: Lets make this a group effort - Page 1
Forum section: electronics / general

author: lawrence11
author_rank: Frequent Contributor
timestamp: January 12, 2020, 05:54:30 pm
content: https://botland.com.pl/en/books-about-microcontrollers/13945-stm32-microcontrollers-for-beginners-aleksander-kurczyk.htmlSo theres this book nowNow we have both the Carmine Noviello book and this, who can convince this guy to make an english one?

author: Yansi
author_rank: Super Contributor
timestamp: January 12, 2020, 06:34:54 pm
content: If it does not go deep into details of internal workings and register settings (which I think it does not), then you can google up tens of different online tutorials for the same.//Edit: (And I bet there could be found even those in-depth tutorials)

author: lawrence11
author_rank: Frequent Contributor
timestamp: January 14, 2020, 02:53:43 am
content: Lets make this a do it all for me together effort.Everybody could use help with eclipse and make a whole project.I am willing to buy the ebook for somebody in Poland. The ebook that is, send me PM for more details.

author: FlyingDutch
author_rank: Regular Contributor
timestamp: January 14, 2020, 05:35:49 pm
content: Hello @lawrence11,it would be difficult to convince the author and publishing house to issue English version of this book.QuoteI don't understand why you want to do this, what is purpose? The book has 242 pages and translating it to English would spend much time. There are many similiar books available in English.Kind regards

author: lawrence11
author_rank: Frequent Contributor
timestamp: January 14, 2020, 05:38:35 pm
content: software will do this, lets keep this between you and me.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 15, 2020, 04:21:50 pm
content: I don't think you can do this behind the author's back anyway, so first step would be to contact him.

author: lawrence11
author_rank: Frequent Contributor
timestamp: January 16, 2020, 06:25:12 pm
content: Flying Dutch, contact him plz?
Questions regarding ESP8266 and SPI flash - Page 1
Forum section: electronics / general

author: soFPG
author_rank: Frequent Contributor
timestamp: January 02, 2020, 06:08:42 pm
content: I was wondering whether this family of flash ICs from GigaDevice is compatible with the ESP8266:http://www.elm-tech.com/en/products/spi-flash-memory/gd25q32/gd25q32.pdfI also have two further questions:- does the ESP8266 uses /WP and /HOLD pins if configured in Dual SPI Mode or can they be left open (considering a "bare" ESP8266EX, no module such as 12-F) to get two more usable I/Os?- how does the GD25Q32 flash IC know which SPI mode to use (Dual SPI / Quad SPI)? According to this GitHub-Page:https://github.com/espressif/esptool/wiki/SPI-Flash-Modesthe ESP8266 uses0xBBHcommand if configured indiomode but the command itself is transmitted via normal SPI - so I guess the flash IC works in normal SPI mode until these "burst read"-commands arrive then the flash IC changes either to Dual SPI / Quad SPI mode (depending on the command)?Another concern of mine: I searched through some Winbond flash ICs and they stated in their datasheets that, depending on the part number, the IC only supports either Dual or Quad SPI mode. As I searched through the GigaDevice datasheet I couldn't find such a statement so I assume I can use both SPI-methods with it?Best regards
wave player  - Page 1
Forum section: electronics / general

author: alizare368
author_rank: Regular Contributor
timestamp: January 01, 2020, 02:41:47 pm
content: Hi everybodyI want to make a wave player with stm32f030k, I read the data correctly fro SD .and I put the data in the buffers,and send to PWM. and read and send ping pong data.the PWM Combination circuit is composed of two resitors: 1M and 3.9K ,The larger resistor is connected to LSB PWM output channel while the smaller resistor is connected to MSB PWM channel.the Timer 14 adjusted to interrupt for sample rate 44100HZ.the timer 3 adjusted for PWM generate in channel 1 and 2 for left channel , the prescaler register is 255.the MCU clock is 48MHZ .for test,I generate sine wave with Audacity program with sample rate 44100 and f=500HZ.The combined output of both channels is links below:https://youtu.be/ZwDEqyVHno4https://youtu.be/bOgQmuo64mMthis is main code:Code:int main(void){myfres=disk_initialize(0);myfres=f_mount(0, &fs);myfres=f_open(&myfile,"6.wav",FA_READ);myfres=f_read(&myfile,&sai_buf,sample_no,&bt);HAL_TIM_PWM_Start(&htim3,TIM_CHANNEL_1);HAL_TIM_PWM_Start(&htim3,TIM_CHANNEL_2);HAL_TIM_Base_Start_IT(&htim14);The image of combined output of both channels is attachment below:What do you think is the problem???

author: Simon
author_rank: Unknown
timestamp: January 02, 2020, 08:27:02 am
content: Please do not post repeat topics about the same thing. It causes confusion and annoys people.
Bus Pirate v3.6 XSVF Code Compilation Help (PIC24FJ64GA002 With MPLAB IDE 5.30) - Page 1
Forum section: electronics / general

author: Frustcirc
author_rank: Newbie
timestamp: December 29, 2019, 09:00:41 am
content: Hi everyone,I have been trying to figure out how to compile and rebuild the XSVF firmware for a Bus Pirate to make some customisations to the firmware. The Bus Pirate uses a PIC24FJ64GA002 and currently I have installed MPLab X IDE (v5.30) and XC16 cross compiler (v1.41). I am using the code for the XSVF firmware located here:https://github.com/BusPirate/Bus_Pirate/tree/master/Firmware-Alternates/firmware-XSVFplayerDue to numerous issues in the code I have made changes in an effort to make it compile (seehttp://dangerousprototypes.com/forum/index.php?topic=10404.0). However as described in the post it is impossible to compile the program using the IDE. It appears as if the UART library/variables that always seem to work no matter what in other people’s code are listed as undeclared. A copy of the code I am trying to compile incorporating the changes described on the dangerous prototypes forum post linked to can be found at:https://1drv.ms/u/s!Araf1cyQhCzgg2AN6mHDiXC1X78_?e=xlhVuGWould anyone who knows how to compile code for PICs be able to help me out? Then I would be able to recompile the code as often as I want. Alternatively as the post on the dangerous prototypes forum suggests I would like to have a copy of the firmware with each different MAXLEN variable (or it would be awesome for the firmware to prompt for a maxlen value on start/connect via serial; I would if I had the skill but I don’t and I have spent so long trying to figure out all the issues and I am not getting any further).Thanks.
Errordevice-specs/specs-atmega3208: No such file or directoryGccApplication1 - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: December 27, 2019, 06:12:47 pm
content: Code:SeverityCodeDescriptionProjectFileLineErrordevice-specs/specs-atmega3208: No such file or directoryGccApplication1avr-gcc.exe0Well that is it, what the hell does that mean?

author: Simon
author_rank: Unknown
timestamp: December 28, 2019, 12:21:31 pm
content: Seems I needed an update that kept failing.

author: bingo600
author_rank: Super Contributor
timestamp: December 28, 2019, 03:13:58 pm
content: A missing device pack , for that MCU ??Are you using Studio7 ? (I'm on linux ... pure avr-gcc)Maybe thishttps://www.avrfreaks.net/forum/cannot-get-atmel-studio-7-install-device-packs?skey=device%20packFor "pure avr-gcc" see herehttps://www.avrfreaks.net/forum/device-family-packs-are-annoying?skey=device%20pack/Bingo

author: Simon
author_rank: Unknown
timestamp: December 28, 2019, 03:58:55 pm
content: AS7, It's all working now. The update procedure was not clear and the download kept failing without me realizing it so i thought it had installed. Once i moved the laptop closer to my router it downloaded successfully and has been working fine now.

author: westfw
author_rank: Super Contributor
timestamp: December 28, 2019, 07:11:48 pm
content: QuoteFor a DE that's supposed to be "Integrated", AS7 annoyingly has about four separate "update" utilities :-(
NUCLEO-H7A3ZI-Q  and STM32H7B3I-DK  - Page 1
Forum section: electronics / general

author: mach665
author_rank: Newbie
timestamp: January 06, 2020, 11:16:31 pm
content: Mouser listed NUCLEO-H7A3ZI-Q and STM32H7B3I-DK:https://www.mouser.com/ProductDetail/STMicroelectronics/NUCLEO-H7A3ZI-Q?qs=%2Fha2pyFadugrM6hc1Mbv8EqKhEsKf%252BZh2wBAapPTa9A6Rp7XenxZ3w%3D%3Dhttps://www.mouser.com/ProductDetail/STMicroelectronics/STM32H7B3I-DK?qs=%252B6g0mu59x7K5xC7xZNKPSA%3D%3DNew MCUs comming from ST, but can't find any information on STM32H7A* and STM32H7B*. Any info on the features of these chips?

author: MasterT
author_rank: Frequent Contributor
timestamp: January 07, 2020, 12:48:20 am
content: Latest update stm32cubeMX has nucleo-H7A3, you can explore all features. What I see, there are 2 adc instead of 3 in h743, 16-bits

author: lucazader
author_rank: Regular Contributor
timestamp: January 07, 2020, 01:19:01 am
content: They seem to have more ram (1184 vs 1024 or 692) compared other H7 series parts.As well as the max clock speed is "only" 280MHz.The A3 and B3 look to be the fully fledged parts with up to 2M ram.The B0 parts are the value line ones that only have 128K flash like the H750 partsHas a GFXMMU peripheral (graphic memory management?)OctoSPI supportthe H7B0 has 2 OTFDEC peripherals "On the fly decryption engine"PSSI interface (Parallel synchronous slave interface)Seems to be about it from what the cubemx is bringing up.The peripheral clock mux mess looks to be about the same as other H7's
Make a BlackMagic Probe out of a STM32 "Bluepill"  - Page 1
Forum section: electronics / general

author: bingo600
author_rank: Super Contributor
timestamp: December 10, 2019, 07:50:37 pm
content: See herehttps://www.eevblog.com/forum/microcontrollers/stm32-without-stm-libraries/msg2823454/#msg2823454/Bingo

author: bingo600
author_rank: Super Contributor
timestamp: December 10, 2019, 09:28:21 pm
content: Seems like STM's st-link utility might support programming 90K in a 64K device.That prob. means it can be used to program the "combined" binary into the bluepill./Bingo

author: bingo600
author_rank: Super Contributor
timestamp: December 28, 2019, 02:39:07 pm
content: I just spend 2hr scratching my head , when doing a blinky for this little boardhttps://www.aliexpress.com/item/32762027807.htmlI just couldn't get it to programTried BMP & ST-LINKv2 (st-flash) , and none of them would program.Turned out the"=(!/¤!)!#"!!!Manuf. had set code-protection on the factory installed "blinky"I finally got it erased with OOCD , but wondered if a BMP was capable of the same.It turns out that there is ahexprog.pyincluded in the "scripts" subdir of the BMP git repos , that should be able to reset the protection bits on a STM32.I did not try it , as i already has reset the bits via OOCD.QuoteThe BMP SWD pins are actually the "Original SWD pins on a BMP bluepill - swlink" (PA13 & PA14) . making it quite easy to connect to a targetSo i learned how to erase the fuses via a BMP ... Not all bad/Bingo
Trojan at PROGISP - Page 1
Forum section: electronics / general

author: panoss
author_rank: Frequent Contributor
timestamp: December 30, 2019, 05:00:05 pm
content: I have a USBAsp programmer and I want to program a BIOS ic which I think is corrupted.The ICis thisone, an EN25F80-75HCP.I found that with USBAsp I can use the program 'PROGISP'.But I checked it with virus total and found that it is infected with a trojan:So, my question is: with which other software I can program the above mentioned IC (using, of course, my USBAsp as a programmer)?Or, is there some way to remove the trojan from the PROGISP?Or maybe it 's not really a trojan?

author: panoss
author_rank: Frequent Contributor
timestamp: December 30, 2019, 05:34:47 pm
content: I downloaded it from another link, 'clean'.But it only can program AVR MCUs, not BIOS ICs.I guess with USBAsp I cannot program it, I 'll have to wait for the programmer I have ordered.

author: NorthGuy
author_rank: Super Contributor
timestamp: December 31, 2019, 02:37:59 am
content: False virus detection is very common.

author: coromonadalix
author_rank: Super Contributor
timestamp: December 31, 2019, 03:23:02 am
content: Progisp is mostly an avr flash tool, but it can do 93c series and 24c series memory chipSome talks / threads to program it with an arduinohttps://forum.arduino.cc/index.php?topic=110121.0https://tomvanveen.eu/flashing-bios-chip-arduino/You have very cheap ch340 ch341 based programmers under 5 buck ??

author: panoss
author_rank: Frequent Contributor
timestamp: December 31, 2019, 04:47:06 pm
content: Quote from: coromonadalix on December 31, 2019, 03:23:02 amNo I haven 't such a programmer, but I have ordered a 'USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Flash' (this is it 's description).

author: wraper
author_rank: Unknown
timestamp: December 31, 2019, 04:56:08 pm
content: Quote from: panoss on December 30, 2019, 05:00:05 pmReally? Some shitty antivirus detecting something while the rest report it fine.

author: iMo
author_rank: Super Contributor
timestamp: December 31, 2019, 05:53:37 pm
content: FYI -https://www.eevblog.com/forum/microcontrollers/asprogrammer-flash-chips-(spi-i2c-microwire)-via-usbasp/
AVR Clock Prescaler - Page 1
Forum section: electronics / general

author: admiralk
author_rank: Regular Contributor
timestamp: December 27, 2019, 04:54:15 pm
content: This is probably a stupid question, but if I change the prescaler, in software, not buy burning the fuses, will it stick?Basically, if I change it to 1 and later want to revert back to 8 can I just remove that part from the code, or do I need to change it back in code? I want to say it does not stick and the fuses reset the register on startup. If I want it to stick, I need to burn the fuses. Just wanting to make sure.

author: madires
author_rank: Super Contributor
timestamp: December 27, 2019, 05:31:41 pm
content: No, it won't stick.

author: I wanted a rude username
author_rank: Frequent Contributor
timestamp: December 27, 2019, 08:46:40 pm
content: Other than that though, once you've set CLKPR the microcontroller runs just the same as using the fuses. So if it's easier in your workflow, you can just do it in software.The main reason you'ddefinitelywant to use the fuses is to enable the low power 128 kHz oscillator. Compared to the 8 MHz one prescaled down by 64, the low power one uses roughly an order of magnitude less power.

author: admiralk
author_rank: Regular Contributor
timestamp: December 27, 2019, 10:59:08 pm
content: Thanks, I am just wanting to see if running faster will do the opposite of running slower, using delays. It is easier to test things if I do not have to remember to reset them when I am done. especially if it is a couple days later that I want to go back.

author: Psi
author_rank: Super Contributor
timestamp: December 27, 2019, 11:20:12 pm
content: Depending on how you change the prescaler you may need to update your UART settings to keep the baud rate the same. (if you're using the UART)If using a library call this may happen automatically, if using the hardware register it wont.

author: admiralk
author_rank: Regular Contributor
timestamp: December 28, 2019, 01:38:47 am
content: No worries, it was just to see if faster would be the opposite of slower(delay), which it was not in this case. I just needed to put the delay in the right place.Code:void writeDigit(uint8_t *digit){for(uint8_t i = 0; i < 4; i++){shiftInColumn(digit);turnOnColumn(i);shiftInColumn(digit);turnOffCol(i);}}The secondCode:shiftInColumn()did the trick. If that makes sense.
Show laser repair - STC 90C516RD+ Microprocessor - Page 1
Forum section: electronics / general

author: PhelarNord
author_rank: Newbie
timestamp: December 27, 2019, 07:42:41 pm
content: Hi!I´m trying to pin down a problem with a stairville DJ lase 150. Neither the laser or the x and y motor is working.The psu around the circuit seems fine, when i pull the ttl control lines from the laser module board the lasers turns on...so something tells me ive got a problem with the microcontroller(allready changed the crystal).So i want to see if i can get get any response via some kind of programmer, then maybe pull the code from the stc....I need some advice regarding the usb isp device that will work with my stc(a link to aliexpress), and if someone got more troubleshooting tips.Cheers!
STM32cube IDE debugging two device at once. - Page 1
Forum section: electronics / general

author: lawrence11
author_rank: Frequent Contributor
timestamp: December 25, 2019, 08:44:03 pm
content: So on my custom board I have 2x STM32's, both use SWD 3 wire comm with hardware reset and both of them connect/debug individually with ST-linkV3.I was wondering how exactly people work in a multi chip, 2x ST-Link debuggers , 2x debugging instances.

author: hansd
author_rank: Contributor
timestamp: December 26, 2019, 01:44:06 am
content: I would say have a project for each MCU and link each ST-linkV3 with their corresponding S/N (option 'Use specific ST/Link S/N).
STC 12c5a60 with TL866 (II) programer - Page 1
Forum section: electronics / general

author: alanb
author_rank: Frequent Contributor
timestamp: December 23, 2019, 11:11:26 am
content: I purchased a TL866(II) programmer specifically to read and reprogram an STC12c5a60s2 microcontroller discovering later that it is not on the list of supported chips.Are there any known workarounds for this? for example:a)selecting a chip from another supplier with equivalent programming characteristics and pin outs.b)Third party software that supports the STC12c5a60s2c) A way to add new devices to the existing TL866 software?Thanks in advanceAlan

author: wraper
author_rank: Unknown
timestamp: December 23, 2019, 11:18:46 am
content: You don't need any programmer. It can be programmed in circuit via UART.

author: alanb
author_rank: Frequent Contributor
timestamp: December 23, 2019, 11:24:26 am
content: Are you able to point me in the right direction for details of doing this?

author: wraper
author_rank: Unknown
timestamp: December 23, 2019, 11:59:05 am
content: Quote from: alanb on December 23, 2019, 11:24:26 amOpen datasheet, there is schematic. Basically you can buy cheap USB-UART adapter and connect it directly to MCU. Or connect to COM port through voltage level shifter.

author: alanb
author_rank: Frequent Contributor
timestamp: December 23, 2019, 12:14:36 pm
content: Thanks for help. Unfortunately I don't think I will be able to get an adaptor until after the holidays.Do I need any software to upload / download the program to the device from a windows PC?

author: wraper
author_rank: Unknown
timestamp: December 23, 2019, 12:22:04 pm
content: http://www.stcmicro.com/rjxz.html

author: alanb
author_rank: Frequent Contributor
timestamp: December 23, 2019, 12:33:13 pm
content: Thank you very much for all of your help with this. Sorry for asking such basic questions which in retrospect I should have researched my self.Alan

author: WattsThat
author_rank: Frequent Contributor
timestamp: December 25, 2019, 09:16:23 pm
content: For non-Windows users, there is the STCGAL tool written in python available on github.https://github.com/grigorig/stcgalNote that you cannot copy or duplicate STC parts, you must have the source or object files to program a device.
Driving the embedded STM32 serial bootloader by Arduino IDE DTR/RTS - Page 1
Forum section: electronics / general

author: Just4Fun
author_rank: Contributor
timestamp: December 23, 2019, 01:50:33 pm
content: I wanted to use the embedded STM32 serial bootloader with Arduino IDE driven by the DTR/RTS signals for automatic uploads with the official STM "core" (but leaving the choose to use others IDE like STM32CubeIDE too). So I did it with a couple of NPN and some passives.More, I wanted a board with a "standard" form factor as the common dev boards, but that could be directly inserted into breadboards (like a breakout board):I've attached a preliminary of the schematic.All the detailed info and updates here:https://hackaday.io/project/168941

author: ebclr
author_rank: Super Contributor
timestamp: December 23, 2019, 07:33:11 pm
content: I have a lot of Nucleo boards, What is the feature of this Armando one, that I'm missing. I liked because use WCH554 as a dual serial "I guess" but can't find a reason to go in this way. Please help me and tell me why you did this board, What I can do with this board that I can't do with a Nucleo one?

author: Just4Fun
author_rank: Contributor
timestamp: December 23, 2019, 08:49:33 pm
content: Hi,this one is not intended to be a "commercial" product... I've done that mainly for fun...I wanted a board that could be also "directly plugged" into 1-4 breadboards (with "standard" dev boards you can't), and I was curious to use the STM32 embedded serial bootloader like Atmega does with Arduino bootloader on flash to do automatic uploads, using DTR/RTS signals from Arduino IDE to drive BOOT0 and NRST STM32 signals to enable the serial bootloader.Nothing more...
Easiest free RTOS to learn and use - Page 1
Forum section: electronics / general

author: ricko_uk
author_rank: Super Contributor
timestamp: December 20, 2019, 03:17:49 am
content: Hi,never used an RTOS before. I need to use one with a PIC32MX micro. What is the best free RTOS that is easy to setup and especially learn and use? Ideally that it has large support groups/forums on the web so it is easy to find answers...Many thanks

author: lucazader
author_rank: Regular Contributor
timestamp: December 20, 2019, 08:56:33 am
content: As far as I know (please correct if wrong), the most widely used RTOS that supports a variety of different architectures (pic32mx included) is FreeRTOS.Lots of great support out there for FreeRTOS. Even at page on using it with the PC32MX (https://www.freertos.org/port_PIC32_MIPS_MK4.html).Pretty easy to use if you just want to get started with simple tasks etc, and not too complicated even when expanding into all the other things that it provides.

author: ricko_uk
author_rank: Super Contributor
timestamp: December 20, 2019, 11:36:05 am
content: Thank you Luca,does that work/integrate well and easy with Microchip Harmony? Or does Harmony need its own RTOS?Thank you

author: hansd
author_rank: Contributor
timestamp: December 20, 2019, 02:29:29 pm
content: Have a look athttps://www.microchip.com/mplab/mplab-harmony/mplab-harmony-v2Operating System Abstraction Layer (OSAL)

author: jnz
author_rank: Frequent Contributor
timestamp: December 23, 2019, 07:06:49 am
content: I like and use FreeRTOS.If would not say it’s specifically easy. It is well documented though.

author: tggzzz
author_rank: Super Contributor
timestamp: December 23, 2019, 08:53:59 am
content: Why focus on an RTOS? Usually peripheral drivers and/or protocol stacks are more important and difficult to obtain.For many applications, use a simple event-driven architecture, where an event is generated by an input, is captured in an interrupt routine, put in an FIFO/queue, and processed to completion by a finite state machine (FSM) before picking the next event from the queue. Where convenient, the FSM can create events and put those in the queue.
Did I waste my time making this USB circuit? - Page 1
Forum section: electronics / general

author: lawrence11
author_rank: Frequent Contributor
timestamp: December 28, 2019, 12:50:47 am
content: So on my custom board, I am using a STM32F205, with 8mhz crystal.So here is my circuit, I found this on a polish site and the guy had a running board, I just removed the caps and added a esd protection device NUP4060So As you can see, I configured peripherals and did not write a single line of code, and it seemed to have worked.So I guess this means all the pullup circuitry + the dedicated GPIO to disconnect pullup was totally useless and I wasted my time?STM32F1 has no internal pullup circuitry, but STM32F2 does? Does anybody have the block diagram of STM32F2 USB modules.

author: langwadt
author_rank: Super Contributor
timestamp: December 28, 2019, 01:02:31 am
content: https://www.st.com/content/ccc/resource/technical/document/application_note/group0/0b/10/63/76/87/7a/47/4b/DM00296349/files/DM00296349.pdf/jcr:content/translations/en.DM00296349.pdf

author: thm_w
author_rank: Super Contributor
timestamp: December 28, 2019, 01:34:29 am
content: If you learned something, not a total waste of time.Quote from: langwadt on December 28, 2019, 01:02:31 amNice, well summarized there.Quote

author: lawrence11
author_rank: Frequent Contributor
timestamp: December 28, 2019, 02:12:32 am
content: Yeah well it took like 90 minutes of soldering I'm slow and poorly equipped.
Problem running STM32 on a custom board - Page 1
Forum section: electronics / general

author: Manx
author_rank: Contributor
timestamp: December 15, 2019, 12:31:55 pm
content: I made my first STM32 board (with STM32H743ZI). The core software is not pure STM, but it's based on an official Arduino core for STM32 (stm32duino). I am able to program it (via stlink v3 mini), so SWD and flash work. I am able to correctly set up the clock (with 25 MHz crystal), and PLL'ed clock output -- so these parts work as well. BUT I'm unable to do even the simplest pin toggling.Do you have any idea how I can approach the problem? Find where lies the source? I had a bit of trouble soldering it correctly, and I think I hot aired it 4 times -- maybe I destroyed the chip this way? Probably the easiest way to troubleshoot the problem would be to use a debugger, but I never used it and I don't even have any idea how to start -- what tools I can use (preferably macOS) or how to set it up. Maybe the program gets stuck in an infinite loop because of some hard fault -- but is there any way to check it without a debugger?Any ideas on any possible approaches would be much appreciated.

author: Psi
author_rank: Super Contributor
timestamp: December 15, 2019, 01:19:11 pm
content: Is your code actually compiled for the STM32H743ZI ?Have you enabled the IO clock on the IO ports your trying to toggle?Check you have interrupt handlers for any enabled interrupts. Or just disabled all interrupts until you get basic stuff working.If your code is 1/2 based on Arduino it maybe trying to use/enable a systick timer in an incomplete way.

author: thm_w
author_rank: Super Contributor
timestamp: December 16, 2019, 10:04:22 pm
content: Get debugging so you can see what its doing:https://github.com/stm32duino/wiki/wiki/How-to-debug

author: Manx
author_rank: Contributor
timestamp: December 19, 2019, 07:32:55 pm
content: Thanks very much. I tried installing the debugger into sloeber, but I couldn't make it work. Also, Sloeber doesn't work for me for cores newer than 1.5. I was recommended to try STM32CubeIDE, I finally made it run, and I love it. Everything in one place and (almost) works out of the box. I was planning to graduate to this level anyway. (And yeah, I'm able to toggle the pins, so the problem was somehow related to using stm32duino core with custom board).The problem is with libraries I use for things like W5500 ethernet chip, SD, various LCDs etc. But from a quick glance at their sources I think it should be quite easy to make them work when I recreate functions for I2C, SPI and Serial.print(), and probably a couple of macros and simple functions. I hope..

author: iMo
author_rank: Super Contributor
timestamp: December 19, 2019, 09:02:21 pm
content: I used to use the debugger in Sloeber (4.0), installation guide was on stm32duino.com (the old one).
Problems with STM's STSPIN32F0A - Page 1
Forum section: electronics / general

author: electrotwelve
author_rank: Contributor
timestamp: December 26, 2018, 02:41:35 pm
content: I'm trying to get a hoverboard BLDC motor to run using STM's STSPIN32F0A chip. I made my own custom board which is the same as theireval boardbut without the ST-LINK debugger on it. The chip generates its own 3.3V supply using an internal regulator. It also generates a 12V supply that runs its internal gate drivers for the MOSFETs. Now this is where the problems seem to be cropping up. I have the setup powered up using a 24V DC supply. I can see that the VDD is 3.3V which is as expected, but there is no 12V on the VREG12 pin of the MCU. As per thedatasheet, the VREG12 and the VM need to be shorted only when the supply is 12V or lower. I tried building a different board and no joy on that one too. Can anybody help me figure this? Any help would be appreciated.

author: a1man
author_rank: Newbie
timestamp: December 28, 2019, 11:15:38 am
content: Hey, I am getting the same problem on both the Evaluation board and a custom made board. Did you find any workaround to this issue?. I am using a 12V supply and according to datasheet, the 12V regulator should work well under 7 volts.Please share your experience with this.Best Regards

author: wraper
author_rank: Unknown
timestamp: December 28, 2019, 11:25:59 am
content: Quote
Microsd card died, CMD17 returns 0x04. Any way to fix it? - Page 1
Forum section: electronics / general

author: Artlav
author_rank: Frequent Contributor
timestamp: December 17, 2019, 09:21:25 pm
content: So i have a 512Gb microsd card by Kingston which suddenly stopped working and won't get detected by anything.I hooked it up to an Arduino via SPI and started poking around.The card initializes just fine, i can read the registers and there is nothing unusual in the status or CSD.However, if i give it CMD17, read block, it would return error 0x04, illegal command.I can't seem to find any description of such an issue and what could be causing it.Anyone knows if it's possible to get around it and access the data somehow?

author: GromBeestje
author_rank: Frequent Contributor
timestamp: December 18, 2019, 08:03:28 am
content: When I look at thishttp://www.rjhcoding.com/avrc-sd-interface-4.phpIt mentions data tokens, and tell about the bits in there, where it seems 0x04 means the bit for "ECC ERROR" has been set.

author: Artlav
author_rank: Frequent Contributor
timestamp: December 18, 2019, 10:34:05 am
content: Hm, it does not seem to be getting to this data error token - the 0x04 i'm getting is the R1 response.
Is there a name for the cheap ebay STM32F030 "Demo 1.1" boards? - Page 1
Forum section: electronics / general

author: rhodges
author_rank: Frequent Contributor
timestamp: December 14, 2019, 09:53:28 pm
content: I have cheap STM32 boards from ebay with STM32F103 and STM32F030 chips. The popular name for the STM32F103 boards is "Blue Pill". But I can't seem to find any name for the STM32F030 boards. They just have the ST logo and "STM32F030 DEMO BOARD V1.1" on the back.I would like to use conditionals in my STM32 libraries when there is a difference between these boards.For example:Code:/* Turn LED on/off* in: zero = off, non-zero = on*/void board_led(int on){#ifdef BLUE_PILLif (on)GPIOC->ODR &= 0xdfff;elseGPIOC->ODR |= 0x2000;#endif}Is there any popular name for the cheap STM32F030 "demo" boards? Any suggestions on a good name to use in #define and #ifdef conditionals?"F030_DEMO" maybe? Or something with the word "PILL"?Thanks!

author: jhpadjustable
author_rank: Frequent Contributor
timestamp: December 14, 2019, 11:38:03 pm
content: I don't think the F030 got popular enough among the light-hearted hobbyist to merit a popular nickname. I'd just call 'em rabbitpills

author: GromBeestje
author_rank: Frequent Contributor
timestamp: December 15, 2019, 10:04:21 am
content: I have no clue what to name them either. I guess it's up to us to name them, and make sure that name becomes popular

author: rhodges
author_rank: Frequent Contributor
timestamp: December 15, 2019, 03:03:35 pm
content: One vote for "rabbit pill"! (Rabbit crap?)Code:void board_led(int on){#ifdef RABBIT_PILLif (on)GPIOA->ODR &= 0xffef;elseGPIOA->ODR |= 0x0010;#endif}

author: jhpadjustable
author_rank: Frequent Contributor
timestamp: December 15, 2019, 10:47:07 pm
content: That's what my grandma always called rabbit droppings. The enterprising genius that builds a Digispark-sized STM32-based thingy can call themliver pills.
Stm32H743 adc correction factor. - Page 1
Forum section: electronics / general

author: MasterT
author_rank: Frequent Contributor
timestamp: December 15, 2019, 07:16:06 pm
content: Internal 16-bits ADC has 160-bits calibration /correction linearity factor.Linear[]: 0x1F87EDFD 0x201805FD 0x20082DF6 0x1FF7F1FE 0x1F97F1FC 0x00000205Any tips on how to decipher this value? I see, build-in utility updates this value each time I re-calibrate an adc, but linearity error still persist, not much - about 10 lsb. My thoughts, "manually" tweak this bits till I get appropriate results.Is 160 segmented value? What size could be, 16 x 10 bits?

author: iMo
author_rank: Super Contributor
timestamp: December 15, 2019, 07:53:21 pm
content: RM0433 Rev 6 page 994/3289

author: MasterT
author_rank: Frequent Contributor
timestamp: December 15, 2019, 08:42:33 pm
content: Quote from: imo on December 15, 2019, 07:53:21 pmAnd page 1024, plus, undocumented in RM 6 factory encoded values:#define ADC_LINEAR_CALIB_REG_1_ADDR ((uint32_t*) (0x1FF1EC00UL))#define ADC_LINEAR_CALIB_REG_2_ADDR ((uint32_t*) (0x1FF1EC04UL))#define ADC_LINEAR_CALIB_REG_3_ADDR ((uint32_t*) (0x1FF1EC08UL))#define ADC_LINEAR_CALIB_REG_4_ADDR ((uint32_t*) (0x1FF1EC0CUL))#define ADC_LINEAR_CALIB_REG_5_ADDR ((uint32_t*) (0x1FF1EC10UL))#define ADC_LINEAR_CALIB_REG_6_ADDR ((uint32_t*) (0x1FF1EC14UL))that doesn't explain mechanic behind the stage.
mikroBasic PRO for PIC compiler  - Page 1
Forum section: electronics / general

author: Mato
author_rank: Contributor
timestamp: October 21, 2019, 10:25:46 am
content: Hi,so I am cleaning my office and I found the mikroBasic PRO for PIC compiler CD + USB keyhttps://www.mikroe.com/mikrobasic-picso to make it short. I don't know what to do wit it... any ideas? (i don't want to sell it if someone has a use for it he can have it)best regards

author: JohannP
author_rank: Contributor
timestamp: December 19, 2019, 08:10:55 pm
content: Hello Mato,I will be interested if is still available.Please give me an idea what you want for it.Best regards.Johann.