ATMega128RFA1 Bitcloud Compilation Problems and Confusion

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My team and I have a project for our university. We are trying to develop software for the ATMEGA128RFA1 using the bitcloud stack from Atmel. I have programming experience with AVR microcontrollers but we all find the bitcloud stack quite bloated and confusing. We are trying to modify the WSNdemo and right now we are testing it on at ATMega128RFA1-Ek1 STK 600 board (I modified it to run standalone) and programming it with the JTAGICE mkII.

We modified several functions (deleted unecessary ones and added our own) and we are getting errors from the makefile when compiling. We are seeing the following build message error (I have included some but not the entire message):

make[1]: Entering directory `C:/Users/Penguin/Dropbox/Projects/0015 TTU School Fall 2012/Capstone/Software/BitCloud_MEGARF_1_14_0/Applications/WirelessMeter/makefiles/PMB'
		avr-as -I./../.. -I./../../include -I./../../../../BitCloud/Components/BSP/ATML_STK600/include -I./../../../../BitCloud/lib -I./../../../../BitCloud/Components/HAL/include -I./../../../../BitCloud/Components/BSP -I./../../../../BitCloud/Components/BSP/include -I./../../../../BitCloud/Components/NWK/include -I./../../../../BitCloud/Components/NWK/include/private -I./../../../../BitCloud/Components/ZDO/include -I./../../../../BitCloud/Components/ZDO/include/private -I./../../../../BitCloud/Components/APS/include -I./../../../../BitCloud/Components/APS/include/private -I./../../../../BitCloud/Components/SystemEnvironment/include -I./../../../../BitCloud/Components/ConfigServer/include -I./../../../../BitCloud/Components/ConfigServer/include/private -I./../../../../BitCloud/Components/PersistDataServer/include -I./../../../../BitCloud/Components/PersistDataServer/include/private -I./../../../../BitCloud/Components/Security/TrustCentre/include -I./../../../../BitCloud/Components/Security/ServiceProvider/include -I./../../../../BitCloud/Components/HAL/avr/atmega128rfa1/common/include -I./../../../../BitCloud/Components/HAL/drivers/include -I./../../../../BitCloud/Components/HAL/drivers/OFD/include -I./../../../../BitCloud/Components/HAL/drivers/ISD/include -I./../../../../BitCloud/Components/MAC_PHY/include -I./../../../../BitCloud/Components/MAC_PHY/MAC_ENV/include -I./../../../../BitCloud/Components/MAC_PHY/MAC_HWI/include -I./../../../../BitCloud/Components/MAC_PHY/MAC_HWD_PHY/include -I./../../../../BitCloud/Components/MAC_PHY/MAC_HWD_PHY/ATMEGA128RFA1/PHY/include -I./../../../../BitCloud/Components/MAC_PHY/MAC_HWD_PHY/ATMEGA128RFA1/MAC_HWD/include -I./../../../../BitCloud/Components/ZCL/include  -mmcu=atmega128rfa1 ../../../../BitCloud/Components/HAL/drivers/OFD/src/ofdIntFlashRead.s -o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdIntFlashRead.o
		avr-gcc -Wl,-Map=All_PMB_Atmega128rfa1_8Mhz_Gcc/List/WirelessMeter.map -Wl,--gc-sections -Wl,--script=./../../linkerScr/atmega128rfa1.ld -Wl,--section-start=.data=0x800200 -mmcu=atmega128rfa1 All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMVisualizer.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMButtons.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMCoord.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMRouter.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMApp.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsMem.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsWriteData.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsDataServer.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsInit.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsTimer.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsEvents.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsMemAccess.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsCrcService.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/isdImageStorage.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/fakeBSP.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/buttons.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/leds.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/bspTaskManager.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdCommand.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdAt45dbDriver.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdSpiSerializer.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdFakeDriver.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdCrcService.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdAt25Driver.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/csPersistentMem.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/csMem.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/configServer.o All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdIntFlashRead.o -Wl,-\( ./../../../../BitCloud/lib/libHAL_AtmlStk600_Atmega128rfa1_8Mhz_Gcc.a ./../../../../BitCloud/lib/libZcl_All_Atmega128rfa1_Atmega128rfa1_Gcc.a ./../../../../BitCloud/lib/WdtInitatmega128rfa1_Gcc.o  -Wl,-\) -o All_PMB_Atmega128rfa1_8Mhz_Gcc/Exe/WirelessMeter.elf
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMVisualizer.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMButtons.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMCoord.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMRouter.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/WMApp.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsMem.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsWriteData.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsDataServer.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsInit.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsTimer.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsEvents.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsMemAccess.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/pdsCrcService.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/isdImageStorage.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/fakeBSP.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/buttons.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/leds.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/bspTaskManager.o: No such file or directory
		make[1]: Leaving directory `C:/Users/Penguin/Dropbox/Projects/0015 TTU School Fall 2012/Capstone/Software/BitCloud_MEGARF_1_14_0/Applications/WirelessMeter/makefiles/PMB'
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdCommand.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdAt45dbDriver.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdSpiSerializer.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdFakeDriver.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdCrcService.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/ofdAt25Driver.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/csPersistentMem.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/csMem.o: No such file or directory
avr-gcc(0,0): All_PMB_Atmega128rfa1_8Mhz_Gcc/Obj/configServer.o: No such file or directory

We are not really sure what to do here, this bitcloud stuff is seriously driving us crazy, it's so bloated full out functions for different AVRs and so we are having a hard time grasping the concept. We eventually want to port this to our custom AVR application/board, but if we can't even get the dev board to work right then we won't have much success.

I have attached the makefile we are building with.[/code]

Last Edited: Fri. Oct 16, 2015 - 02:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is something terribly wrong with your setup.

It looks like you are using BitCloud_MEGARF_1_14_0, but makefile tries to link libZcl_All_Atmega128rfa1_Atmega128rfa1_Gcc, which is a part of BitCloud PS.

What is All_PMB_Atmega128rfa1_8Mhz_Gcc? Have you tries to compile and run stock applications first? What changes have you made to the original BitCloud source code?

What is your final goal?

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

We are using BitCloud_MEGARF_1_14_0.
The PMB in All_PMB_Atmega128rfa1_8Mhz_Gcc stands for Power Meter Board. We replaced STK600 with PMB (and renamed the directories accordingly).
After the renaming, we did successfully compile the application. Then, I deleted several files from WSNDemo and modified the makefile SRCS variable to reflect those changes. Now we can’t compile Bitcloud.
In the end we would like to monitor a remote wall meter from a USB chip. Are there other files that would be helpful? I notice that you announced the release of the Lightweight Mesh Software Stack should we use that?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So why not backtrack your changes and see what change breaks things? I see this kind of output first time, I have no idea what one must do to get one.

It does not hurt to try LwMesh, it might work better for you if ZigBee is not a requirement.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Zigbee is not a requirement in our project, we just basically need a wireless network of devices. Each of these devices can measure electrical power and communicate it to a specific device that is collecting the data. We just need a way to send numbers over the air. This also has to be cheap, I know there are modules out there but the mega128rfa1 is only like $6.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Then try LwMesh: https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=125226, you'll probably like it more than BitCloud.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After a day of tinkering with it we were actually able to get something to work finally :). We also like that it includes a template application for start, the help file is much more helpful too.