Search found 8 matches

by psyco
Sun Feb 07, 2021 10:06 pm
Forum: User Projects
Topic: Chibios OS RISC-V GD32VF103 Port and USB OTG lockup problem
Replies: 5
Views: 302

Re: Chibios OS RISC-V GD32VF103 Port and USB OTG lockup problem

I have a similar board here, the "SeeedStudio GD32 RISC-V kit". With some minor mods, I was able to get it up and running on your repo and ChibiOS trunk. The VCP worked for about 30 seconds while I was interacting with the shell, then just stopped. After setting the chconf.h DBG asserts an...
by psyco
Sun Dec 20, 2020 1:07 am
Forum: Bug Reports
Topic: Early TC event with 1 byte using serial STM32 USARTv1 driver
Replies: 1
Views: 164

Early TC event with 1 byte using serial STM32 USARTv1 driver

My friend ran into an issue with an RS485 based serial interface where it seemed to drop bytes when receiving, but only when he was manually typing out data to it. Bulk transfers using a program were fine. What I found and believe to be the issue was actually in the transmit code from the STM32. Eff...
by psyco
Sat Dec 19, 2020 11:34 pm
Forum: Bug Reports
Topic: OSLib test failure after #1139 fix Topic is solved
Replies: 1
Views: 172

OSLib test failure after #1139 fix Topic is solved

After the introduction of copy_name to chfactory.c in #1139, the OSLib test fails and causes an unhandled exception: ============================================================================ === Test Sequence 9 (Objects Factory) --------------------------------------------------------------------...
by psyco
Fri Sep 04, 2020 11:48 pm
Forum: General Support
Topic: determining code size
Replies: 2
Views: 307

Re: determining code size

My go-to for function and global variable sizes is: arm-none-eabi-nm --print-size --size-sort build/ch.elf If you use C++, add a -C for demangling. By default, the second column is size. If your modules have a prefix to all functions, it should just be a bit of post-processing to get the numbers. Do...
by psyco
Sat Aug 29, 2020 1:30 am
Forum: STM32 Support
Topic: LWIP DHCP problem.
Replies: 10
Views: 757

Re: LWIP DHCP problem.

I hesitated calling it a wraparound since it is discontinuous. When it wraps, LwIP sees a jump of 44 days worth of time. In your example, with start_time being 429,496,731, and the second now () being 0, dt ends up being 3,865,470,565. Once it gets an IP, is TCP communication good? If so, maybe a ra...
by psyco
Fri Aug 28, 2020 1:13 am
Forum: STM32 Support
Topic: LWIP DHCP problem.
Replies: 10
Views: 757

Re: LWIP DHCP problem.

Actually I have seen this before, and it slipped my mind on reporting it. In my scenario, I was immediately calling lwipInit after chSysInit and it would delay DHCP by around a minute (might have been more, this was a while ago). Try adding a sleep between chSysInit and lwipInit (10 ms should do). I...
by psyco
Sat May 23, 2020 12:29 am
Forum: User Projects
Topic: RISC-V Port of ChibiOS
Replies: 3
Views: 656

Re: RISC-V Port of ChibiOS

I did see the Gigadevice ones. I avoided anything with STM32 in the name so doing this didn't feel just like work. However, I didn't consider the HAL would be almost drop in on those. I'll pick one up to play around with that. There's still some oddness I need to knock out with this port before it b...
by psyco
Fri May 22, 2020 2:28 am
Forum: User Projects
Topic: RISC-V Port of ChibiOS
Replies: 3
Views: 656

RISC-V Port of ChibiOS

As a fun / educational experience, I decided to learn about the inner workings of ChibiOS / RTOSes / MCU architectures in general. I went for the extra challenge of porting ChibiOS to RISC-V as I didn't find anything previously done on this. https://github.com/psycowithespn/ChibiOS-RISC-V I targeted...

Go to advanced search