SPI Slave Compiler gives an error

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Osta
Posts: 53
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

SPI Slave Compiler gives an error

Post by Osta »

Happy New Year everyone!!!
I use ATMEGA 128 controller.
When using interrupts and the SPI Slave macro compiler gives an error.
TEST.c:(.text.FCM_SSP+0x0): undefined reference to `FC_CAL_SPI_Slave_RxByte_1'
Attachments
Set inter.jpg
Set inter.jpg (36.51 KiB) Viewed 3117 times
TEST.fcfx
Test
(9.47 KiB) Downloaded 87 times

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: SPI Slave Compiler gives an error

Post by BenR »

Hello and Happy new year :D

It looks like SPI slave functionality is not currently impemented on the AVR target devices.

I'll have a look for you now and see if I can add it in for you.

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: SPI Slave Compiler gives an error

Post by BenR »

Hello again,

Right it's compiling correctly now and I've pushed the update to the library update system.

Let us know how you get on.

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: SPI Slave Compiler gives an error

Post by Osta »

Thanks a lot !!!!!!!
I updated the libraries and everything worked!
Best wishes to you and your team! ;)

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: SPI Slave Compiler gives an error

Post by Osta »

Again, error, but in another project with ATMEGA 128
Interrupts do not work ....
Attachments
ERROR.jpg
ERROR.jpg (55.84 KiB) Viewed 3059 times

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: SPI Slave Compiler gives an error

Post by Osta »

Before using the Flowcode macros, the С code was written,
But after the use of macros Flowcode, the compiler began to issue an error!
As a result, neither macros do not work С code !!!
Attachments
SPI.fcfx
(14.48 KiB) Downloaded 95 times

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: SPI Slave Compiler gives an error

Post by Osta »

I do not know what to do...
How to return to the scene when did you work with the code?

medelec35
Matrix Staff
Posts: 1449
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 471 times

Re: SPI Slave Compiler gives an error

Post by medelec35 »

Hi.
The compiler is complaining that you have got the same interrupts enabled in Main and COXPAH.
If you remove one it should compile for you.
Martin

Osta
Posts: 53
Joined: Thu Dec 10, 2020 1:12 pm
Has thanked: 1 time
Been thanked: 3 times

Re: SPI Slave Compiler gives an error

Post by Osta »

Right!!!
Thanks a lot!!!

Post Reply