Closed Optoneer closed 2 years ago
Today I see after opening the project, that it is unable to resolve the configuration for avr-gcc.exe and it would use a MinGW-gcc.exe. This does not pop up when opening the attiny1626 project.
What I continued to try - without success:
Any ideas?
Got it. Platformio does not include the necessary include files. If anyone faces this issue, too:
#elif defined (__AVR_ATtiny3227__)
# include <avr/iotn3227.h>
It starts to compile, but I get a compile error. I think, it is because it is not well tested and the vendor Microchip has not yet completely updated their include files, i.e. using the same names everywhere ...
My issue was with the CLK-Sel. I changed the device header file \
/* Clock Select */
typedef enum TCB_CLKSEL_enum
{
TCB_CLKSEL_DIV1_gc = (0x00<<1), /* CLK_PER */
TCB_CLKSEL_DIV2_gc = (0x01<<1), /* CLK_PER/2 */
TCB_CLKSEL_TCA0_gc = (0x02<<1), /* Use CLK_TCA from TCA0 */
TCB_CLKSEL_EVENT_gc = (0x07<<1) /* Count on event edge */
} TCB_CLKSEL_t;
changed to
/* Clock Select */
typedef enum TCB_CLKSEL_enum
{
TCB_CLKSEL_CLKDIV1_gc = (0x00<<1), /* CLK_PER */
TCB_CLKSEL_CLKDIV2_gc = (0x01<<1), /* CLK_PER/2 */
TCB_CLKSEL_CLKTCA0_gc = (0x02<<1), /* Use CLK_TCA from TCA0 */
TCB_CLKSEL_EVENT_gc = (0x07<<1) /* Count on event edge */
} TCB_CLKSEL_t;
Close
Hi,
I am facing an issue with setting up a project using an attiny3227. I am using an attiny1626 in another project, what works perfectly.
What I have done:
Could someone point me to the right direction? If you need further information, please do not hesitate to ask, I am happy to provide them as good as I can.
Best wishes, Marius