Stop the FreeRTOS demo with MIPS32
Hi.
I want porting a FreeRTOS in mips, and try it.
I using a FreeRTOS demo(MIPS32/GCC ver) but it was not work.
The source file downloaded in Sram, it work.
But when it downloaded in Flash memory, it dosn’t work….
I check the flow of source code using Codescape debugger, i find that core check the “__firstboot ” data.
If __firstboot data is valid (0x00000001), it work normaly (in sram)
else, __firstboot data is clear(0x00000000), it dosn’t work, according that “exceptionsave” -> “exceptionhandleverbose” (or exceptionhandlequiet) -> mipsexcpthandler .c ->
uhiindirect (sdbbp instruction) flows.
If sram, download using RTOSDemo.elf file, the __first_boot data was set.
But this address is over the source code range, binary file for download to Flash memory is not contain this value.
What is a problem in this project?
If not set the __first_boot data, the FreeRTOS is work?
That case, why stop my FreeRTOS source?
Or, FreeRTOS needed the valid __firstboot data, why my project has 0 data in __firstboot address??
Thanks you.
Stop the FreeRTOS demo with MIPS32
I’m afraid I’m not familiar with the project you are using. Where did you get it from?
Stop the FreeRTOS demo with MIPS32
I get this Demo from the freertos site,
this FreeRTOS ver. is 8.2.1
When the start this Demo project, this porject check the some address data.
This address is changed by binary code size.
this address always over the final code address.
if each end of code size is 0x8000, 0x 7000, 0x 6000.
checked data address is 0x8500. 0x7600, 0x6400.
(added size is not fixed)
this address shows the” first_boot” in the codescape debugger.
if the download the Demo to ram area using .elf file and codescape debbuger, the first_boot data is 0x1.
but firstboot address is over the binary code area, so this .hex or .bin files not include firstboot.
and download the Demo to serial flash using .bin file, the first_boot data is not change, so this project stop….
what is first_boot??
how to ignore the check of first_boot?
thanks.
Stop the FreeRTOS demo with MIPS32
FreeRTOS 8.2.1 – MIPS32-GCC is not valid project??
Stop the FreeRTOS demo with MIPS32
This is a link to the V8.2.1 tag in SVN:
https://sourceforge.net/p/freertos/code/HEAD/tree/tags/V8.2.1/
Please provide a link to the code within that tag that you are talking
about so we can try and help.
Stop the FreeRTOS demo with MIPS32
I found that :
https://interactive.freertos.org/hc/en-us/community/posts/210030026-FreeRTOS-8-2-1-for-MIPS32-processor-cores
in this page
and download link :
https://interactive.freertos.org/attachments/token/Wz0XPNEgmd9AtV3VugFeFpca0/?name=FreeRTOS-8.2.1-mips32-21Oct2015.zip
thanks.
Stop the FreeRTOS demo with MIPS32
Unfortunately these are not official FreeRTOS port, but third party
ports. We can only offer best effort support for third party ports, and
in this case, you are asking about something in the start up process
which is both device and probably tool specific. It would take several
hours if not days to familiarize ourselves with the port and environment
in order to be able to make any suggestions. I would recommend
contacting the port’s creator.
https://www.freertos.org/RTOS-contributed-ports.html
https://www.freertos.org/differences-between-officially-supported-and-contributed-FreeRTOS-code.html
Stop the FreeRTOS demo with MIPS32
thanks for your reply.
well, how can i port the FreeRTOS in the MIPS core using official project?
I don’t know that waht Demo project is portable the MIPS.
PIC32 is hard to port outer MIPS processor becaus the .ld file.
and, i find that problem of my project is occure ih the interrupt sequence.
skip the start part(with problem area), the MIPS with FreeRTOS is work normaly.
but interrupts occure same stop problems.
: exceptionhandle -> exceptionsave -> uhi_indirect and software breakpoint(sdbbp)
can i delete uhi sequece in the FreeRTOS??
i don’t know why UHI occure that problem.
and, i was checked that interrupt worked normaly in the normal firmware(not FreeRTOS).
the best method is that port in the mipscore using official FreeRTOS…myself.
thanks
Stop the FreeRTOS demo with MIPS32
You may be able to use one of the PIC32 ports if you are using the same
core that the PIC32 part is. The ld file just describes the memory
layout for the part you are targeting. Otherwise you could ask the
person that posted the code.
Stop the FreeRTOS demo with MIPS32
You may also want to try using Microchip Harmony environment for the PIC32
as it has FreeRTOS build in as a supported OS.
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
On Fri, Mar 23, 2018 at 7:51 AM, Richard Barry rtel@users.sourceforge.net
wrote:
You may be able to use one of the PIC32 ports if you are using the same core that the PIC32 part is. The ld file just describes the memory layout for the part you are targeting. Otherwise you could ask theperson that posted the code.
Stop the FreeRTOS demo with MIPS32https://sourceforge.net/p/freertos/discussion/382005/thread/5670434a/?limit=25#1643/2959/2c4b/429b/ae22/f7e8/f8ff/562a
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/freertos/discussion/382005/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Stop the FreeRTOS demo with MIPS32
i try the PIC32 elf file changed hex and binary file, but it fail..
the changed binary file size over the 600Mbyte.
i use the tool of MPLAB x IDE, and p32mz2048ech100.h in wondows 10.
i’m not change this Demo file, it is a simple test of making binary file.
i post the link of my programing source (pic32 and MIPS32_GCC).
locate:
– FreeRTOS-mipsgwonos/FreeRTOS/Demo/
testMIPS32GCC5mainaccesschangerom/
or
testMIPS32GCC6mainaccesschange_ram/
that is my used test of MIPS32_GCC sources.
(when the start exceptionhandler, accure sdbbp in uhiindirect.c and stop)
https://drive.google.com/file/d/1_iOwodBYHvIP85FqJYiTQWHCmQV9tkga/view?usp=sharing
and, it is a log of working on the my MIPS board.
https://drive.google.com/open?id=1VRgJC1iWLcNFVL7SGlqOTKs49KnUrmrz
when the normal work is first_boot value is not 0.
otherwise, when the firstboot value is 0, the RTOS stop sdbbp of uhiindirect.
this programs run exception entry area in the ram(address : 0x88000000).
thanks.