Type in the full discussion title or a part of it.
Discussion Title Created date
Printing variables from RAM with printf_P
I've searched for every PROGMEM and printf_P thread I could find, but for the life of me I couldn't find an answer nor mention of this seemingly simple use-case: int intVar = 1;...
Wednesday, 22 May 2019 - 10:03
Variable in custom section not linked
I am trying to place uint32_t variable in my custom linker section (GCC), which is located after interrupt vectors. On ATmega32u4, this address seems to be 0xAC. The purpose of...
Saturday, 27 January 2018 - 18:16
Instance of C++ class halts ATmega2560
I have a really strange problem. This is my test code:   Demo.h #include <stdlib.h> class TestClass { public: TestClass(); private: };Demo.cpp: #...
Thursday, 7 December 2017 - 13:37
Destroying the firmware if fuse bits are reset
Hi. For the past few days I've been looking around for cons and pros for encrypting the AVR firmware with AES, XTEA, XOR etc. Seems like everyone agrees there's little to no point...
Monday, 14 August 2017 - 10:56
Variable address in .map file
Hi. I have a single variable which I would like to share between bootloader and application. Since it's only one variable, the simplest thing to do is to find its address and...
Tuesday, 27 December 2016 - 19:07
Appending text to .bin with srec_cat
I have a compiled .bin file, filled with 0xFF bytes on unused areas. Now, using srec_cat, I want to read a text file which contains single value and append it to .bin at certain...
Thursday, 7 July 2016 - 07:20
Last address in application section
I am using AT90USB1286. It has 128kB of flash memory. I am also using bootloader for which I've reserved 8kB. I want to find out what's the last address in which I can put value....
Thursday, 30 June 2016 - 11:45
Finding value in .hex file
Hi, at a certain point in code I have the following lines:   #define FIRMWARE_VERSION_BYTE_0 6517 #define FIRMWARE_VERSION_BYTE_1 9108 #define FIRMWARE_VERSION_BYTE_2 4167...
Thursday, 30 June 2016 - 10:13
Updating firmware from external EEPROM
Currently, on my ATmega32u4 I am using LUFA Mass Storage bootloader to upload new firmware. While this works great, it's a bit involved, since I have to   1) send special...
Thursday, 7 April 2016 - 21:59
memcpy_P and uint8_t array
I want to store 8-byte uint8_t array in program. This is how I do it:   const uint8_t PROGMEM playIcon[] PROGMEM = { 0b10000, 0b11000, 0b11100, 0b11110...
Tuesday, 15 March 2016 - 22:05
Reading data from MCP23017 using I2C master library
I have used Arduino I2C (Wire) library for a while now without issues, however, now I want to replace it with I2C master library. I'm using Arduino framework for quick testing, so...
Wednesday, 9 March 2016 - 09:27
Phase-shifted PWM output (90 degrees fixed)
I am trying to simulate optical encoder using AVR, so, I need to output phase-shifted PWM signal (90 degrees), that is, I need to output grey code. I also need frequency range...
Tuesday, 19 January 2016 - 12:38

Pages