Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - MirceaMurar

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / Re: KDS: 'post-build' failed
« on: July 15, 2016, 06:23:41 PM »
Hello Mark,

thanks for your reply.

I've found a workaround for converting a string into a float.
Since your approach is way much better I will try to implement it in near future.

Just as info...most of the errors thrown by KDS v3 were related to sprintf usage....anyway I found a way to avoid using it.

Best regards,
Mircea.


2
NXPTM M522XX, KINETIS and i.MX RT / Re: KDS: 'post-build' failed
« on: July 08, 2016, 09:27:02 PM »
Hello Mark,

thanks for your hints...I already start build the application step by step.

Even if Visual Studio does not complain about using strtof it seems KDS v3 does not like it and it might be the cause of:

c:/freescale/kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'


I use strtof to get a floating point number from a string....it seems that I have to find a workaround using fnDecStrHex, unless there is an already implemented way to extract a floating point number from a string.

I will continue tomorrow.
Best regards,
Mircea.


3
NXPTM M522XX, KINETIS and i.MX RT / Re: KDS: 'post-build' failed
« on: July 06, 2016, 07:44:33 PM »
Hello Mark,

thanks for your fast reply and your hints...indeed it works even with that post-build error.
The program that I tested first was the original version of uTaskerKinetisV1.4.7.

Now I loaded in KDS my application which of course uses a modified version of uTaskerKinetisV1.4.7.
Still even if non-important changes were made I got a real error at build (I believe something with the interrupt vector):

Sorry for large console output!

Building target: uTaskerV1.4.elf
Invoking: Cross ARM C++ Linker
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g -T "C:\Users\Z210\Desktop\utasker KDS\V1.12\uTaskerKinetisV1.4.7\Applications\uTaskerV1.4\KinetisCodeWarrior\Linker_Files\K_1M_256.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"uTaskerV1.4.map" -o "uTaskerV1.4.elf"  ./uTasker/utFAT/mass_storage.o  ./uTasker/uGLCDLIB/GLCD.o ./uTasker/uGLCDLIB/LCD.o  ./uTasker/MODBUS/MODBUS.o  ./uTasker/Driver.o ./uTasker/GlobalTimer.o ./uTasker/SSC_drv.o ./uTasker/Tty_drv.o ./uTasker/USB_drv.o ./uTasker/Watchdog.o ./uTasker/can_drv.o ./uTasker/eth_drv.o ./uTasker/iic_drv.o ./uTasker/low_power.o ./uTasker/uFile.o ./uTasker/uMalloc.o ./uTasker/uNetwork.o ./uTasker/uTasker.o  ./stack/Ethernet.o ./stack/NetBIOS.o ./stack/arp.o ./stack/dhcp.o ./stack/dns.o ./stack/ftp.o ./stack/ftp_client.o ./stack/http.o ./stack/icmp.o ./stack/igmp.o ./stack/ip.o ./stack/ip_utils.o ./stack/pop3.o ./stack/ppp.o ./stack/smtp.o ./stack/snmp.o ./stack/tcp.o ./stack/telnet.o ./stack/tftp.o ./stack/udp.o ./stack/webutils.o ./stack/zero_config.o  ./Hardware/Kinetis/kinetis.o  ./Applications/uTaskerV1.4/KeyScan.o ./Applications/uTaskerV1.4/NetworkIndicator.o ./Applications/uTaskerV1.4/application.o ./Applications/uTaskerV1.4/debug.o ./Applications/uTaskerV1.4/modbus_app.o ./Applications/uTaskerV1.4/snmp_mib_handlers.o ./Applications/uTaskerV1.4/usb_application.o ./Applications/uTaskerV1.4/webInterface.o   
c:/freescale/kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: section .ARM.exidx loaded at [00000000,00000007] overlaps section .vectors loaded at [00000000,00000007]
./Hardware/Kinetis/kinetis.o:(.rodata.ctTaskTable+0xc4): undefined reference to `fnMyFirstTask'
./Hardware/Kinetis/kinetis.o:(.rodata.ctTaskTable+0xd4): undefined reference to `fnMyPollingTask'
c:/freescale/kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
collect2.exe: error: ld returned 1 exit status
makefile:66: recipe for target 'uTaskerV1.4.elf' failed
make: *** [uTaskerV1.4.elf] Error 1


Best regards,
Mircea.

4
NXPTM M522XX, KINETIS and i.MX RT / KDS: 'post-build' failed
« on: July 06, 2016, 04:44:58 PM »
Dear all,

