Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


function allocation & IP code protection

Hi all
I’m trying to recompile the X-CUBE-PCROP examplewith AC6 (bornt with Keil) but there are some trouble
I’ve tryed to relocate functions placing this conde in the liner file

MEMORY
{
FLASH (rx)  : ORIGIN = 0x8000000, LENGTH = 992K
IP_CODE (x)  : ORIGIN = 0x080F8000, LENGTH = 32K
RAM (xrw)  : ORIGIN = 0x20000000, LENGTH = 96K
}

and the related section:

.ip_code :
{

  • (.IP_Code*);

} > IP_CODE

my function
attribute((section(“.IP_Code”))) int IP_test()
{
....
}

but even if it compile correctly and the .map file is ok I cannot program the nucleo board and this is the reported error:
auto erase enabled
Info : Device id = 0x10076415
Info : STM32L4xx flash size is 1024kb, base address is 0x8000000
Info : Erase the padded zone before the write
Error: Whole bank access must start at beginning of bank.
Info : Erase the padded zone before the write
Warn : Adding extra erase range, 0x00003000 to 0x000032bf
Info : wait_status_busy, WRPERR : error : remote address 0x40022000
Error: erase time-out error sector 16
Error: failed erasing sectors 6 to 495
Info : Padding image section 1 with 1002816 bytes
Info : wait_status_busy, WRPERR : error : remote address 0x40022000
Error: erase time-out error sector 16
Error: failed erasing sectors 0 to 496

    • Programming Failed **

shutdown command invoked

How can I solve this issue?

Thanks
Ivano

Hello,

I see WRPERR error in the text, are you sure the device options bytes are ok regarding protections (PCrop and/or Write Protection) ?

If you tried already the example with Keil, maybe the protections are still active.

Check option bytes protections with STLink utility.

Rgds,
Laurent


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs