It said it has mutiple libraries were found for "nRF24L01.h" but i check the Ardurino libraries I can only found one. And it work fine if I compile it to Arduino uno.

//Include Libraries
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>

//create an RF24 object
RF24 radio(8,9 );  // CE, CSN

//address through which two modules communicate.
const byte address[6] = "00001";

void setup() {
  // put your setup code here, to run once:

  while (!Serial);


  //set the address
  radio.openReadingPipe(0, address);

  //Set module as receiver

void loop() {
  // put your main code here, to run repeatedly:

  if (radio.available())
    char text[32] = {0};
    radio.read(&text, sizeof(text));




Here is the error message

Arduino: 1.8.10 (Windows 8.1), Board: "STM8S103F3 Breakout Board"

Multiple libraries were found for "nRF24L01.h"
bash.exe: warning: could not find /tmp, please create!
C:\Users\UserName\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10738/bin/sdcc sketch\receiver.ino.cpp 

nul re12 -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L 
Mark re12:C:\Users\UserName\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10738/bin/sdcc -c -Ddouble=float -DUSE_STDINT -D__PROG_TYPES_COMPAT__ -E -MC -mstm8 -DSTM8S103 -DF_CPU=16000000L -DARDUINO=10810 -DARDUINO_STM8S_BLUE -DARDUINO_ARCH_STM8 -IC:\Users\UserName\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.4.0\cores\sduino -IC:\Users\UserName\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.4.0\variants\standard -IC:\Users\UserName\Documents\Arduino\libraries\RF24 -IC:\Users\UserName\AppData\Local\Arduino15\packages\sduino\hardware\stm8\0.4.0/STM8S_StdPeriph_Driver/inc -IC:\Users\UserName\AppData\Local\Arduino15\packages\sduino\tools\sdcc\build.10738/include sketch\receiver.ino.cpp -o nul
cpp gefunden
In file included from C:/Users/UserName/Documents/Arduino/libraries/RF24/RF24.h:18,
                 from C:\Users\UserName\Desktop\mad\receiver\receiver.ino:4:

fatal error: avr/pgmspace.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board STM8S103F3 Breakout Board.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

  • High likely this library is for Arduino only, not for your MCU Dec 3, 2019 at 15:06
  • 1
    The sduino core is lacking any form of PROGMEM compatibility layer. Contact the maintainers of it.
    – Majenko
    Dec 3, 2019 at 15:34
  • the error is fatal error: avr/pgmspace.h: No such file or directory. ignore the 'multiple libraries' warning
    – Juraj
    Dec 3, 2019 at 18:27


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.