Pumpkin, Inc.

Pumpkin User Forums

Problem with building the EFFS-Thin

For issues specific to TI's MSP430 line of ultra-low-power microcontrollers, including compilers (e.g. Quadravox AQ430), IDEs (e.g. IAR Embedded Workbench) and development tools (e.g. TI MSP-FET430 Flash Emulation Tool).

Problem with building the EFFS-Thin

Postby Rambo3 » Tue Jun 30, 2009 1:30 am

Hello,

I was trying to build the sample program with RA crssstudio 2.0 to make the code on SD card work. I am trying to burn it on to the cubesat kit. However, during the build time there is a error which says.
undefined symbol '_fn_open'
undefined symbol '___crt_mpy'
undefined symbol '___crt_op2'
undefined symbol '___crt_reslo'
undefined symbol '_fn_write'
undefined symbol '_fn_close'
undefined symbol '_fn_initvolume'
undefined symbol '_fn_mkdir'

If you click on the "___crt_mpy" error, it tries to redirect to a file called mmc.c which it says is in the d: drive, which is non exsistent in my computer.

I can build and run the code if i comment out all the memory instructions like f_open, f_close etc. but run in to the above error for the memory operations.

Can you please guide me if you have seen this error before or what might be the possible cause of the problem.
Greatly appreciate the help.

Thank you.
Vikrant Bharadwaj.
USC student.

Rambo3
 
Posts: 5
Joined: Wed Jun 17, 2009 11:00 pm
Location: LA, CA, USA

Re: Problem with building the EFFS-Thin

Postby Rambo3 » Thu Jul 02, 2009 12:00 am

Hello,

Thank you for the reply. I have figured out most of the things except one.
The linker shows a error saying
Linking Mem_access_example1.hzx — 5 errors
undefined symbol '___crt_mpy'
undefined symbol '___crt_op2'
undefined symbol '___crt_mac'
undefined symbol '___crt_reslo'
undefined symbol '___crt_reshi'
When i click on any off these errors, It says it is trying to access a file that is in the d drive, namely,
d:pumpkincubesathcc-embeddedeffs-thinsrcmmcmmc.c
IS there any file called mmc.c, cause i dont have any. Also my computer does not have a d drive!!!
I know these are a lot of questions, but i cannot figure out wether i have all the files or not.
Thank you for the reply and sorry for the trouble.

Vikrant Bharadwaj.

Rambo3
 
Posts: 5
Joined: Wed Jun 17, 2009 11:00 pm
Location: LA, CA, USA

Re: Problem with building the EFFS-Thin

Postby aek » Thu Jul 02, 2009 12:49 am

The reason why it is looking for those files is that the effs-thin library that Pumpkin built for the CubeSat Kit includes a file called mmc.c tat resides on a D: drive at Pumpkin.

This is not a file we distribute to customers, and is not one that you need. At least not when we build with CW430 v1.4. Here's an SD1pro-lib build:

