Search found 7 matches

by alexvinchev
Wed Sep 23, 2015 2:27 pm
Forum: STM32 Support
Topic: MPC5748G with OS tick lower than 1ms (100us)
Replies: 9
Views: 4665

Re: MPC5748G with OS tick lower than 1ms (100us)

I have found the problem.
It was in my porting implementation.
Thread start was:

; @brief Start a thread by invoking its work function.
; @details If the work function returns @p chThdExit() is automatically invoked.
.global _port_thread_start
_port_thread_start:
wrteei 1
mr r3 ...
by alexvinchev
Wed Sep 23, 2015 11:11 am
Forum: STM32 Support
Topic: MPC5748G with OS tick lower than 1ms (100us)
Replies: 9
Views: 4665

Re: MPC5748G with OS tick lower than 1ms (100us)

It seems I'm entering ISR with interrupts disabled, which is insane...
by alexvinchev
Wed Sep 23, 2015 9:50 am
Forum: STM32 Support
Topic: MPC5748G with OS tick lower than 1ms (100us)
Replies: 9
Views: 4665

Re: MPC5748G with OS tick lower than 1ms (100us)

Hi Giovanni,
this part in my code is implemented in hal_lld.c @ 227-245, function CH_IRQ_HANDLER(MPC57XX_PIT00_HANDLER).
It is proven that this code sees the CH_DBG_SYSTEM_STATE_CHECK macro. Macro itself is project defined ( PPC-MPC5748G-GHS-C2.gpj @23 :: -DCH_DBG_SYSTEM_STATE_CHECK=TRUE[/b]), not ...
by alexvinchev
Wed Sep 23, 2015 8:44 am
Forum: STM32 Support
Topic: MPC5748G with OS tick lower than 1ms (100us)
Replies: 9
Views: 4665

Re: MPC5748G with OS tick lower than 1ms (100us)

Hi Giovanni,
I've been looking a lot at other ports of ChibiOS and figured out that my port was not good enough. After re-writing of IVOR4 interrupt and PIT ISR, seems that system is more stable (at least was running at CH_FREQUENCY=250kHz for ~4 days/~96hours at full CAN load without causing IVOR1 ...
by alexvinchev
Fri Sep 18, 2015 10:23 am
Forum: STM32 Support
Topic: MPC5748G with OS tick lower than 1ms (100us)
Replies: 9
Views: 4665

MPC5748G with OS tick lower than 1ms (100us)

Hi,
I'm running ChibiOS 2.6.9.
I've tried to run my board at OS tick speed shorter than 1ms. When I do so, I'm going to core trap "Machine Check Interrupt (IVOR1)".
OS goes there from the _port_switch function, which in my case is:

_port_switch:
e_subi r1, r1, 0x50 ; Size of the intctx ...
by alexvinchev
Wed Apr 29, 2015 9:36 pm
Forum: General Support
Topic: MPC5748G / GreenHills(GHS) porting
Replies: 3
Views: 2865

Re: MPC5748G / GreenHills(GHS) porting

Hi,
Thank you for this very fast reply.
I've almost ready with the code, but (so far) I have two questions:
- where did you take the TSR address for IVOR10 implementation?
- where decrementer is initialized?

Regarding porting of the assembler files, it is stated that my cores do not support BookE ...
by alexvinchev
Wed Apr 29, 2015 11:09 am
Forum: General Support
Topic: MPC5748G / GreenHills(GHS) porting
Replies: 3
Views: 2865

MPC5748G / GreenHills(GHS) porting

Hi,
I'm trying to port ChibiOS for one of the newest and biggest Freescale Qorivva MCUs - MPC5748G( http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPC5748G ). Specific part is that I'm using GreenHills compiler, which is a bit different from GCC.
Did anyone tried to ...