WS2812 Sim OK but fails to built

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
RGV250
Posts: 344
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 35 times
Been thanked: 36 times

WS2812 Sim OK but fails to built

Post by RGV250 »

Hi,
I have just tried a simple demo for WS2812, it simulates OK but when i try to compile and download to the device I get an error
WS2812_Demo1.c:(.text+0x44c4): undefined reference to `nop' several times over.

Also not sure if I have WS2812 or WS2812B but I get the same error.
Target folder: C:\Users\Admin\Downloads
Source name: C:\Users\Admin\Downloads\WS2812_Demo1.fcfx
Title:
Description:
Device: RPI.RPI.RPI3B
Generated by: Flowcode v10.1.0.38
Date: Friday, December 15, 2023 17:27:43
Users: 1
Registered to: RGV250
Licence key:
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\RPI\batch\rbuild.bat "WS2812_Demo1" "C:\Users\Admin\Downloads\" "C:\Program Files (x86)\Flowcode\Common\Compilers\rpi\\"

C:\Users\Admin\Downloads>REM CRC: 9CBAA20B02874D61C96DAE4FEC699BE787136EA47F741E26D6F846B5ABB246D896FAD8FDCAFB245061760799B64DDB929A0D46BD3B6AACB92DE4D84759EBB5079CA9DA2D2BBCDAE2A4D1C56CD1580BF5BE7E6799B63525A0CDB45CEDDB365F77CD3D7A5AF14A2BAC6613EC2BBBE3D39CD44F5379E4735FA01C82F6AB22C785E150FECF807FB33A9FC815CE7CB1BA9E5AC2D21F03E16554B9EBDB51055D309C1279A8C5D3CA58E18F2C3050DA273BE4EE73F41640DE3922C5629C45A17498EDEC0A8B3D681AF234BBB0330AA6FB05B88105A68DA3CE9026E5

C:\Users\Admin\Downloads>REM REVISION: 1.0

C:\Users\Admin\Downloads>REM GUID: 8C0879FE-99B8-41F1-BDB0-70BBBFD4CAC2

C:\Users\Admin\Downloads>REM DATE: 08\08\2022

C:\Users\Admin\Downloads>REM DIR: FCD\RPI\batch\rbuild.bat
Building WS2812_Demo1
C:\Users\Admin\AppData\Local\Temp\ccilNMd5.o: In function `FCD_06621_LED_WS2811__Refresh':
WS2812_Demo1.c:(.text+0x44c4): undefined reference to `nop'
WS2812_Demo1.c:(.text+0x44c8): undefined reference to `nop'
WS2812_Demo1.c:(.text+0x44cc): undefined reference to `nop'
WS2812_Demo1.c:(.text+0x44d0): undefined reference to `nop'
WS2812_Demo1.c:(.text+0x44d4): undefined reference to `nop'
C:\Users\Admin\AppData\Local\Temp\ccilNMd5.o:WS2812_Demo1.c:(.text+0x44d8): more undefined references to `nop' follow
collect2.exe: error: ld returned 1 exit status
Error(s) in build!

C:\ProgramData\MatrixTSL\FlowcodeV10\FCD\RPI\batch\rbuild.bat reported error code 0x1

Autoclose turned off


FINISHED
WS2812_Demo1.fcfx
(12.76 KiB) Downloaded 421 times
Bob

BenR
Matrix Staff
Posts: 1978
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 519 times
Been thanked: 707 times

Re: WS2812 Sim OK but fails to built

Post by BenR »

Hi Bob,

Thanks for letting us know. It looks like your the first to try this component on an rpi. Should work fine on an arduino or an esp32. I'll look into it for you and see if we can get it working.

RGV250
Posts: 344
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 35 times
Been thanked: 36 times

Re: WS2812 Sim OK but fails to built

Post by RGV250 »

Hi Ben, Any chance you might get a fix before you break up for Xmas.

Bob

RGV250
Posts: 344
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 35 times
Been thanked: 36 times

Re: WS2812 Sim OK but fails to built

Post by RGV250 »

Hi Ben,
It is getting near the time to get the LED's out again and wondered if the issue had been sorted.

Bob

RGV250
Posts: 344
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 35 times
Been thanked: 36 times

Re: WS2812 Sim OK but fails to built

Post by RGV250 »

Hi Ben,
I didn't get round to trying it last year but I have just looked as I would like some blinky LED's for Christmas and I still get the same error.

Bob

medelec35
Matrix Staff
Posts: 2126
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 659 times
Been thanked: 716 times

Re: WS2812 Sim OK but fails to built

Post by medelec35 »

Hello.
I have just had a look into this
I have added a line of code to the internals file, which should hopefully allow your project to compile,

browse to this location using file explorer , it's hidden by default so just paste the link into your address bar.

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV10\CAL
Place the attached Internals.c file.
If Flowcode is already open, then you will need to reload your project for the new component to work
If you run any component updates, then the internals.c you added will be overwritten, so it will stop working again (unless the component update has been pushed).

Can you let me know how you get on please.
Attachments
internals.c
(23 KiB) Downloaded 7 times
Martin

RGV250
Posts: 344
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 35 times
Been thanked: 36 times

Re: WS2812 Sim OK but fails to built

Post by RGV250 »

Hi,
It compiles OK if I compile to hex so it should be OK, I will have to dig out a spare Pi and try it on the hardware later.

Thanks,
Bob

medelec35
Matrix Staff
Posts: 2126
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 659 times
Been thanked: 716 times

Re: WS2812 Sim OK but fails to built

Post by medelec35 »

At least its now compiling, which is good.
The timing for WS281X can be very critical.
if works on hardware for you then I will get the internals.c added to the database.
Martin

Post Reply