Search found 60 matches

by dismirlian
Mon Jul 06, 2020 8:17 pm
Forum: Development and Feedback
Topic: Compilation of RT-Win32-Simulator demo with Visual Studio
Replies: 8
Views: 469

Re: Compilation of RT-Win32-Simulator demo with Visual Studio

Hi Giovanni,

I split the patch in two:
1. enable_compilation_with_msvc: fixes compilation with MSVC for IA32 architecture.
2. rt_win32_simulator_visual_studio_project: Visual Studio project for the RT-Win32-Simulator demo project.

Thanks!
Diego.
by dismirlian
Mon Jul 06, 2020 6:03 pm
Forum: Development and Feedback
Topic: Compilation of RT-Win32-Simulator demo with Visual Studio
Replies: 8
Views: 469

Re: Compilation of RT-Win32-Simulator demo with Visual Studio

Hi Giovanni, no problem, I know you welcome contributions! What I meant is: - The changes in os/... should not have a high maintenance impact; it only allows MSVC to compile the code. - The project itself (under demos/), which may have maintenance impact, could go as a .zip in the forum or in the Ch...
by dismirlian
Sun Jul 05, 2020 8:26 pm
Forum: Development and Feedback
Topic: Compilation of RT-Win32-Simulator demo with Visual Studio
Replies: 8
Views: 469

Re: Compilation of RT-Win32-Simulator demo with Visual Studio

Hi Giovanni, 2) New patch attached. 3) IMHO there is no inherent benefit in compiling with MSVC instead of GCC. The only reason I wanted this is because Visual Studio is really great for development, especially for developing the application logic, and Visual Studio handles MSVC very "naturally...
by dismirlian
Sun Jul 05, 2020 5:37 pm
Forum: Development and Feedback
Topic: Compilation of RT-Win32-Simulator demo with Visual Studio
Replies: 8
Views: 469

Re: Compilation of RT-Win32-Simulator demo with Visual Studio

Hi Giovanni, 1) There are no new files under compilers/GCC, I effectively created compilers/MSVC; where do you see this problem? 2) Ok, I'll try to fix/minimize those. 3) I don't know any way of using makefiles with VS, keeping the Intellisense/IDE tools working well. Do you know how to do this? Tha...
by dismirlian
Sun Jul 05, 2020 5:10 pm
Forum: Development and Feedback
Topic: Compilation of RT-Win32-Simulator demo with Visual Studio
Replies: 8
Views: 469

Compilation of RT-Win32-Simulator demo with Visual Studio

Hi all, I attach a patch for the stable_20.3.x branch, with minor modifications: - Adapt some sources to be able to compile with MSVC - Add a Visual Studio project to the RT-Win32-Simulator demo (demos/various/RT-Win32-Simulator/visual-studio). This enables compilation with Visual Studio (which is a...
by dismirlian
Fri Oct 04, 2019 12:20 am
Forum: Development and Feedback
Topic: SystemView and RTT bindings
Replies: 13
Views: 1761

Re: SystemView and RTT bindings

Thanks Giovanni.

Please let me know if you have an elegant solution for the ISR tail hook.

Diego.
by dismirlian
Thu Oct 03, 2019 5:59 pm
Forum: Development and Feedback
Topic: SystemView and RTT bindings
Replies: 13
Views: 1761

Re: SystemView and RTT bindings

Hi Giovanni, It effectively broke the state checker. I ended up doing the following: #define CH_CFG_IRQ_EPILOGUE_HOOK() { \ _CH_CFG_IRQ_EPILOGUE_HOOK(); \ port_lock_from_isr(); \ _dbg_enter_lock(); \ <== added this if (_isr_is_tail() && chSchIsPreemptionRequired()) { \ SEGGER_SYSVIEW_RecordE...
by dismirlian
Wed Oct 02, 2019 9:40 pm
Forum: Development and Feedback
Topic: SystemView and RTT bindings
Replies: 13
Views: 1761

Re: SystemView and RTT bindings

Hi Giovanni, thanks for the suggestion. So is this sequence safe?: - port_lock_from_isr (from the IRQ_EPILOGUE_HOOK) <= This is your proposed modification - _dbg_check_leave_isr() (from the IRQ_EPILOGUE) - chSysGetStatusAndLockX (from SystemView integration code) - chSysRestoreStatusX (from SystemVi...
by dismirlian
Wed Oct 02, 2019 9:23 pm
Forum: Development and Feedback
Topic: Hard fault handler
Replies: 0
Views: 963

Hard fault handler

Hi, I've contributed a generic fault handler mechanism, particularly for ARMv7m (Cortex M3/M4(F)/M7). The fault handlers include: - HardFault handler, which decodes the fault registers and generates a description string. - _unhandled_exception handler, which decodes the active vector, so you can eff...
by dismirlian
Wed Oct 02, 2019 8:00 pm
Forum: Development and Feedback
Topic: SystemView and RTT bindings
Replies: 13
Views: 1761

Re: SystemView and RTT bindings

Hi Giovanni, I was thinking that the way I implemented the CH_IRQ_EPILOGUE hook actually has a race condition, because the hook is called before the _port_irq_epilogue takes the lock. One alternative is to implement yet an additional hook inside _port_irq_epilogue: void _port_irq_epilogue(void) { po...

Go to advanced search