code:
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../isr.c -o Debug/isr.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../main.c -o Debug/main.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhas" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" "C:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/src/crt0.asm" -o Debug/crt0.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../../Salvo/Src/salvomem.c -o Debug/salvomem.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../Src/CSK_USART0.c -o Debug/CSK_USART0.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../Src/CSK_USART1.c -o Debug/CSK_USART1.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../Src/CSK_IO.c -o Debug/CSK_IO.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../Src/CSK_Utility.c -o Debug/CSK_Utility.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../Src/CSK_Error.c -o Debug/CSK_Error.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhcc" -DCSK_EFFS_THIN_LIB=1 -V -D__CROSSWORKS -D__TARGET_PROCESSOR=MSP430F1612 -g -O-9 -Or- -I. -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430/Pro-Lib -I/Pumpkin/CubeSatKit/Example/MSP430/MSP430x1xx/CubeSatKit_Dev_Board/SD/SD1/RA430 -I/Pumpkin/CubeSatKit/Inc -I/Pumpkin/Salvo/Inc -I/Pumpkin/CubeSatKit/HCC-Embedded/EFFS-THIN/Src "-JC:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/include" -msd -mmpy ../../../../../../../../Src/csk_effs_thin_spi.c -o Debug/csk_effs_thin_spi.hzo -D__CROSSWORKS_MSP430
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhld" Debug/isr.hzo Debug/main.hzo Debug/crt0.hzo Debug/salvomem.hzo ../../../../../../../../../Salvo/Lib/RA430-v1/libsalvolra430it.hza Debug/CSK_USART0.hzo Debug/CSK_USART1.hzo Debug/CSK_IO.hzo Debug/CSK_Utility.hzo Debug/CSK_Error.hzo Debug/csk_effs_thin_spi.hzo ../../../../../../../../Lib/RA430/csk_effs_thin-1.hza "C:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/lib/lib_vfprintf_long_hf.hza" "C:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/lib/lib_vfscanf_int_hf.hza" -V -g "C:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/lib/libc_hf.hza" "C:/Program Files/Rowley Associates Limited/CrossWorks for MSP430 1.4/lib/libm_hf.hza" -Oph -Ofl -Odc -Ojt -GCODE=L -GCONST=L -TINTVEC=ffe0 -GINTVEC=L -TXCODE=10000 -GXCODE=L -TCODE,CONST=2500-ffdf "-GINFO B=L" "-TINFO B=1000-107f" "-GINFO A=L" "-TINFO A=1080-10ff" -GINFO=L -TINFO=1000-10ff -DRAM_Start_Address=4352 -DRAM_Size=5120 -T.abs=0 -G.abs=L -TIDATA0,UDATA0=1100-24ff -MDebug/sd1pro-lib.map -o Debug/sd1pro-lib.hzx
"C:Program FilesRowley Associates LimitedCrossWorks for MSP430 1.4inhex" Debug/sd1pro-lib.hzx -o Debug/sd1pro-lib -Fhex

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Problem with building the EFFS-Thin

Postby aek » Thu Jul 02, 2009 12:55 am

I was mistaken -- those files have nothing to do with effs-thin ... crt means "C runtime", and are part of the startup files that CW uses to create a complete application (e.g. _mpy means "multiply routine").

When I look through the Symbol browser of SD1pro-lib, however, these functions are not present. SO either they're not used, or they can't be seen via the symbol browser.

regardless, I'm pretty sure this particular crt_ problem has nothing to do with Salvo or the CubeSat Kit -- it's a generic CW430 C application issue.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Problem with building the EFFS-Thin

Postby aek » Thu Jul 02, 2009 8:34 am

We are not yet using CW v2 in-house ... therefore I cannot speak to whether the CubeSat Kit's EFFS-Thin libraries (built with CW v1.4) work within CS v2.

It sounds like the build stage is not picking up what's in the library ... you'll need to check with Rowley as to whether libraries built with CW v1.4 are compatible with CW v2.

Assuming, of course, that you added a CSK EFFS-THIN library to your project, and followed the directions in the SD1 example project.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Problem with building the EFFS-Thin

Postby Rambo3 » Thu Jul 02, 2009 9:36 am

Thank you for the reply.

I am following all the steps mentioned in the file. Another kind of error is....
It promts during build tht
"missing memory map file".
Can you please tell me what is a memory map file and how in any case can i find out if i can get it or not.

Thank you for the reply again.

Vikrant Bharadwaj.

Rambo3
 
Posts: 5
Joined: Wed Jun 17, 2009 11:00 pm
Location: LA, CA, USA

Re: Problem with building the EFFS-Thin

Postby aek » Thu Jul 02, 2009 11:27 am

That's a question for Rowley ...

I think if you create a new standard C executable project from scratch, you'll find the CW43 places a memory map file (IIRC it's an XML-format file) into the project.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to TI's MSP430

Who is online

Users browsing this forum: No registered users and 0 guests

cron