Please help me overcome this issue    :'( :'( :'(.

I have encountered an error when building uTaskerv1.4 with KDS 3.
The error says: makefile:97: recipe for target 'post-build' failed

Since this is my first project with uTasker I would like to share the steps I've done:
1. Downloaded and installed KDS version 3.
2. Replaced mbed firmware with PEMicro OpenSDA v2.0 firmware for a FRDM K64F board
    I think firmware replacement was ok since I was able to develop from scratch a new application to blink an LED using KDS and successfully flash it and debug it using PEMicro OpenSDA v2.0

3. Unzip uTaskerKinetisV1.4.7 and open it with Visual Studio 2015.
4. In config.h I commented KINETIS_KE00 and un-commented KINETIS_K64. I also enabled Ethernet interface.
5. Build and simulated it under Visual Studio 2015 was ok.

6. Copy the project in a different folder and followed the steps for KDS found on:
http://www.utasker.com/kinetis/compilers.html#KDS
- delete .settings folder and all .* files and copy the .settings and all .* files from uTaskerKinetisV1.4.7\Applications\uTaskerV1.4\KinetisDesignStudio\Project_Settings

7. import program
- checked if cortex-m4 is selected
-linker modified to: "${uTaskerLinkerScripts}/K_1M_256.ld"

8. Triggered Built with option : uTaskerV1.4_FLASH

Received the error: recipe for target 'post-build' failed.

I tried the whole procedure for several times and I got the same error.

Some text that I got within KDS console can be found bellow:

Building target: uTaskerV1.4.elf
Invoking: Cross ARM C++ Linker
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall  -g -T "C:/Users/Z210/Desktop/utasker KDS/uTaskerKinetisV1.4.7/Applications/uTaskerV1.4/KinetisCodeWarrior/Linker_Files/K_1M_256.ld" -nostartfiles -Xlinker --gc-sections -Wl,-Map,"uTaskerV1.4.map" -o "uTaskerV1.4.elf"  ./uTasker/utFAT/mass_storage.o  ./uTasker/uGLCDLIB/GLCD.o ./uTasker/uGLCDLIB/LCD.o  ./uTasker/MODBUS/MODBUS.o  ./uTasker/Driver.o ./uTasker/GlobalTimer.o ./uTasker/SSC_drv.o ./uTasker/Tty_drv.o ./uTasker/USB_drv.o ./uTasker/Watchdog.o ./uTasker/can_drv.o ./uTasker/eth_drv.o ./uTasker/iic_drv.o ./uTasker/low_power.o ./uTasker/uFile.o ./uTasker/uMalloc.o ./uTasker/uNetwork.o ./uTasker/uTasker.o  ./stack/Ethernet.o ./stack/NetBIOS.o ./stack/arp.o ./stack/dhcp.o ./stack/dns.o ./stack/ftp.o ./stack/ftp_client.o ./stack/http.o ./stack/icmp.o ./stack/igmp.o ./stack/ip.o ./stack/ip_utils.o ./stack/pop3.o ./stack/ppp.o ./stack/smtp.o ./stack/snmp.o ./stack/tcp.o ./stack/telnet.o ./stack/tftp.o ./stack/udp.o ./stack/webutils.o ./stack/zero_config.o  ./Hardware/Kinetis/kinetis.o  ./Applications/uTaskerV1.4/KeyScan.o ./Applications/uTaskerV1.4/NetworkIndicator.o ./Applications/uTaskerV1.4/application.o ./Applications/uTaskerV1.4/debug.o ./Applications/uTaskerV1.4/modbus_app.o ./Applications/uTaskerV1.4/snmp_mib_handlers.o ./Applications/uTaskerV1.4/usb_application.o ./Applications/uTaskerV1.4/webInterface.o   
Finished building target: uTaskerV1.4.elf
 
make --no-print-directory post-build
"C:/Users/Z210/Desktop/utasker KDS/uTaskerKinetisV1.4.7/Applications/uTaskerV1.4/KinetisDesignStudio/uTaskerV1.4_FLASH/generate.bat
c:/freescale/kds_v3/eclipse/../bin/sh: syntax error: unterminated quoted string
makefile:97: recipe for target 'post-build' failed
make[1]: [post-build] Error 2 (ignored)

 
Invoking: Cross ARM GNU Create Flash Image
arm-none-eabi-objcopy -O ihex "uTaskerV1.4.elf"  "uTaskerV1.4.hex"
Finished building: uTaskerV1.4.hex
 
Invoking: Cross ARM GNU Create Listing
arm-none-eabi-objdump --source --all-headers --demangle --line-numbers --wide "uTaskerV1.4.elf" > "uTaskerV1.4.lst"
Finished building: uTaskerV1.4.lst
 
Invoking: Cross ARM GNU Print Size
arm-none-eabi-size --format=berkeley "uTaskerV1.4.elf"
   text      data       bss       dec       hex   filename
  75107        88      2165     77360     12e30   uTaskerV1.4.elf
Finished building: uTaskerV1.4.siz
 

18:31:13 Build Finished (took 21s.548ms)

5
µTasker general / Re: HTML element
« on: June 14, 2016, 11:09:18 AM »
Dear all,

thanks for your hints I will be testing this week and let you know if I succeeded.

Best regards,
Mircea.

6
µTasker general / HTML element
« on: June 12, 2016, 09:13:57 AM »
Hello Mark,

I am trying to get familiar with the simulator and how to interface a webpage with the uTasker operating system.
I achieved some basic functionalities and got an idea of how webpages are connected to uTasker.

What I would like to achieve next is something similar to this (please see attached picture).

Within a first html page the user has the possibility to jog an axis and save positions.
Then, in a configuration html page I would like to load and display saved positions for further configuration (something similar to attached picture).

Therefore the question is if it is possible to load a "select" HTML element with available options (options shall be saved within an array or on SD card) and let's say when a button is pressed to find out which are the options selected by the web page user.
Could you please provide some hints of how to manage this html element.

Best regards,
Mircea.




7
NXPTM M522XX, KINETIS and i.MX RT / Thanks
« on: May 28, 2016, 09:09:01 AM »
Dear mark,

thank you very much for this nice operating system and simulator...it's so great.

Even if the steps required to configure and run simulator or download to physical board are a little bit overwhelming for beginners  :o I think that after you go through them once or twice things becomes simpler.

I'm interested in development of a webpage for a K64F which shall control an electro-mechanical axis...if you don't mind could you share some documents which explains how to load webpages, how to connect them with the operating system and how to load your one code within uTasker operating system.

Once again, thank you very much.

Best regards,
Mircea.

Pages: [1]