Hi all,
There is a syntax error in rp2040's HAL GPIO driver. Line 71 misses the semicolon: https://github.com/ChibiOS/ChibiOS/blob ... _lld.c#L71
Best regards,
Szilveszter
Search found 12 matches
- Sun Feb 26, 2023 8:19 pm
- Forum: Bug Reports
- Topic: rp2040 gpio driver syntax error
- Replies: 1
- Views: 2895
- Mon Jan 23, 2023 1:56 pm
- Forum: Bug Reports
- Topic: RP watchdog bug
- Replies: 8
- Views: 7799
Re: RP watchdog bug
It works now as expected. Thank you for the fix.
Szilveszter
Szilveszter
- Sat Jan 21, 2023 12:06 pm
- Forum: Bug Reports
- Topic: RP watchdog bug
- Replies: 8
- Views: 7799
Re: RP watchdog bug
The watchdog driver also needs to set something in the the PSM's (Power-on State Machine) WDSEL register, otherwise the watchdog doesn't reset anything.
Something like this:
Here is my Commit for an example.
Something like this:
Code: Select all
// reset everything apart from ROSC and XOS
PSM->WDSEL = _u(0x1FFFC);
Here is my Commit for an example.
- Wed Jan 18, 2023 10:16 am
- Forum: Bug Reports
- Topic: RP watchdog bug
- Replies: 8
- Views: 7799
Re: RP watchdog bug
../ChibiOS/os/hal/ports/RP/LLD/WDGv1/hal_wdg_lld.c: In function 'set_wdg_counter':
../ChibiOS/os/hal/ports/RP/LLD/WDGv1/hal_wdg_lld.c:55:19: error: 'wdgp' undeclared (first use in this function); did you mean 'wdgStop'?
55 | uint32_t time = wdgp ...
- Mon Jan 16, 2023 2:30 pm
- Forum: Bug Reports
- Topic: RP watchdog bug
- Replies: 8
- Views: 7799
Re: RP watchdog bug
Hi,
I am not that familiar with SVN. How and from where could I pull the code ?
Szilveszter
I am not that familiar with SVN. How and from where could I pull the code ?
Szilveszter
- Mon Jan 16, 2023 10:37 am
- Forum: Bug Reports
- Topic: RP watchdog bug
- Replies: 8
- Views: 7799
RP watchdog bug
Hi,
I discovered a bug (or at least a not expected behaviour) in rp2040's watchdog driver. At the driver initialization it calculates the LOAD register's value from the config's `lrl` value (delay in ms) with a certain formula coming from the PICO SDK, but at the reseting it directly applies the ...
I discovered a bug (or at least a not expected behaviour) in rp2040's watchdog driver. At the driver initialization it calculates the LOAD register's value from the config's `lrl` value (delay in ms) with a certain formula coming from the PICO SDK, but at the reseting it directly applies the ...
- Sun Jul 18, 2021 2:00 pm
- Forum: Development and Feedback
- Topic: [DEV] RP2040 support
- Replies: 106
- Views: 196461
Re: [DEV] RP2040 support
Hi again,
This time I want to ask Giovanni or other ChibiOS experts, that what are the consequences if I remove the ALIGN(1024) from the line 21 in os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld .
SECTIONS
{
.vectors : ALIGN(1024)
{
KEEP(*(.vectors))
} > VECTORS_FLASH AT ...
This time I want to ask Giovanni or other ChibiOS experts, that what are the consequences if I remove the ALIGN(1024) from the line 21 in os/common/startup/ARMCMx/compilers/GCC/ld/rules_code.ld .
SECTIONS
{
.vectors : ALIGN(1024)
{
KEEP(*(.vectors))
} > VECTORS_FLASH AT ...
- Sun Jul 18, 2021 1:54 pm
- Forum: Development and Feedback
- Topic: [DEV] RP2040 support
- Replies: 106
- Views: 196461
Re: [DEV] RP2040 support
Hi,
From looking at your linker script it looks like you put the whole executable code into the flash and execute it directly from there (XIP). Is this correct?
As I know it is right, the code is executed directly from the FLASH (XIP), but be aware my knowledge in this area is pretty limited. At ...
From looking at your linker script it looks like you put the whole executable code into the flash and execute it directly from there (XIP). Is this correct?
As I know it is right, the code is executed directly from the FLASH (XIP), but be aware my knowledge in this area is pretty limited. At ...
- Tue Jul 13, 2021 10:24 pm
- Forum: Development and Feedback
- Topic: [DEV] RP2040 support
- Replies: 106
- Views: 196461
Re: [DEV] RP2040 support
Finally I managed to get Chibios booting from the Pico's own flash storage. It wasn't that trivial as expected or at least not for me.
*kitchen language warning: I am not an expert in this area therefore I could sometimes use incorrect terminology.
So here is what I found:
The RP2040's boot ...
*kitchen language warning: I am not an expert in this area therefore I could sometimes use incorrect terminology.
So here is what I found:
The RP2040's boot ...
- Sun Jul 11, 2021 1:52 pm
- Forum: General Support
- Topic: Full SMP on RP2040
- Replies: 1
- Views: 4309
Full SMP on RP2040
Hi,
I try to set up full SMP support on an RP2040, but I have got confused. It is mentioned in the article about Full SMP in RT 7.0 that in Full SMP mode only one instance of OS is running across multiple cores. In the demo/example for the RP2040 the full SMP mode is enabled chconf.h #define CH_CFG ...
I try to set up full SMP support on an RP2040, but I have got confused. It is mentioned in the article about Full SMP in RT 7.0 that in Full SMP mode only one instance of OS is running across multiple cores. In the demo/example for the RP2040 the full SMP mode is enabled chconf.h #define CH_CFG ...